Section 23.2 Inverting Functions
ΒΆTheorem 23.2.1. MΓΆbius Inversion Formula.
If f(n)=βdβ£ng(d), then
g(n)=βdβ£nΞΌ(d)f(nd).
Proof.
The proof is delayed to Subsection 23.2.2.
Example 23.2.2.
If we apply this theorem to
Ο(n)=βdβ£n1=βdβ£nu(n)
(recall Definition 19.2.9) then it implies
βdβ£nΞΌ(d)Ο(nd)=1.
This is worth checking by hand or with Sage. Somehow, mysteriously, the number of divisors weighted by the ΞΌ function nearly balances out.
Subsection 23.2.1 Some useful notation
ΒΆIn order to better understand what this theorem is saying, let's introduce some notation.Definition 23.2.3. Dirichlet product.
Let f and g be arithmetic functions. Then we define the new function fβg, the Dirichlet product, via the formula
(fβg)(n)=βde=nf(d)g(e)=βdβ£nf(d)g(nd).
Example 23.2.4.
For example, if we recall u(n)=1 and N(n)=n from Definition 19.2.9β2βSee also Definition 23.3.1., then
(Οβu)(n)=βdβ£nΟ(d)u(nd)=βdβ£nΟ(d)=n=N(n).
We saw this originally in Fact 9.5.4, but now we can write it concisely as Οβu=N and see it is part of a bigger context. (See also Fact 23.3.2.)
If f=gβu, then g=fβΞΌ.
Subsection 23.2.2 Proof of Moebius inversion
ΒΆNow we are ready to prove the MΓΆbius Inversion Formula, following the standard proof, as for example in [C.2.1]. Let's expand the formula for g(n) the theorem would give, in terms of g itself.
βdβ£nΞΌ(d)f(nd)=βdβ£nΞΌ(d)[βeβ£ndg(e)].
Each time g(e) appears in this sum, it has a coefficient of ΞΌ(d). How often does this happen, and what is d anyway?
If eβ£nd, then eβ£n, which means ne is an integer. However, this integer must have at least a factor of d βleftβ in it (after division by e). Why? Since e divides nd, we have edβ£n, in which case certainly dβ£ne.
So g(e) shows up once for each dβ£ne, with coefficient ΞΌ(d). Thus,
βdβ£nΞΌ(d)f(nd)=βeβ£n(βdβ£neΞΌ(d))g(e).
Here comes the final step. Unless ne=1, we have βΞΌ(d)=0. So the only subsum in this double sum that sticks around is the term for ne=1, or when e=n.
Thus the whole sum collapses to g(n), as desired!