\(a,\\ =>n-3\inƯ\left(-7\right)\\ Ư\left(-7\right)=\left\{1;-1;7;-7\right\}\\ =>\left\{{}\begin{matrix}n-3=1\\n-3=-1\\n-3=7\\n-3=-7\end{matrix}\right.\\ =>\left\{{}\begin{matrix}n=4\\n=2\\n=10\\n=-4\end{matrix}\right.\)
\(b,\dfrac{n-5}{n+1}=1-\dfrac{6}{n+1}\\ =>n+1\inƯ\left(6\right)\\ Ư\left(6\right)=\left\{1;-1;2;-2;3;-3;6;-6\right\}\\ =>\left\{{}\begin{matrix}\left\{{}\begin{matrix}n+1=1\\n+1=-1\\n+1=2\\n+1=-2\end{matrix}\right.\\\left\{{}\begin{matrix}n+1=3\\n+1=-3\\n+1=6\\n+1=-6\end{matrix}\right.\end{matrix}\right.=>\left\{{}\begin{matrix}\left\{{}\begin{matrix}n=0\\n=-2\\n=1\\n=-3\end{matrix}\right.\\\left\{{}\begin{matrix}n=2\\n=-4\\n=5\\n=-7\end{matrix}\right.\end{matrix}\right.\)