20.) How many terms of the sequence with general term $a_{n}=\dfrac{3n-72}{n}$ are integers?
21.) How many terms of the sequence with general term $a_{n}=\dfrac{n^{3}+4n^{2}+3n+1}{n+2}$ are integers?
I could not come up with a solution for both of the problems, so help is appreciated
For your first question, notice the following:
$$\text{a}_\text{n}:=\frac{3\text{n}-72}{\text{n}}=\frac{3\text{n}}{\text{n}}-\frac{72}{\text{n}}=3-\frac{72}{\text{n}}\tag1$$
Finding the divisors of $72$ gives:
$$\left\{1,2,3,4,6,8,9,12,18,24,36,72\right\}\tag2$$