Problem

Source: 2016 JBMO TST- Macedonia

Tags: Junior, JMMO, 2016, number theory, Macedonia, greatest common divisor



Solve the following equation in the set of positive integers $x + y^2 + (GCD(x, y))^2 = xy \cdot GCD(x, y)$.