For a prime number , every nonzero residue class has a unique multiplicative inverse modulo : Bezout identity supplies one because its representative is coprime to , and cancellation modulo a prime gives uniqueness. Pair each residue with its inverse. The only unpaired residues satisfy , so ; the Euclid lemma gives or . For odd , these are distinct. Every other pair contributes one to the product of all nonzero residues, leavingFor , as well. This proves Wilson theorem in all cases.
For an odd prime, set . Pair the upper half of the factorial with the negatives of the lower half:If , then is even. ThereforeThis constructs a square root of minus one modulo a prime explicitly.
The modular congruence first implies . Multiplication by such an permutes the nonzero residue classes modulo the prime : if , cancellation gives . Multiply all these residues and cancel their nonzero product to obtain , the usual short proof of Fermat little theorem.
Now . By the Euclid lemma, either or . In the latter case, because ,contradicting the preceding product argument, since is odd. ThusNo unproved assertion about the number of fourth roots is needed.
For , part (i) constructs a solution to . It is nonzero modulo , so and are distinct for odd . Any other solution obeysThe Euclid lemma forces or . Hence there are exactly two solutions. For , a solution to would have , but part (ii) would imply , impossible because cannot divide two. ThereforeThese two cases exhaust all odd primes.
Articles by others on the same topic
There are currently no matching articles.