Let $p$ be a prime number. Find all positive integers $x$ and $y$ for which $$\dfrac{1}{x} + \dfrac{1}{y} = \dfrac{1}{p}.$$
Multiplying the given expression by $xy$ results in $y+x = \dfrac{xy}{p} \Rightarrow p(x+y) = xy$.
I was suggested to get this to the form $(x-p)(y-p) = p^2$, which seems a bit weird to me since I usually with these kinds of questions I would find a system which would lead to finding the correct $(x, y)$, but having the term $p^2$ is not something I've seen before.
Is the idea behind this so that I would want to have an expression where I have something of the form $(x-k)(y-n) = p$ and could deduce from here that either $(x-k) = 1$, $(y-n) = p$ or the other way around since $p$ can only have the factors $1$ and $p$?