For a prime number , the nonzero residue classes form the multiplicative group of the finite field . Every class has a unique multiplicative inverse. A class equals its own inverse precisely when , so in the field and or .
For an odd prime, pair each remaining class with its distinct inverse. Each pair contributes one to the product, leaving
For , the same congruence is . This proves Wilson's theorem.
Write , and . The residues are exactly the odd factors of , in reverse order. Hence
by Wilson's theorem. It follows that the odd-residue squared product modulo a prime is
Thus it is for and for .

Articles by others on the same topic (0)

There are currently no matching articles.