\(x^2+2017x\le2018x+2019\)
\(\Rightarrow x^2-x-2019\le0\)
Ta có: \(VT=x^2-x-2019=x^2-2.x.\frac{1}{2}+\frac{1}{4}-\frac{1}{4}-2019\)
\(=\left(x-\frac{1}{2}\right)^2-\frac{8077}{4}\)
\(=\left(x-\frac{1}{2}-\sqrt{\frac{8077}{4}}\right)\left(x-\frac{1}{2}+\sqrt{\frac{8077}{4}}\right)\le0\)
\(\Rightarrow\frac{1}{2}-\sqrt{\frac{8077}{4}}\le x\le\frac{1}{2}+\sqrt{\frac{8077}{4}}\)
Do x nguyên nên \(-44\le x\le45\)
Auto làm nốt