Proving RSA Encryption: An Application of Group Theory (Part 3: Digital Signatures and Euler's Totient Function)
We’ve finally proved Fermat’s Little Theorem and explained some of the machinery behind groups and rings. Let’s continue by defining an important function.
Definition (Euler’s Totient Function): Let be defined as the number of integers less than or equal to that are relatively prime to for is also known as the Euler phi-function.
As you can see, it can be quite hard to procure a general formula for for all . However, in some cases it is relatively easy— for example, if is prime, then is simply Recall from the last post that the Euler phi-function simply defines the order of the multiplicative group of units We now state an important theorem:
Theorem (Euler’s Theorem): Let be relatively prime to that is, Then
where denotes the Euler phi-function, and
Proof: Euler’s Theorem is equivalent to the following statement: For all , (mod ). We know from a previous theorem that any element of a finite group raised to the power of the order of the group is Since , we have
Notice that the reasoning behind the proof is almost the exact same as the proof of Fermat’s Little Theorem: Indeed, Euler’s Theorem is simply a generalization of Fermat’s Little Theorem— Fermat’s Little Theorem simply describes the case where is prime.
Update (2025): The rest has been omitted because I couldn’t get the KaTeK align environment working.