\(A=\frac{x^2-2x+1}{x+1}=\frac{x^2-2x-3+4}{x+1}=\frac{\left(x+1\right)\left(x-3\right)+4}{x+1}=x-3+\frac{4}{x+1}\inℤ\)
mà \(x\inℤ\)nên \(\frac{4}{x+1}\inℤ\)do đó \(x+1\inƯ\left(4\right)=\left\{-4,-2,-1,1,2,4\right\}\)
\(\Leftrightarrow x\in\left\{-5,-3,-2,0,1,3\right\}\).