Möbius Inversion
Statement
The Möbius function is defined by
Möbius Inversion Formula: If for all , then
This is the statement that is the Dirichlet-convolution inverse of the constant function :
Visualization
Values of for small :
n Factorization μ(n)
----+----------------+------
1 1 1
2 2 -1
3 3 -1
4 2² 0 ← squared factor
5 5 -1
6 2·3 1 ← 2 prime factors, squarefree
7 7 -1
8 2³ 0
9 3² 0
10 2·5 1
11 11 -1
12 2²·3 0
30 2·3·5 -1 ← 3 prime factors, squarefree
Inversion in action: Take (Euler's totient). Then (a classical identity). Möbius inversion recovers .
Proof Sketch
-
Key identity: Show . For this is trivial. For , write . The sum over divisors of with is just the sum over squarefree divisors, which equals .
-
Substitution: Expand .
-
Reindex: Switch the order: for each divisor of , collect all dividing :
- Dirichlet series view: The generating Dirichlet series for is and for is , so their product is , which is the Dirichlet series for .
Connections
Möbius inversion is the cornerstone of analytic and algebraic number theory. It immediately yields the formula for Euler's Totient . It underpins the Riemann zeta function and prime-counting via . The formula generalises to any locally finite partially ordered set (Rota's generalisation). The Möbius function is itself a multiplicative functionMultiplicative FunctionsArithmetic functions that split over coprime inputs: f(mn) = f(m)f(n) when gcd(m,n) = 1Read more →, and the inversion formula preserves multiplicativity. See also Fundamental Theorem of ArithmeticFundamental Theorem of ArithmeticEvery integer greater than 1 has a unique prime factorizationRead more → for the squarefree factorization structure.
Lean4 Proof
open ArithmeticFunction in
/-- The Möbius function is the Dirichlet-convolution inverse of the constant-1
arithmetic function (the zeta function). In Mathlib this is stated as
`moebius_mul_coe_zeta : (μ * ζ : ArithmeticFunction ℤ) = 1`. -/
theorem moebius_zeta_inverse :
(ArithmeticFunction.moebius * ArithmeticFunction.zeta : ArithmeticFunction ℤ) = 1 :=
ArithmeticFunction.moebius_mul_coe_zetaReferenced by
- Multiplicative FunctionsNumber Theory
- Multiplicative FunctionsNumber Theory
- Multiplicative FunctionsNumber Theory
- Mertens' TheoremsNumber Theory
- Divisor Function σ(n)Number Theory
- Inclusion-Exclusion PrincipleCombinatorics
- Stirling NumbersCombinatorics
- Bell NumbersCombinatorics