PRMO 2014 Problem 11 :
For natural numbers $x$ and $y$ let $(x,y)$ denote the greatest common divisor of $x$ and $y$. How many pairs of natural numbers $x$ and $y$ with $x\leq y$ satisfy the equation $xy = x + y + (x,y)$?
My solution :
Assume that $x = aq$ and $y = bq$ where $(a,b) = 1$
Then -
$abq = a + b + 1 $
$\implies (aq-1)(bq-1) = q $
I am unable to solve the question further.
This diophantine is different from the one's in which the value of q is constant and given. Here it's variable so, I think that some sort of range would have to be figured out and then we'll proceed with hit and trial.
I tried transforming it into a quadratic in $q $ and equating the discriminant as a perfect square but none of it is actually helping.
So, how shall I be proceeding further ?