Để \(\frac{3}{x^2+x+1}\) nhận giá trị nguyên \(\Leftrightarrow x^2+x+1\inƯ\left(3\right)=\left\{-3;-1;1;3\right\}\)
Mà \(x^2+x+1=\left(x^2+x+\frac{1}{4}\right)+\frac{3}{4}=\left(x+\frac{1}{2}\right)^2+\frac{3}{4}\ge\frac{3}{4}\forall x\)
Nên \(x^2+x+1=\left\{1;3\right\}\)
TH1: \(x^2+x+1=1\Leftrightarrow x\left(x+1\right)=0\Leftrightarrow\orbr{\begin{cases}x=0\\x=-1\end{cases}\left(TM\right)}\)
TH2\(x^2+x+1=3\Leftrightarrow x^2+x-2=0\Leftrightarrow\left(x-1\right)\left(x+2\right)=0\Rightarrow\orbr{\begin{cases}x=1\\x=-2\end{cases}}\left(TM\right)\)
Vậy \(x\in\left\{-2;-1;1;0\right\}\)
Đúng 0
Bình luận (0)