proof of Wilson’s theorem result
\\PMlinkescapephrase
set of primesWe denote by the set of primes and by the multiplicative inverse of in .
Theorem (Generalisation of Wilson’s Theorem).
For all integers
Proof.
If is a prime, then:
and since (Wilson’s Theorem, simply pair up each number — except and , the only numbers in which are their own inverses — with its inverse), the first implication follows.
Now, if , then as the opposite would mean that , for some integers , and so would not be relatively prime to as the initial hypothesis implies.∎