The Fermat-Euler theorem states that, for an integer and any integer coprime to ,where the Euler totient function counts the residue classes coprime to .
Let be representatives of these residue classes. Multiplication by gives a permutation of them: each remains coprime to , and implies by cancellation using the modular inverse of . Multiplying all the resulting modular congruences yieldsThe product is itself coprime to , so it has a modular inverse and can be canceled. This proves the Fermat-Euler theorem. For , the congruence is trivial; no separate argument is needed.
For the odd prime , the Fermat-Euler theorem gives . Therefore the residue class obeys . Since a prime number dividing a product divides one of its factors,If is a quadratic residue, choose with . Then is nonzero modulo , and Fermat's little theorem givesThis proves the quadratic residue direction of Euler's criterion.
Suppose is a quadratic nonresidue. On the nonzero residue classes modulo , define the involutionIt is an involution because . A fixed point would satisfy , which is excluded by the quadratic nonresidue hypothesis. Thus it partitions the classes into disjoint pairs , each with product . ConsequentlyNow evaluate the same product by pairing every class with its own modular inverse. The only classes equal to their modular inverses solve and hence are and . All other pairs have product one. The complete product is therefore , soTogether with the preceding part, this is Euler's criterion; the pairing argument establishes the converse without assuming it.
Fermat's little theorem reduces the exponent modulo because is a prime number and is coprime to it. Compute , then and . Thus for an integer , andThe exponent is , rather than an iterated left-associated power.
Articles by others on the same topic
There are currently no matching articles.