Fermat's little theorem states that for a prime and any integer ,
If , the equivalent multiplicative form is .
Wilson's theorem states that an integer is prime if and only if
In particular the congruence holds for every prime , including two.
Combine the preceding congruences: and . Therefore , and . This proves both stated divisibilities for every integer , with no assumption that is coprime to .
Modulo , the term is zero and Fermat's little theorem gives , since . Modulo , the roles reverse. Hence the sum minus one is divisible by both distinct primes. Their coprimality gives

Articles by others on the same topic (0)

There are currently no matching articles.