5.2: A Necessary Digression - Gauss’s Theorem on Sums of Euler’s Function
( \newcommand{\kernel}{\mathrm{null}\,}\)
Later in this chapter we will need a fact first proved by Gauss about Euler’s ϕ function:
Theorem 5.2.1
For all n∈N, ∑d∈Ns.t. d∣nϕ(d)=n .
We’ll give two proofs, which illustrate different features of this situation:
- Proof 1
-
Fix n∈N.
Let’s define some subsets of {1,…,n}, dependent upon a choice of a positive divisor d∣n, as follows Sd={k∈N∣1≤k≤n and gcd(k,n)=d} . These sets are disjoint since for each k∈N such that 1≤k≤n, d=gcd(k,n) has a specific value and k is only in that Sd.
For k∈Sd, gcd(k,n)=d or, by Theorem 1.5.1, gcd(k/d,n/d)=1. Thus #(Sd) is the number of elements ℓ∈N in the range 1≤ℓ≤n/d which are relatively prime to n/d, i.e., #(Sd)=ϕ(n/d).
Every k∈Z in the range 1≤k≤n is in exactly one of these Sd, for d a positive divisor of n. Therefore {1,…,n}=⋃d∈Ns.t. d∣nSd so n=#({1,…,n})=#(⋃d∈Ns.t. d∣nSd)=∑d∈Ns.t. d∣n#(Sd)=∑d∈Ns.t. d∣nϕ(n/d) . But as d runs over the positive divisors of n, so does n/d; in other words {d∣d∈N, 1≤d≤n\ and\ d∣n}={n/d∣d∈N, 1≤d≤n\ and\ d∣n}
We can therefore rewrite the last big equation as n=∑d∈Ns.t. d∣nϕ(n/d)=∑d∈Ns.t. d∣nϕ(d) which is what we were trying to prove.
- Proof 2
-
This approach will concentrate on the function F(n)=∑d∈Ns.t. d∣nϕ(d) , which has some very nice properties.
For example, suppose p is a prime and k∈N. Then the divisors of pk are 1,p,p2,…,pk, so F(pk)=ϕ(1)+ϕ(p)+ϕ(p2)+⋯+ϕ(pk)=1+(p−1)+(p2−p)+⋯+(pk−pk−1)=pk .
Furthermore, if p and q are distinct primes, then the divisors of pq are 1, p, q, and pq. Also, gcd(p,q)=1, so by Theorem 2.5.2 F(pq)=ϕ(1)+ϕ(p)+ϕ(q)+ϕ(pq)=ϕ(1)+ϕ(p)+ϕ(q)+ϕ(p)ϕ(q)=(1+ϕ(p))(1+ϕ(q))=F(p)F(q) , From this fact, one can prove (it’s an exercise below) that F(ab)=F(a)F(b) whenever a,b∈N are relatively prime. This means that F has the same sort of multiplicative property for relatively prime factors as does ϕ.
We are ready to finish the proof. So let n∈N be any number such that n>1 (for n=1, the theorem is trivial). Suppose the prime decomposition of n is given by n=pk11⋅⋯⋅pkrr , where the primes {p1,…,pr} are distinct. Therefore gcd(pkii,pkjj)=1 if i≠j and so we can use the multiplicative property of F and our calculation of F for prime powers to conclude F(n)=F(pk11⋅⋯⋅pkrr)=F(pk11)⋅⋯⋅F(pkrr)=pk11⋅⋯⋅pkrr=n , which is what we wanted to prove.
Exercise 5.2.1
- Finish the second proof of Gauss’s Theorem 5.2.1 by proving that F(ab)=F(a)F(b) for all a,b∈N which are relatively prime.