Let $p,q$ be prime numbers. Find all the integer solutions to: $$q^2(p-1) = (p+1)(q+1)$$
I am almost sure that $q=2$,$p=7$ is the only solution. Thus I assumed that $p$ and $q$ were both odd to reach a contradiction, but so far I haven't made any progress that way.
You're on the right track assuming that $p,q$ are odd.
Here's the step you may be missing: if $p>2$ is odd, then $(p-1, p+1) = 1$. But $(p+1)$ must divide both sides of the equation. So $(p+1)\mid q^2$. Hence $q$ is even.