Eulers Theorem
Eulers Theorem
Eulers theorem is a fundamental result in number theory that generalizes Fermats little theorem. It establishes a relationship between modular exponentiation and the totient function, with profound applications in cryptography and computational number theory.
Named after Leonhard Euler, this theorem is the mathematical foundation underlying the RSA cryptosystem.
The Euler Totient Function
Before stating the theorem, we need the Euler totient function
Examples
Formula for Totient
For a prime
For a prime power:
For coprime integers m and n, the totient is multiplicative:
Using the prime factorization, we get the general formula:
Statement of Eulers Theorem
Theorem: If
In words: if
Proof Outline
The proof uses the group of units modulo
Consider the map
The left side equals
Fermats Little Theorem as a Special Case
When
Equivalently, for any integer
This version holds even when
Applications
Computing Modular Inverses
If
So the inverse of a modulo
RSA Cryptography
The RSA algorithm uses Euler's theorem directly. Given
For any message
Reducing Large Exponents
Eulers theorem allows us to reduce exponents in modular arithmetic. To compute
This dramatically simplifies computations with very large exponents.
Carmichael Function
The Carmichael function
For example,
Generalizations
Euler's theorem can be generalized in several ways. For any group
The theorem also extends to polynomial rings and other algebraic structures, forming part of the broader theory of groups and rings.
Computing the Totient Function
To compute
For example, phi(12) = phi(4) times phi(3) = 2 times 2 = 4, or equivalently 12 times (1 - 1/2) times (1 - 1/3) = 12 times 1/2 times 2/3 = 4.
Historical Note
Euler published this theorem in 1763, generalizing Fermats little theorem from 1640. The proof demonstrates Eulers mastery of combining algebraic and number-theoretic ideas.
The theorem remains central to computational number theory and is one of the most practically important results in mathematics, securing trillions of dollars in electronic transactions through its role in RSA encryption.