What I would like to show you today is one very interesting property that Euler’s totient function satisfies, which was discovered by Gauss, so the theorem is kind of an Euler/Gauss team-up! As it turns out, if you sum over every then you get back That is,
Where means “sum over positive divisors, of .”
When I first saw this result, I was surprised, and I hope you feel the same! Why would summing over divisors of total By the end of this article, we will know why!
We will go through two proofs. One is longer, but I think it has merit to learn because the proof does not rely on any special property of only definition, whereas the second proof uses a few properties of The second proof we will go through is a one-liner proof. Which is pretty nice.
Before we go through the proofs together, I recommend that you take some time to try to prove the theorem on your own before reading the proofs! Learning math(s) is always more fun when it’s hands-on! And the great thing is that this is only for fun! You’re not being tested or quizzed, so there is no time limit and no harm, no foul if you get stuck!
Just to make sure everyone is on the same page, here is the definition of Euler’s totient function, along with some of the properties we will need for the second proof. If you want to see a proof for the properties below, we proved these in Chapter 10 of Newbie at Number Theory, if you are interested!
Definition (Euler’s Totient Function): Let
be a positive integer. Let the setcontain all integers that are less thanand relatively prime toEuler’s Totient Function
is defined as the number of elements in the set,That is,
equals the number of positive integers less thanthat are relatively prime to
Theorem (Euler’s Totient Function Properties): Euler’s totient function,
satisfies the following properties:
- if is prime and is a positive integer,
- If then,
- If
then- An equivalent way to express 3. is the following,
Examples of :
Consider Then, and therefore We could also use property 3 to calculate as well. Since
Now let Then, and therefore Let’s use property 4 this time to check our work. Since we have
Note that there are more efficient ways to calculate and less efficient ways.
An Example of The Theorem
Before we go on to the proofs, let’s write out the statement and see an example.
Theorem (Gauss): Let
be Euler’s totient function andThen,Where
means “sum over positive divisorsof.”
Example: Let The set of the divisors of 12 is equal to Thus,
How remarkable! Even though I know this has to work out, since we’re about to prove it together, I still love how the result falls out so nicely! This theorem is one of those “little things in life” that bring me joy.
If you want to, you can check the case with
The Proofs
Proof #1: The Long Way Around
The advantage of this proof is that you only need to know the definition of and not all the properties (1)-(3).
Click to see the Proof:
The key idea in this proof is to partition the set into subsets that we can easily determine the size of. Since we’re summing over divisors of it makes sense that the relation we will use to set up our partitions will be divisor-related.
To get it out of the way, and for completeness, note that the statement holds for With that said, we now consider
Denote the set of all such that by That is,
In this way We claim that as we let run over positive divisors of the sets partition the set To see that this is the case, we must show that every is in one and only one sets
With the goal in mind, suppose that and It follows that and hence I’ll let you ponder why every is in at least one set We conclude the family of sets partition the set
We now shift our attention to determining how many elements are in each of the sets
A key observation is that if and only if and Therefore, is equivalent to
This is great! We know by definition that Therefore,
We have almost everything we need in place to finish up this proof! Our last claim needs proving is that summing over positive such that is the same as summing over positive such that Can you see why? It has to do with the fact that will run through all the divisors of just as does.1
Altogether, we are able to make the following deduction,
The final equality follows from the fact that the sets partition the set

This concludes the proof.
Proof #2: Short and Sweet
Click for the Proof:
The one-liner version of the proof is the following:
However, let’s explain what’s happening.
This proof relies on the fact that is multiplicative, i.e., has the property that whenever Let’s begin!
To get it out of the way, and for completeness, note that the statement holds for With that said, we now consider
Let The key step is to note that each of the divisors of shows up as a term in the following sum once expanded,2
Therefore, using the fact that is multiplicative, all we need to do is evaluate on all the terms in the sum. We deduce that
As a check, notice that every term we get when we expand the product on the right-hand side is of the form And, since we already know that the expanded sum in our gives every divisor of we know that the above product does indeed equal
Next, we use property (4.) to write the above product as a product of telescoping sums,
The great thing about telescoping sums is that we get lots of cancellations. Once done, we arrive at

Just like that, we’re done!
Closing Thoughts
I find both proofs fun for different reasons. The first is more intuitive and really shows you why the theorem is true. The second hides some of what’s happening with its slickness. But the second proof foreshadows methods that are useful for more advanced problems in number theory. For instance, we used the fact that is multiplicative to be able to use to rewrite our sum as a product of sums one for each prime divisor. This was useful because each of the sums were easier to handle than the original sum. For those who are interested in learning more about these types of sums, you can search for arithmetic functions, Dirichlet convolution, and the Möbius inversion formula.
A Gift for You!
I would like to leave you with your own problem to solve. Let denote the sum of the divisors of That is,
Definition (Euler’s Sigma Function): Let
be a positive integer. Euler’s sigma functionis defined as,Note that equals the sum of positive divisors of
As the name suggests (but does not guarantee), is another function that was invented (or discovered) by Euler. As an example, let Then,
Your challenge to prove the following: Let Then,
With all this said, thank you for taking the time to read this little article. I hope you found it helpful. I would appreciate it if you found that any part of this could have been explained better, and if there were any mistakes/typos to mention them in the comments.
Footnotes:

Leave a Reply