Homepage Solution manuals Ivan Niven An Introduction to the Theory of Numbers Exercise 2.8.39* (Primality test for $m$ without a complete factorization of $m-1$)

Exercise 2.8.39* (Primality test for $m$ without a complete factorization of $m-1$)

Let m be given, and let s be a product of prime power q α each having the property described in the preceding problem. Show that if s > m 1 2 then m is prime.

Answers

Proof. Here m > 1 . By hypothesis a m 1 1 ( mod m ) , and m 1 = st , where s = q 1 α 1 q 2 α 2 q k α k and t s = 1 , so that q i α i ( m 1 ) , and

( a ( m 1 ) q i 1 ) m = 1 , 1 i k .

By problem 38, every prime factor p of m satisfies p 1 ( mod q i α i ) for 1 i k . Since the q i are distinct, p 1 ( mod q 1 α 1 q 2 α 2 q k α k ) , so

p 1 ( mod s ) .

This implies that p > s > m 1 2 . Therefore m has no prime factor p m 1 2 . If m was composite, such a prime factor would exist. Therefore m is prime. □

Note: This theorem is useful if we don’t have at our disposal a complete factorization of m 1 . If such a factorization is known, we can use Lucas test (see Problem 24).

User profile picture
2024-09-28 07:54
Comments