Exercise 1.3.17 (Twin primes)

Twin primes are those differing by 2 . Show that 5 is the only prime belonging to two such pairs. Show also that there is a one-to-one correspondance between twin primes and numbers n such that n 2 1 has just four positive divisors.

Answers

Proof. If p belongs to two pairs of twin primes, then p 2 , p , p + 2 are prime numbers.

Suppose that p > 5 , then p ± 1 ( mod 6 ) .

If p 1 ( mod 6 ) , then p + 2 3 ( mod 6 ) , thus 3 p + 2 , where p + 2 > 3 , therefore p + 2 is not a prime.

If p 1 ( mod 6 ) , then p 2 3 3 ( mod 6 ) , thus 3 p 2 , where p 2 > 3 , therefore p 2 is not a prime.

This contradiction shows that p 5 . Since 2 , 3 don’t belong to two such pairs, 5 is the only prime belonging to two pairs of twin primes.

Now suppose that n 2 1 has just four positive divisors, i.e. 1 , n 1 , n + 1 , n 2 1 are the only divisors of n 2 1 . This shows that n 1 has just two divisors, so is prime, and similarly n + 1 is prime. Thus ( n 1 , n + 1 ) is an orderd pair of twin primes.

Conversely, let ( p , q ) be an ordered pair of twin primes, where p < q , so that q = p + 2 . Let n = p + 1 = q 1 . Then 1 , p = n 1 , q = n + 1 , n 2 1 are distinct divisors of n 2 1 . Let r be any prime divisor of n 2 1 . Then r n 1 = p or r n + 1 = q , so r = p or r = q . If d is any divisor of n 2 1 , then d = p i q j , where i 0 , j 0 .

If j 2 , then q 2 = ( n + 1 ) 2 n 2 1 . This is impossible since ( n + 1 ) 2 = n 2 + 2 n + 1 > n 2 1 .

If i 2 , then p 2 = ( n 1 ) 2 n 2 1 , thus n 1 n + 1 , so p q : this is impossible because p , q are distinct primes.

Therefore d = p i q j , where 0 i 1 and 0 j 1 . Then n 2 1 has just four divisors 1 , p = n 1 , q = n + 1 and pq = n 2 1 .

Let A be the set of pairs of twin primes { p , q } and B the set of positive integers n such that n 2 1 has exactly four divisors.

Then φ : A B , ψ : B A , defined by

φ ( { p , q } ) = ( p + q ) 2 , ψ ( n ) = { n 1 , n + 1 } ,

are well defined by the above argument, and ψ φ = 1 A , φ ψ = 1 B , so φ is a bijection (and ψ = φ 1 ). □

User profile picture
2024-10-04 10:23
Comments