# Two perspectives on the Möbius transform

Published:

The Möbius function $\mu$ is special because of its inversion principle:

That is, every sum over divisors can be uniquely inverted. This seems pretty surprising to me. I want to discuss two ways that we can think of the Möbius function. First as a function dreamed up exactly to give us that inversion identity, and then as a natural object to study in generating functions.

# Recurrences

It is easy to retrospectively conjure up the Möbius function. Suppose that we want to show that we can invert a sum over divisors. That is, we want to turn

into something like

for some suitable $q$. (This exact form seems like a questionable step, but could be motivated. It’s something like the convolution of two sequences, tailored for number theory.) We would begin by looking at that inner sum:

Interchanging the order of summation turns this into

We would really like for that inner sum to equal $[n = k]$, or $[n / k = 1]$. That is, we would like for $q(d)$ to satisfy the identity

for all nonnegative integers $m$. This is precisely the definition of the Möbius function, so $q(d) = \mu(d)$. The proof ends with

So, armed with a little bit of foresight (or hindsight), it isn’t too hard to guess what the Möbius function should be.

# Generating functions

The previous derivation of the Möbius function still requires some ingenuity. You need to conjecture that the inversion formula will take a certain form, then know enough about interchanging sums over divisors so that everything becomes clear. There is another way to discover the Möbius function that is entirely ingenuity-free: With generating functions.

The two usual types of generating functions are the exponential and ordinary kind. However, there are others. The one useful for us is the Dirichlet generating function (dgf) of a sequence, defined as

for a sequence ${a_n}$. As an example, the Riemann zeta function is just the Dirichlet generating function of the sequence $a_n \equiv 1$:

Like other generating functions, dgfs satisfy a useful multiplication rule. If $F(s)$ and $G(s)$ generate ${a_n}$ and ${b_n}$, respectively, then $F(s) G(s)$ generates

This lets us formulate the inversion principle in terms of dgfs. The equation

is equivalent to saying that

where $G$ and $F$ are the dgfs of $g(n)$ and $f(n)$. Simply multiplying by $\zeta^{-1}(s)$ gives

Equating coefficients gives us a relationship between $f(n)$ and $g(n)$. All that remains is to find the coefficients of $\zeta^{-1}(s)$. Suppose that

Then, the equation $\zeta(s) \zeta^{-1}(s) = 1$ is equivalent to saying that

This is exactly the definition of the Möbius function. That is, $z_n = \mu(n)$. From this perspective, the Möbius transform is a trivial consequence of the relation

In some sense, the Möbius inversion is the simplest possible thing that we could prove here. The dgf $\zeta(s)$ is the simplest generating function that we could imagine, and the Möbius inversion formula just comes from looking at its inverse. We could easily discover other, more complicated identities by considering more complicated generating functions.

For example, the dgf of the sequence $a_n = n$ is $\zeta(s - 1)$. Right away, we can generate the sum of divisors sequence with $\zeta(s) \zeta(s - 1)$:

However, this seems like a topic to explore another day.