ĐKXĐ: \(x\ne-\dfrac{1}{3}\)
\(A=\dfrac{\left(3x-1\right)^2}{3x+1}=\dfrac{9x^2-6x+1}{3x+1}\)
Để A là số nguyên thì \(9x^2-6x+1⋮3x+1\)
=>\(9x^2+3x-9x-3+4⋮3x+1\)
=>\(4⋮3x+1\)
=>\(3x+1\in\left\{1;-1;2;-2;4;-4\right\}\)
=>\(3x\in\left\{0;-2;1;-3;3;-5\right\}\)
=>\(x\in\left\{0;-\dfrac{2}{3};\dfrac{1}{3};-1;1-\dfrac{5}{3}\right\}\)
mà x nguyên
nên \(x\in\left\{0;1;-1\right\}\)