a: \(A=\dfrac{1}{x^2+x+1}+\dfrac{2}{x-1}-\dfrac{x^2+2x}{x^3-1}\)
\(=\dfrac{x-1+2x^2+2x+2-x^2-2x}{\left(x-1\right)\left(x^2+x+1\right)}\)
\(=\dfrac{x^2+x+1}{\left(x-1\right)\left(x^2+x+1\right)}=\dfrac{1}{x-1}\)
b: Để A là số nguyên thì \(x-1\in\left\{1;-1\right\}\)
hay \(x\in\left\{2;0\right\}\)