Để \(n+5⋮n+1\)
\(\Leftrightarrow n+1+4⋮n+1\)
\(\Leftrightarrow4⋮n+1\)
\(\Leftrightarrow n+1\inƯ\left(4\right)=\left\{\pm1;\pm2;\pm4\right\}\)
\(\Leftrightarrow n\in\left\{-2;0;-3;1;3;-5\right\}\)
Mà n là số tự nhiên
Vậy \(n\in\left\{0;1;3\right\}\)
để n+5⋮n+1
thì n+1+4⋮n+1
=>4⋮n+1=>n+1∈Ư(4)={1,2,4)
=>n∈{0,1,3}