xy-5x+y=17
=> x(y-5)+(y-5)=12
=> (y-5)(x+1)=12
=> y-5; x+1 \(\inƯ\left(12\right)=\left\{-12;-6;-4;-3;-2;-1;1;2;3;4;6;12\right\}\)
Ta có bảng
x+1 | -12 | -6 | -4 | -3 | -2 | -1 | 1 | 2 | 3 | 4 | 6 | 12 |
y-5 | -1 | -2 | -3 | -4 | -6 | -12 | 1 | 6 | 4 | 3 | 2 | 1 |
x | -13 | -7 | -5 | -4 | -3 | -2 | 0 | 1 | 2 | 3 | 5 | 11 |
y | 4 | 3 | 2 | 1 | -1 | -7 | 6 | 11 | 9 | 8 | 7 | 6 |