a.\(\text{Ta có : }n+4⋮\left(n+1\right)\)
\(\Rightarrow n+1+3⋮\left(n+1\right)\)
\(\text{Mà }n+1⋮\left(n+1\right)\Rightarrow3⋮\left(n+1\right)\)
\(\Rightarrow n+1\inƯ\left(3\right)\)
\(Ư\left(3\right)=\left\{1;3\right\}\)
\(\Rightarrow n=\orbr{\begin{cases}0\\2\end{cases}}\)
b. Tương tự nhé
b) \(n^2+n⋮n+1\Rightarrow n\left(n+1\right)⋮n+1\) đúng với mọi \(n\in N\)