Problem

Source: 2023 Austrian Regional Competition For Advanced Students p4

Tags: number theory, GCD, greatest common divisor, Diophantine equation



Determine all pairs $(x, y)$ of positive integers such that for $d = gcd(x, y)$ the equation $$xyd = x + y + d^2$$holds. (Walther Janous)