a) \(\Rightarrow\left(x-7\right)-\left(x+2\right)⋮x+2\)
\(\Rightarrow x-7-x-2⋮x+2\)
\(\Rightarrow5⋮x+2\)
\(\Rightarrow x+2\inƯ\left(5\right)=\left(1;-1;5;-5\right)\)
Ta có bảng sau :
x + 2 1 -1 5 -5
x -1 -3 3 -7
Mà \(x\in Z\)
\(\Rightarrow x\in\left(-1;-3;3;-7\right)\)
b) \(\Rightarrow\left(3x+2\right)-3\left(x-1\right)⋮x-1\)
\(\Rightarrow\left(3x+2\right)-\left(3x-3\right)⋮x-1\)
\(\Rightarrow3x+2-3x+3⋮x-1\)
\(\Rightarrow5⋮x-1\)
\(\Rightarrow x-1\inƯ\left(5\right)=\left(1;-1;5;-5\right)\)
Ta có bảng sau :
x - 1 1 -1 5 -5
x 2 0 6 -4
Mà \(x\in Z\)
\(\Rightarrow x\in\left(2;0;6;-4\right)\)