s3.5.3
Wilson's Theorem
1,000 questions
Wilson's Theorem states that for a prime number , the factorial is congruent to (or ) modulo .
This theorem is useful for problems asking for the remainder of a factorial when divided by a prime number. For example, for , since 7 is prime, Wilson's Theorem applies directly: .
If the modulus is not prime, you must check for common factors and simplify. For example, , so .