Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 3.2.15* (Pépin's test)
Exercise 3.2.15* (Pépin's test)
Let where is a positive integer. Prove that is a prime if and only if . In this way it has been shown that is composite, though no proper divisor of is known.
Answers
Proof. Let where is a positive integer. Then .
Suppose that is a prime number. By the law of quadratic reciprocity and Theorem 3.1,
Therefore, using Theorem 3.1(1),
Conversely, assume . Then , and . This shows that the order of modulo satisfies
hence .
Therefore no two elements among the integers are congruent modulo . Consider the set . Then , and , where , thus . Every element of is invertible (because is invertible, so is invertible for all ). This shows that is a field. Therefore is a prime number (and is a primitive root modulo ). □
Note: If , where , we can conclude that 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 return ’True’).
According to Wikipedia, a prime factor of is not known on this day (2024).