\(C=\dfrac{x^2+2x-1}{x+1}=\dfrac{x\left(x+1\right)}{x+1}+\dfrac{x+1}{x+1}-\dfrac{2}{x+1}\left(đk:x\ne-1\right)\)
Để \(C\in Z\Rightarrow\dfrac{2}{x+1}\in Z\)
\(\Rightarrow\left(x+1\right)\inƯ\left(2\right)=\left\{\pm1;\pm2\right\}\)
Còn lại em tự xét t/h nha