If p, q, r are prime numbers such that p^2-q^2=r. Find all the possible ordered pairs.

Dear student,
so (p-q) and (p+q) are factors of r
But r is prime so it has only 2 factors ie 1 and r
As, r>1, So,
p-q=1. ————1
p+q=r. ————2
because p+q>p-q
Adding equation 1 and 2
Putting p=(r+1)/2 in equation 2
So there are infinitely many solution as r is a prime number.
As, two is the only even prime no.
Thus, p and q will divisible by 2 for all for r except 2

  • -2
What are you looking for?