4 chia hết cho x-1
=>x-1 \(\in\)Ư(4)={1;2;4}
x-1=1=>x=2
x-1=2=>x=3
x-1=4=>x=5
Vậy x \(\in\){2;3;5}
5 chia hết cho x+1
=>x+1 \(\in\)Ư(5)={1;5}
x+1=1=>x=0
x+1=5=>x=4
Vậy x \(\in\){0;4}
\(\frac{4}{x-1}\Rightarrow x-1\in\text{Ư}\left(4\right)=\left\{1;-1;2;-2;4;-4\right\}\)
\(x-1=1\Rightarrow x=1+1=2\) (nhận)\(x-1=-1\Rightarrow x=-1+1=0\) (nhận)\(x-1=2\Rightarrow x=2+1=3\) (nhận)\(x-1=-2\Rightarrow x=-2+1=-1\) (loại)\(x-1=4\Rightarrow x=4+1=5\)(nhận) \(x-1=-4\Rightarrow x=-4+1=-3\)(loại)Vậy: \(x\in\left\{2;0;3;5\right\}\)
\(\frac{5}{x+1}\Rightarrow x+1\in\text{Ư}\left(5\right)=\left\{1;-1;5;-5\right\}\)
\(x+5=1\Rightarrow x=2-5=-4\) (loại)\(x+5=-1\Rightarrow x=-1-5=-6\)(loại)\(x+5=5\Rightarrow x=5-5=0\) (nhận)\(x+5=-5\Rightarrow x=-5-5=-10\) (loại)Vậy: \(x=0\)