Q. Find four solutions to $p^2+1=q^2+r^2$ with primes $p$, $q$ and $r$?
My thinking: I think 2(= q or r ) will not satisfy this equation. Hence we are left with odd prime numbers. We can factories to to get (p+q-r-1)(p+r-q-1)=2(qr-p) Or simply (p+q)(p-q)=(r+1)(r-1) But I am not able to make any conclusions. It's is from {250 problems in elementary number theory} Q.78 (4.primes and composite numbers) Please give any hint(theorem that may help)
The question appears to allow $q=r$ and this then requires prime number solutions of Pell's equation $$p^2+1=2q^2$$
For example
$p=7, q=r=5$
$p=41, q=r=29$