\(A=\frac{2n+7}{n+1}\inℤ\Leftrightarrow2n+7⋮n+1\)
\(\Rightarrow2n+2+5⋮n+1\)
\(\Rightarrow2\left(n+1\right)+5⋮n+1\)
\(2\left(n+1\right)⋮n+1\)
\(\Rightarrow5⋮n+1\)
\(\Rightarrow n+1\inƯ\left(5\right)\)
\(\Rightarrow n+1\in\left\{-1;1;-5;5\right\}\)
\(\Rightarrow n\in\left\{-2;0;-6;4\right\}\)
\(A=\frac{2n+7}{n+1}\)
\(A=\frac{2n+2+5}{n+1}\)
\(A=2+\frac{5}{n+1}\)
Để \(A\in Z\Rightarrow\frac{5}{n+1}\in Z\)
\(\Leftrightarrow n+1\inƯ\left(5\right)=\left(1;5;-1;-5\right)\)
\(\Rightarrow n\in\left(0;4;-2;-6\right)\)