Problem

Source: Azerbaijan BMO TST 2018, D2 P1

Tags: number theory



Find all positive integers $(x,y)$ such that $x^2+y^2=2017(x-y)$