Problem

Wilson’s theorem says that a number N is prime if and only if(a) If p is prime, then we kn...

Wilson’s theorem says that a number N is prime if and only if

(a) If p is prime, then we know every number 1 ≤ x


(b) By pairing up multiplicative inverses, show that (p − 1)! ≡ −1 (mod p) for prime p.


(c) Show that if N is not prime, then (N − 1)!  (mod N). (Hint: Consider d = gcd(N, (N − 1)!).)


(d) Unlike Fermat’s Little theorem, Wilson’s theorem is an if-and-only-if condition for primality. Why can’t we immediately base a primality test on this rule?

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 1