\(\Rightarrow\left(3n+1\right)-3\left(n+1\right)⋮n+1\)
\(\Rightarrow\left(3n+1\right)-\left(3n+3\right)⋮n+1\)
\(\Rightarrow3n+1-3n-3⋮n+1\)
\(\Rightarrow-2⋮n+1\)
\(\Rightarrow n+1\inƯ\left(-2\right)=\left(1;-1;2;-2\right)\)
Ta có bảng sau :
n + 1 1 -1 2 -2
n 0 -2 1 -3
Mà \(n\in Z\)
\(\Rightarrow n\in\left(0;-2;1;-3\right)\)
khi 3n+1:n+1
mà n+1 chia hết cho n+1
=>3 chia hết cho n+1
=>n+1 thuộc U(3)={1,-1,-3,3}
=> n thuộc{0,-2,-4,2}