All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Some Primes Differ by a Square (Posted on 2023-05-31) Difficulty: 3 of 5
Determine all possible pairs (p, q) of prime numbers that satisfy this set of simultaneous equations:
  • p - q = a2
  • p*q - q = b2
where each of a and b is a positive integer.

Validate your answer by providing sufficient analytic reasoning.

See The Solution Submitted by K Sengupta    
Rating: 4.5000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution Solution | Comment 1 of 2
(p,q) = (3,2) is the only solution.

From the first equation, we see that p > q, otherwise a would not be a positive integer.

From the second equation, pq - q = (p-1)q = b^2.

There are then two cases to consider:

1) (p-1) = q = b. Since p and q are both primes, 3,2 is the only possible solution as the only pair of consecutive primes.

2) (p-1) = q^n, where n is an odd number greater than 2. From this, p and q must have opposite parity, and since p > q, q must equal 2. Any solutions must then have q = 2, p = 2^n + 1, where n is odd. However, numbers of the form 2^n + 1 can only be primes if n itself is a power of 2 (and therefore even), so there are no solutions for this case.

  Posted by H M on 2023-05-31 11:47:40
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (15)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information