Fermat's little theorem says that for a prime number and any integer ,
If , cancellation gives the equivalent statement .
Wilson's theorem states that an integer is a prime number if and only if
In particular this holds for every prime, including .
Apply Fermat's little theorem and Wilson's theorem in the ring of integers modulo n with modulus . They give
A vanishing modular congruence modulo is precisely divisibility by , so both divisibilities hold, without requiring .
Because the primes are distinct, Fermat's little theorem gives and . The other term in each modulus vanishes. Therefore
The distinct primes are coprime, so their product divides this integer. Hence

Articles by others on the same topic (0)

There are currently no matching articles.