Problem

Exercise asked you to determine the value of (p − 1)! (mod p) when p is a prime number.(a)...

Exercise asked you to determine the value of (p 1)! (mod p) when p is a prime number.

(a) Compute the value of (m 1)! (mod m) for some small values of m that are not prime. Do you find the same pattern as you found for primes?


(b) If you know the value of (n 1)! (mod n), how can you use the value to definitely distinguish whether n is prime or composite? 

Exercise: 

The quantity (p 1)! (mod p) appeared in our proof of Fermat’s Little Theorem, although we didn’t need to know its value.

 (a) Compute (p 1)! (mod p) for some small values of p, find a pattern, and make a conjecture.


(b) Prove that your conjecture is correct. [Try to discover why (p 1)! (mod p) has the value it does for small values of p, and then generalize your observation to prove the formula for all values of p.] 

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 9