Find all values of $q-p$ if $p, q$ are prime and $${q+1\over q}+{p\over p+1}={2n\over n+2}$$ where $n$ is a positive integer.
This problem is a hard problem in my opinion and I am trying to solve it but cannot. I tried to simplify this equation by multiplying by $q(p+1)$ but after later simplification, I got the following: $$2qp+2p+2q=nq-np$$ I couldn't benefit from this. I then tried to use this $2qp+2p+2q=2(1+q)(1+p)-2$ but couldn't. Any help, maybe a hint, would be appreciated. Thank you.
Rewrite the equation like this: $$ (n+2)(q-p-1)= 4q(p+1)$$ Clearly we see from here that $q>p+1$. Now we have two possibilities:
So $q\mid 4+k$ and $p+1\mid k$. Since $k\mid 4(p+1)$ we see that $k = s(p+1)$ where $s\in\{1,2,4\}$