Möbius inversion formula Created 2026-09-24 Updated 2026-10-14
Möbius inversion recovers an arithmetic function from its divisor sum. For arithmetic functions , the following statements are equivalent, with each equality required for every positive integer :
Here ranges over positive integer divisors of and is the Möbius function. No multiplicativity assumption is needed, and both sums are finite. The right side can also be written by exchanging complementary integer divisors. [ref]
The divisor sum bundles together with values at smaller integer divisors. Möbius inversion subtracts aggregates indexed by one distinct prime factor, adds those indexed by two, and continues with the alternating signs of inclusion-exclusion. A divisor containing a squared prime factor receives weight zero. The Möbius divisor-sum identity ensures that every unwanted contribution cancels exactly.
In Dirichlet convolution notation, and , where is the constant-one arithmetic function and is the Identity for Dirichlet convolution. Associativity and commutativity give the short proof:
Convolving with proves the reverse implication. At , the formula reduces to because .
For a worked example, take , Euler's totient function. The totient divisor-sum identity says that , the identity arithmetic function:
This identity comes from classifying the integers by their greatest common divisor with : the group with has members, since and are coprime integers. Summing the group sizes gives , as detailed under totient divisor-sum identity.
Now undo this aggregation with the Möbius function:
The nonzero terms use ; vanish because they contain the square of the prime number . The four surviving integers coprime to are .
Figure 1.
A divisor sum aggregates Euler's totient function values to 12, while Möbius inversion recovers the four integers coprime to 12
. Details.
This example also reveals why Möbius inversion is useful: it turns an easy count of all objects into a count satisfying a coprimality restriction. Expanding over subsets of distinct prime factors gives
The product is inclusion-exclusion over multiples of the prime factors. For , it gives . More generally, whenever a counting problem produces a divisor sum, Möbius inversion lets that aggregate be reversed without solving a new system of equations.
absolute convergence depends only on , since . Let be the set of real for which converges. Comparison with a convergent member shows that is upward closed. The hypotheses give a member of and a real number outside , so its infimum is finite. If , some lies below , giving convergence by comparison; if , convergence would contradict the definition of the infimum. Thus is the abscissa of absolute convergence of a Dirichlet series. This argument leaves convergence on the boundary open.
Partition according to . Writing identifies the part indexed by with the integers coprime to . There are of them. Counting the entire partition proves the totient divisor-sum identity
We use the multiplication theorem for absolutely convergent Dirichlet series: their product is the Dirichlet series of the Dirichlet convolution of their coefficients. absolute convergence justifies rearrangement of the double sum. Here , so its series converges absolutely for , and
The Euler product implies for . Division gives
We finally use the simple pole of the Riemann zeta function at one, of residue one, and . The quotient therefore tends to as real . If converged, its nonnegative terms would dominate the series at every real , giving a uniform finite bound and a contradiction. Thus the series diverges at two; comparison then excludes absolute convergence at every . Combined with the convergence already proved, the abscissa is exactly two. This is the totient Dirichlet series and its absolute convergence boundary.
The totient divisor-sum identity and multiplication of absolutely convergent Dirichlet series give the quotient for . The bound proves convergence there. The simple pole of the Riemann zeta function at one makes the quotient unbounded as real . Since the coefficients are nonnegative, convergence at two would bound all these larger-real-part values, a contradiction. Thus the abscissa of absolute convergence of a Dirichlet series is two.