Ta có: $x^{2}(y-5)-xy=x-y+1\Leftrightarrow x^{2}(y-5)-x(y+1)+y-1=0$
$\Delta =(y+1)^2-4(y-1)(y-5)=-3y^2+26y-19 \geq 0\Leftrightarrow \frac{13-4\sqrt{7}}{3}\leq y \leq \frac{13+4\sqrt{7}}{3}$
y nguyên...
Bạn chưa xét TH hệ số a=0
TH1: y-5=0
TH2: $y-5\neq 0$