Để \(x^2+x+1\)là bội của \(x-2\)=> \(\left(x^2+x+1\right)⋮\left(x-2\right)\Leftrightarrow\frac{x\left(x-2\right)+3\left(x-2\right)+7}{x-2}\in Z\)
\(\Leftrightarrow\frac{\left(x+3\right)\left(x-2\right)+7}{x-2}\in Z\)
Với \(x\in Z\)=> \(7⋮\left(x-2\right)\Rightarrow x-2\in\left\{-7;-1;7;1\right\}\Leftrightarrow x\in\left\{-5;1;9;3\right\}\)