Homepage › Solution manuals › Ivan Niven › An Introduction to the Theory of Numbers › Exercise 2.1.34 (Converse of Wilson's theorem.)
Exercise 2.1.34 (Converse of Wilson's theorem.)
Show that an integer is prime if and only if divides .
Answers
Proof. The Wilson’s theorem (Theorem 2.11) shows that if is prime, then divides . To prove the converse, we show that if is not prime (i.e is composite), then doesn’t divide .
Let a composite number. Then , where .
Suppose first that . Since , then , are distinct elements of the set , therefore divides (even if , are not relatively prime). Hence (otherwise ).
The only case where the composite is not a product where is the case where is the square of a prime number . Indeed, write the decomposition of in prime factors.
- If , we can take are distinct non trivial divisors of .
- If , for . If , then are distinct non trivial divisors of .
It remains to prove , if is some prime number.
Assume for contradiction that . A fortiori . But ( because ), therefore , thus , and this is impossible since is prime.
We have proved that if is composite, then .
To conclude, is prime if and only if divides □