\(a,\Rightarrow n-1+7⋮n-1\)
Mà \(n-1⋮n-1\Rightarrow7⋮n-1\)
\(\Rightarrow n-1\inƯ\left(7\right)=\left\{1;7\right\}\\ \Rightarrow n\in\left\{2;8\right\}\)
\(b,\Rightarrow3\left(n+1\right)+2⋮n+1\)
Mà \(3\left(n+1\right)⋮n+1\Rightarrow2⋮n+1\)
\(\Rightarrow n+1\inƯ\left(2\right)=\left\{1;2\right\}\\ \Rightarrow n=1\left(n\ne0\right)\)