\(a,\Rightarrow n+1+4⋮n+1\\ \Rightarrow n+1\inƯ\left(4\right)=\left\{4\right\}\left(n+1>1+1=2\right)\\ \Rightarrow n=3\\ b,\Rightarrow2\left(n-1\right)+3⋮n-1\\ \Rightarrow n-1\inƯ\left(3\right)=\left\{1;3\right\}\\ \Rightarrow n\in\left\{2;4\right\}\)