Fact9.5.1
\begin{equation*}\phi(p^e)=p^e-p^{e-1}=\left[1-\frac{1}{p}\right]p^e\end{equation*}
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.
With some effort above, you should have seen a pattern for \(\phi(p^e)\). Let's prove this.
\begin{equation*}\phi(p^e)=p^e-p^{e-1}=\left[1-\frac{1}{p}\right]p^e\end{equation*}
The most interesting proof is that of this fact about \(\phi\) applied to certain products. Later (Definition 18.1.3) we will see this has proved that \(\phi\) is multiplicative.
\begin{equation*}\phi(mn)=\phi(m)\cdot\phi(n)\text{ IF }\gcd(m,n)=1\end{equation*}
It can be easier to see with an example, say \(n=15\).
In the interact, the actual units modulo \(mn\) are marked with exclamation points. 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.
Again, since there are \(\phi(m)\) columns with \(\phi(n)\) elements in them, all coprime to both \(m\) and \(n\), that means there are \(\phi(m)\phi(n)\) elements coprime to \(mn\), which proves what we wanted.
If you were diligent in your exploration, you will have discovered that \begin{equation*}\sum_{d\mid n} \phi(d)=n\; .\end{equation*} We will prove this carefully, using subsets. We will gain insight of a combinatorial nature – that there are two ways to count \(n\), one of which is precisely about finding numbers coprime to divisors of \(n\).
To really understand this proof, it is best to follow along with \(n=15\).
\begin{equation*}\sum_{d\mid n} \phi(d)=n\end{equation*}
Some readers will want to know this will be revisited in a far more sophisticated way in Example 23.2.3.
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!