# Inspired by IMO shortlist question

Find the number of ordered pairs of positive integers $$(x,y)$$ such that the following equation is satisfied,

$$x^{3}+y^{2}+z=xyz$$

where $$z=\gcd(x,y)$$.

×