Ta có:
\(\frac{4\left(x+2\right)}{x+1}=\frac{4x+8}{x+1}=\frac{4x+1+7}{x+1}=\frac{x+1}{x+1}+\frac{7}{x+1}=1+\frac{7}{x+1}\)
Suy ra x+1\(\in\)Ư(7)
Ư(7)là:[1,-1,7,-7]
Ta có bảng sau:
x+1 | 1 | -1 | 7 | -7 |
x | 0 | -2 | 6 | -8 |
Vậy x=0;-2;6;-8
ta có : 4.(x + 2) = 4.x + 8 = x+1+x+1+x+1+x+1+4
=> x+1 thuộc U(4)
mà U(4) ={1;2;4;-1;-2;-4}
suy ra:
x+1 | 1 | 2 | 4 | -1 | -2 | -4 |
x | 0 | 1 | 3 | -2 | -3 | -5 |
vậy : x = { 0;1;3;-2;-3;-5 }