\(\frac{3n+7}{n+1}=\frac{3n+3+4}{n+1}=\frac{3n+3}{n+1}+\frac{4}{n+1}=\frac{3\cdot\left(n+1\right)}{n+1}+\frac{4}{n+1}=3+\frac{4}{n+1}\)
Để 3n + 7 chia hết cho n + 1 thì 4 chia hết cho n + 1
\(\Rightarrow n+1\inƯ\left(4\right)=\left\{1;2;4\right\}\Rightarrow n\in\left\{0;1;3\right\}\)