Explanation:
Observe that x2 - 3xy + 2y2 + x - y = (x - y)(x - 2y + 1) . Thus 17 divides either x – y or x - 2y + 1. Suppose that 17 divides x - y. In this case x ≡ y (mod 17) and hence
x2 - 2xy + 2y2 - 5x + 7y ≡ y2 - 2y2 + y2 - 5y + 7y≡2y (mod 17)
Thus the given condition that 17 divides x2 - 2xy + y2 -5x + 7y implies that 17 also divides 2y and hence y itself. But then x ≡ y (mod 17) implies that 17 divides x also. Hence in this case 17 divides xy – 12x +15y .
Suppose on the other hand that 17 divides x -2y +1 . Thus x ≡ 2y – 1(mod 17) and hence
x2 - 2xy + y2 - 5x + 7y ≡ y 2 - 5y + 6 (mod 17)
Thus 17 divides y2 - 5y + 6 . But x ≡ 2y – 1(mod 17) also implies that xy – 12x + 15y ≡ 2(y2 - 5y + 6) (mod 17)
Since 17 divides (y2 - 5y + 6), It follows that 17 divides xy – 12x + 15y.