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 be given, and let be a product of prime power each having the property described in the preceding problem. Show that if then is prime.
Answers
Proof. Here . By hypothesis , and , where and , so that , and
By problem 38, every prime factor of satisfies for . Since the are distinct, , so
This implies that . Therefore has no prime factor . If was composite, such a prime factor would exist. Therefore is prime. □
Note: This theorem is useful if we don’t have at our disposal a complete factorization of . If such a factorization is known, we can use Lucas test (see Problem 24).