\(A=\dfrac{5}{n+1}\)
\(A\in Q\Rightarrow n+1\ne0\)
\(\Rightarrow n\ne-1\)
\(A\in Z\Rightarrow5⋮n+1\)
\(\Rightarrow n+1\inƯ\left(5\right)\)
\(Ư\left(5\right)=\left\{\pm1;\pm5\right\}\)
\(\Rightarrow\left\{{}\begin{matrix}n+1=1\Rightarrow n=0\\n+1=-1\Rightarrow n=-2\\n+1=5\Rightarrow n=4\\n+1=-5\Rightarrow n=-6\end{matrix}\right.\)