Ta có :\(A=\frac{x^2+3x+1}{x+2}=\frac{x^2+2x+x+2-1}{x+2}=\frac{x\left(x+2\right)+x+2-1}{x+2}=\frac{\left(x+1\right)\left(x+2\right)-1}{x+2}\)
\(=x+1-\frac{1}{x+2}\)
Để A nguyên => \(\frac{1}{x+2}\inℤ\Rightarrow1⋮x+2\Rightarrow x+2\inƯ\left(1\right)\)
=> \(x+2\in\left\{-1;1\right\}\)
=> x \(\in\left\{-3;-1\right\}\)
Vậy x \(\in\left\{-3;-1\right\}\)thì A nguyên
Thank You!