A,Để A=\(\frac{n+2}{n-5}\)thì n+2\(⋮\)cho n-5.
Ta có:n+2=n-5+5+2=(n-5)+7
Vì n-5\(⋮\)n-5\(\Rightarrow\)7\(⋮\)n-5\(\Rightarrow\)n-5\(\in\)Ư(7)
Ư(7)={\(\pm\)1,\(\pm\)7}
\(\Leftrightarrow\)\(\left[{}\begin{matrix}n-5=1\\n-5=-1\\n-5=7\\n-5=-7\end{matrix}\right.\)
\(\Leftrightarrow\)\(\left[{}\begin{matrix}n=1+5\\n=-1+5\\n=7+5\\n=-7+5\end{matrix}\right.\)
\(\Leftrightarrow\)\(\left[{}\begin{matrix}n=6\\n=4\\n=12\\n=-2\end{matrix}\right.\)