As you might have guessed, we’re going learn about Euler’s generalization of Fermat’s Little Theorem, that I’ve dubbed Euler’s Little Theorem. Note this is only what I call the theorem, unfortunately no one else seems to call it this! But, maybe if you start to refer to it as Euler’s Little Theorem then it’ll catch on! Any who, before we get to Euler’s Little Theorem, we must recall Euler’s Totient function from last time.
Euler’s Totient function
This is a review of Newbie at Number Theory (Part 7): Euler’s Totient function.
Ok, so what is this strange sounding function? It’s simply a function that, when given an integer , spits out how many positive integers less than are relatively prime to .
This needs an example.
Let’s let . We want to know how many integers between 1 and 12 are relatively prime to 12.
We’ll 2, 4, 6, 8, 10 12, all share 2 as a factor with 12. So let’s get rid of those.
And 3 and 9 share 3 as a factor with 12. This leaves,
Thus, . Likewise, you can check that and
Euler’s totient function has many wonderful and beautiful properties. Here are a few that we proved here:
if is prime,
if ,
if for all .
Connection to Fermat’s Little Theorem
Recall Fermat’s Little Theorem,
Fermat’s Little Theorem (Standard): Let be prime and let then
Let’s rewrite Fermat’s Little theorem using Euler’s totient function. Since is prime and hence we could have stated it in the following way:
Fermat’s Little Theorem (Using Euler’s Totient): Let be prime and let then
This might hint at what Euler discovered. But I want to give you a chance to discover it for yourself. So, choose some integers and and see if you can find a connection between and that’s similar to Fermat’s Little Theorem. But don’t assume that either or are prime.
Keep thinking…
You got it…
Give it one more minute…
Euler found that for all and where then
For example, let and we have,
Since both and . How amazing! Does this work for every relatively prime integers????? Yes, yes it does.
Let’s see why!
Euler’s Little Theorem
Euler’s Little Theorem: Let and be a positive integers such that then
Proof:
Let and be a positive integers such that
How might we go about proving this statement? Well, since we are considering such that let’s consider a set of positive integers relatively prime to and are less than We’ll denote this set by
From the definition of we know that has elements. So we can instead write as,
Observe that since we know that is in one of the in
In a spur of inspiration, let’s take the product of all the elements in with Denote this set by
We claim that every in is congruent (mod n) to an in Likewise, that every in is congruent (mod n) to a in Ie,
(1) For any in the set there is an in the set such that
(2) And for any in the set there is an in the set such that
We will do this in four steps. First, we’ll show that Next, we will show that any integer congruent to will also be relatively prime to n. This step establishes that is congruent to some in From there, we will show that no two elements in are congruent to one another (mod n). We deduce that every element in is unique modulo n. Lastly, in order to conclude that there must be a one-to-one correspondence using modular arithmetic (mod n) between the elements of and we will recall that and have the same number of elements as well as step 3’s result.
Step 1:
Let so that and Now consider some prime divisor of . By Euler’s Lemma (see here), implies that and/or In either case we have a contradiction since implies and thus either and/or contradicting that and Conclusion:
Step 2:
You will show that any integer that is congruent to will also be relatively prime to But let me get you started. Observe that any integer congruent to will be of the form for some integer I challenge you to prove the following statement:
If then for all integers
I put a proof in the following footnote if you want to check how you did!1
By letting and , what you just proved implies for some element in But, are we guaranteed to find an integer that is congruent to in the range ? Yes, by the division algorithm. Can you work out why?
Step 3: for all and in where
We’re almost done! We now show that every element in is distinct (mod n). Equivalently, if , then Begin by letting Rearranging the congruence we deduce,
And since we can safely divide by to get or,
for some integer Recall and hence their difference is bounded in a similar way so that
implying because is an integer. Altogether
Step 4: One-to-one Correspondence
Recall that and have the same number of elements and that all of their elements are unique up to congruence (mod n). More than this, by Step 2, by using congruence (mod n) we have a one-to-one correspondence between the two sets. Can you see why?
QUICK RECAP: In the proof we showed that every element in is one of the elements in up to congruence and every element in is one of the elements in up to congruence
Since we know that up to congruence the two sets are the same, it must be that the following two products are also congruent
Better yet,
We now use that all of the s are relatively prime to and divide by This gives our final result,
An example
Let’s see what we can use Euler’s Little theorem for.
Consider the following puzzle. What are the last two digits (the ones and tens place value) of ?
Give this a go! As a hint, don’t multiply this out and you’ll need Euler’s Little theorem!
Solution: Consider that if you only wanted to know the ones digit of some integer you only need to compute Likewise, to find the ones digit and the tens digit of you only need to This is where Euler’s Little theorem comes into play.
To use the theorem, we must first find We make use of our results from Newbie at Number Theory (Part 7): Euler’s Totient function as well as the factorization
Employing some exponent rules we conclude that the last two digits of are:
How much easier was this compared to having to multiply 123 by 123 eighty-one times!
Concluding Remarks
Euler’s Little theorem is a beautiful generalization of Fermat’s Little theorem. This might be enough for you, the reader, to be interested in the result. However, for those with a more pragmatic interest in mathematics, you’ll be happy to know that modern cryptography utilizes Euler’s Little theorem! How wonderfully surprising! Check out this article about RSA encryption to learn more, RSA Encryption | Brilliant Math & Science Wiki.
As always, leave any questions you have in the comments! I hope you had a kick in the discovery today!
Footnote:
- hope you gave it a go! Even if you couldn’t prove it it’s great that you tried!
So our goal is to show:We’ll do this by first focusing on. Sincedivides bothand, we concludeand thus,. This means that. Therefore,and thus(why?)
Turning our attention to, we knowdivides both,, and, we concludeor. Therefore,orand since, it must be. ↩︎

Leave a reply to Euler’s Little Theorem (Bonus Proof) – A Kick in the Discovery Cancel reply