Ta có: \(x+2⋮x-1\)
\(\Leftrightarrow x-1+3⋮x-1\)
Mà \(x-1⋮x-1\)
Nên \(3⋮x-1\Rightarrow x-1\inƯ_{\left(3\right)}=-3;-1;1;3\)
\(\Leftrightarrow\left[{}\begin{matrix}x-1=-3\\x-1=-1\\x-1=1\\x-1=3\end{matrix}\right.\Leftrightarrow\left[{}\begin{matrix}x=-2\\x=0\\x=2\\=4\end{matrix}\right.\)
Vậy: \(x=-2;0;2;4\) thì \(x+2⋮x-1\)