Section 9.5 Proofs and Reasons
In this text, we try to strike a balance between exploration and proof. The point is that number theory is both of these things. Exploration is wonderful, but we will see a number of times where we really do need the proof to avoid error. Nonetheless, do not start this section before really trying things!
In a good proof, the techniques will not just prove that things are true, but lend insight into why they are true. The proofs here have this trait.
Subsection 9.5.1 Computing prime powers
With some effort above, you should have seen a pattern for \(\phi(p^e)\text{.}\) Let's prove this.
Fact 9.5.1.
Proof.
What we want is the number of positive numbers (!) coprime to \(p^e\) and less than \(p^e\text{.}\)
The most important point is that any number which is not coprime to \(p^e\) must share a prime factor with it, which must be \(p\text{.}\) Likewise, any number divisible by \(p\) is not coprime to \(p^e\text{,}\) so this is a necessary and sufficient condition.
Now we just need to count these numbers. But all the numbers less than or equal to \(p^e\) which have a factor of \(p\) are just the multiples of \(p\text{,}\) which occur every \(p\)th element. Since \(p^e\) itself is the \(p^{e-1}\)th such multiple, there are exactly \(p^{e-1}\) such integers not coprime to \(p^e\text{.}\)
Subtract; there are
elements which are coprime.
Subsection 9.5.2 Multiplicativity
The most interesting proof is that of the following fact 1 about \(\phi\) applied to certain products. Later (Definition 18.1.2) we will see this has proved that \(\phi\) is multiplicative.
Fact 9.5.2.
If \(\gcd(m,n)=1\text{,}\) then \(\phi(mn)=\phi(m)\cdot\phi(n)\text{.}\)
Proof.
Take the integers from 1 to \(mn\) and arrange them in an array like so – \(n\) rows, \(m\) columns:
Notice that only some of the columns contain elements of \(U_m\text{,}\) namely, the columns with \(km+\ell\) where \(\gcd(\ell,m)=1\text{.}\) The others necessarily share nontrivial factors with \(m\text{,}\) so we focus on the \(\phi(m)\) columns like this where all elements are coprime to \(m\text{.}\)
Now within each such column, I claim there are all possible classes in \(\mathbb{Z}_n\text{.}\) Why?
Suppose that two elements of the \(\ell\) column are the same equivalence class. Then \(km+\ell\equiv k'm+\ell\) (mod \(n\)).
In that case we cancel \(\ell\) to get \(km\equiv k'm\text{,}\) and we can also cancel \(m\text{,}\) since we already know it is coprime to \(n\text{.}\) That leads to \(k\equiv k'\text{.}\)
In particular, each class is only represented once in each column.
That means that each relevant column has exactly \(\phi(n)\) elements in it which are coprime to \(n\) (though which rows these elements are in will depend upon the column). In total we have \(\phi(m)\phi(n)\) of them!
Example 9.5.3.
It can be easier to see with an example, say \(n=15\text{.}\) Try the following interact if you are online. The elements that are units modulo \(mn\) are marked with exclamation points.
Warning! If you pick an \(m\) and \(n\) which aren't coprime, you'll see how the exclamation points don't come in the right amounts or the right places for the proof.
Again, since there are \(\phi(m)\) columns with \(\phi(n)\) elements in them, all coprime to both \(m\) and \(n\text{,}\) that means there are \(\phi(m)\phi(n)\) elements coprime to \(mn\text{,}\) which proves what we wanted.
Subsection 9.5.3 Addition Formula
If you were diligent in your exploration, you will have discovered that
We will prove this carefully, using subsets. We will gain insight of a combinatorial nature – that there are two ways to count \(n\text{,}\) one of which is precisely about finding numbers coprime to divisors of \(n\text{.}\)
To really understand this proof, it is best to follow along with \(n=15\text{.}\)
Fact 9.5.4.
Proof.
In order to show this, we will take the set \(\{1,2,3,\ldots,n\}\) and partition it into subsets of numbers that each have the same \(\gcd\) with \(n\text{.}\) If we can show there are \(\phi(d)\) numbers having each possible \(\gcd\text{,}\) then that totals up to \(n\text{.}\)
Indeed, the only possibilities for greatest common divisor with \(n\) are the \(k\) various divisors \(\{d_i\}_{i=1}^k\) of \(n\text{,}\) so that each subset corresponds to one of these divisors. Our subsets then look like
Let's look at these sets more carefully. Each one consists of numbers sharing divisor \(d_i\) with \(n\text{.}\) So, if we wanted to, we could divide all the numbers in the \(i\)th set
by their common factor \(d_i\text{.}\)
That new set will be the set of positive numbers \(b\leq \frac{n}{d_i}\) also coprime to \(\frac{n}{d_i}\text{.}\) So the size of the subset of numbers having gcd \(d_i\) with \(n\) is the same as the number of these \(b\) coprime to \(\frac{n}{d_i}\text{.}\)
More precisely, if we look at all the original subsets in question, they have the same sizes as the following sets:
These new sets \(\{b\in\mathbb{Z}\mid 1\leq b\leq n/d_i,\; \gcd(b,n/d_i)=1\}\) themselves are different from before (and possible not disjoint). But their sizes (or cardinalities) are the same as before, and the old sets were all disjoint, so we conclude that
But the set of numbers \(\frac{n}{d_i}\) for all divisors \(d_i\) of \(n\) is also the set of all divisors of \(n\text{,}\) so we can rewrite the sum as desired!
Some readers will want to know this will be revisited in a far more sophisticated way in Example 23.2.4.
Subsection 9.5.4 Even more questions
There are lots of other interesting questions to tackle. Go back to the beginning of Section 9.4 and look at some of the questions you didn't yet explore. You now have the tools you need to tackle such questions, and even to prove things about them. The structure of \(\phi\) is very regular!