Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.

  • Thread starter Thread starter Math100
  • Start date Start date
  • Tags Tags
    Primes
Click For Summary
SUMMARY

The only pair of prime numbers \( p \) and \( q \) that satisfy the equation \( p - q = 3 \) is \( (5, 2) \). This conclusion is reached through a proof that considers two cases: when \( p \) is even and when \( p \) is odd. The only even prime is 2, leading to a contradiction when \( p = 2 \). In the odd case, \( p \) must equal 5, confirming that \( q \) must be 2. Thus, the established solution is definitive.

PREREQUISITES
  • Understanding of prime numbers and their properties
  • Basic algebraic manipulation and equations
  • Familiarity with mathematical proof techniques
  • Knowledge of parity (even and odd numbers)
NEXT STEPS
  • Explore the properties of prime numbers and their distributions
  • Study mathematical proof techniques, particularly proof by contradiction
  • Learn about the Goldbach conjecture and twin primes
  • Investigate the concept of prime gaps and their implications in number theory
USEFUL FOR

Mathematicians, students studying number theory, educators teaching prime number concepts, and anyone interested in mathematical proofs and properties of primes.

Math100
Messages
817
Reaction score
230
Homework Statement
Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.
Relevant Equations
None.
Proof:

Let ## p ## and ## q ## be primes such that ## p-q=3 ##.
Now we consider two cases.
Case #1: Suppose ## p ## is an even prime.
Then ## p=2 ##, because ## 2 ## is the only even prime.
Thus ## 2-q=3 ##, so ## q=-1 ##,
which contradicts the fact that ## q ## is prime.
Case #2: Suppose ## p ## is an odd prime.
Then ## p=2k+1 ## for some ## k\in\mathbb{N} ##.
Thus ## 2k+1=q+3 ##
## q=2k+1-3 ##
## =2k-2 ##
## =2(k-1) ##.
This means ## q ## is an even prime.
Now we have ## p-2=3 ##, so ## p=5 ##.
Therefore, the pair of primes ## p ## and ## q ## satisfying ## p-q=3 ## is ## (p, q)=(5, 2) ##.
 
Physics news on Phys.org
Math100 said:
Homework Statement:: Find all pairs of primes ## p ## and ## q ## satisfying ## p-q=3 ##.
Relevant Equations:: None.

Proof:

Let ## p ## and ## q ## be primes such that ## p-q=3 ##.
Now we consider two cases.
Case #1: Suppose ## p ## is an even prime.
This is much more general than it needs to be. The only even prime is 2, so the only primes that satisfy this case are q = 2 and p = 5.
Better:
## p-q=3 \Rightarrow p = q + 3##
By inspection it can be seen that q = 2 and p = 5 are two primes that satisfy the given equation.

Now suppose that q is prime with q > 2.
Necessarily q is odd, with q = 2n + 1 for some integer n.
Then p = q + 3 = 2n + 1 + 3 = 2n + 4 = 2(n + 2), which is an even integer, this not a prime.
##\Rightarrow \Leftarrow## Note that a pair of arrows that butt heads are often used to indicate a contradiction.
Therefore, the only primes that differ by 3 are 2 and 5.
Math100 said:
Then ## p=2 ##, because ## 2 ## is the only even prime.
Thus ## 2-q=3 ##, so ## q=-1 ##,
which contradicts the fact that ## q ## is prime.
Case #2: Suppose ## p ## is an odd prime.
Then ## p=2k+1 ## for some ## k\in\mathbb{N} ##.
Thus ## 2k+1=q+3 ##
## q=2k+1-3 ##
## =2k-2 ##
## =2(k-1) ##.
This means ## q ## is an even prime.
Now we have ## p-2=3 ##, so ## p=5 ##.
Therefore, the pair of primes ## p ## and ## q ## satisfying ## p-q=3 ## is ## (p, q)=(5, 2) ##.
 
  • Like
Likes   Reactions: pbuk and Math100
If ## p - q = 3 ## then ## p ## and ## q ## have opposite parity.
The only even prime is ## 2 ## so either ## p = 2 ## or ## q = 2 ##.
## p = 2 \implies q = -1 ## which is not a solution.
## q = 2 \implies p = 5 ## which is therefore the only solution.
 
  • Like
Likes   Reactions: Mark44

Similar threads

Replies
17
Views
3K
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
16
Views
3K
Replies
27
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
8
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
12
Views
3K
Replies
9
Views
2K