Exercise 3.2.15* (Pépin's test)

Let q = 4 n + 1 where n is a positive integer. Prove that q is a prime if and only if 3 ( q 1 ) 2 1 ( mod q ) . In this way it has been shown that F 14 = 2 2 14 + 1 is composite, though no proper divisor of F 14 is known.

Answers

Proof. Let q = 4 n + 1 where n is a positive integer. Then q 1 ( mod 4 ) .

Suppose that q is a prime number. By the law of quadratic reciprocity and Theorem 3.1,

( 3 q ) = ( q 3 ) = ( 4 n + 1 3 ) = ( 2 3 ) ( since  4 n + 1 2 ( mod 3 ) ) . = 1 ,

Therefore, using Theorem 3.1(1),

3 ( q 1 ) 2 1 ( mod q ) .

Conversely, assume 3 ( q 1 ) 2 1 ( mod q ) . Then 3 2 2 n 1 1 ( mod q ) , and 3 2 2 n = ( 3 2 2 n 1 ) 2 1 ( mod q ) . This shows that the order d of 3 modulo q satisfies

d 2 2 n , d 2 2 n 1 ,

hence d = 2 2 n = 4 n = q 1 .

Therefore no two elements among the integers { 1 , 3 1 , 3 2 , , 3 q 2 } are congruent modulo q . Consider the set S = { [ 1 ] q , [ 3 ] q , [ 3 ] q 2 , [ 3 ] q q 2 } ( qℤ ) . Then | S | = q 1 , and S ( qℤ ) , where | ( qℤ ) | = q 1 = | S | , thus ( qℤ ) = S . Every element of ( qℤ ) is invertible (because [ 3 ] q is invertible, so [ 3 ] q j is invertible for all j 0 ). This shows that qℤ is a field. Therefore q is a prime number (and 3 is a primitive root modulo q ). □

Note: If 3 ( q 1 ) 2 1 ( mod q ) , where q = F 14 , we can conclude that F 14 is composite (2 second with Sage).

sage: f = 2^(2^14) + 1
sage: a = Mod(3,f)
sage: a^((f - 1) // 2)  == Mod(-1, f)
False

(The same instructions for F 4 = 65537 return ’True’).

According to Wikipedia, a prime factor of F 14 is not known on this day (2024).

User profile picture
2024-10-24 09:56
Comments