How can one find all prime numbers $p,q,$ and $r$ such that $$(p-q)^2+1=r\ ?$$
2026-04-26 04:24:59.1777177499
On
All primes $p,q,r$ such that $(p-q)^2+1=r$
331 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
2
There are 2 best solutions below
0
On
The Hardy-Littlewood conjecture E says that there are infinitely many primes of the form $n^2+1$ (and gives an asymptotic density); de Polignac's conjecture says that there are infinitely many primes, indeed consecutive primes, with a specified even distance. So on these conjectures there are infinitely many $r$ such that $r-1$ is a perfect square, and for any such choice ($r\neq2$) there are infinitely many $p,q$ such that $(p-q)^2+1=r.$
Yuval is right, this question is very hard. Breaking it up into 3 cases:
Edit: As Zev pointed out, $r$ even $\implies r = 2$ because if $r > 2$ we have $r - 2 = (p - q - 1)(p - q + 1)$ is even thus both terms $(p - q - 1),(p - q + 1)$ are and so we can continue to factor out $2$, i.e. $2^n | r - 2$ for all $n > 1$, a clear contradiction.