Key idea of this section
g(n) = ∑d|n f(d) for all n ⟺ f(n) = ∑d|n μ(d) g(n/d) for all n.
The Dirichlet ring
An arithmetic function is any f : ℕ → ℂ. It is multiplicative if f(1) = 1 and f(mn) = f(m)f(n) whenever gcd(m, n) = 1, and completely multiplicative if this holds for all m, n. A multiplicative function is determined by its values on prime powers. Examples: the constant function 1, the identity id(n) = n, the powers idₖ(n) = nᵏ, the divisor functions τ and σ, Euler's φ, and the Möbius function
μ(n) = (−1)ʳ if n is a product of r distinct primes, μ(n) = 0 if p² | n for some p, μ(1) = 1.
The Dirichlet convolution of f and g is defined by:
(f ∗ g)(n) = ∑d|n f(d) g(n/d) = ∑ab=n f(a) g(b).
Theorem 9.1. Under pointwise addition and Dirichlet convolution, the arithmetic functions form a commutative ring with identity ε, where ε(1) = 1 and ε(n) = 0 for n > 1. A function f is invertible if and only if f(1) ≠ 0. If f and g are multiplicative, so is f ∗ g, and so is the inverse of a multiplicative function.
Proof. Commutativity and associativity follow from the symmetric descriptions ∑ab=n and ∑abc=n. The inverse is built recursively: g(1) = 1/f(1) and, for n > 1, g(n) = −(1/f(1)) ∑d|n, d<n f(n/d) g(d). For multiplicativity, if gcd(m, n) = 1 then every divisor of mn is uniquely d = d₁d₂ with d₁ | m, d₂ | n, gcd(d₁, d₂) = 1, and the sum factorises. For inverses, let h be the multiplicative function that agrees with f⁻¹ on prime powers; then f ∗ h is multiplicative and equals ε on prime powers, so f ∗ h = ε and h = f⁻¹. ∎
Möbius inversion
Theorem 9.2. μ ∗ 1 = ε; that is, ∑d|n μ(d) = 1 if n = 1 and 0 if n > 1.
Proof. Both sides are multiplicative, so it suffices to check n = pᵉ with e ≥ 1: ∑d|pᵉ μ(d) = μ(1) + μ(p) = 1 − 1 = 0. ∎
Corollary 9.3 (Möbius inversion formula). g = f ∗ 1 if and only if f = g ∗ μ.
Proof. If g = f ∗ 1, convolve both sides with μ: g ∗ μ = f ∗ (1 ∗ μ) = f ∗ ε = f by Theorem 9.2. Conversely, if f = g ∗ μ, convolve with 1: f ∗ 1 = g ∗ (μ ∗ 1) = g. ∎
Examples. Gauss's identity ∑d|n φ(d) = n (Lemma 6.1) reads φ ∗ 1 = id, so φ = μ ∗ id:
φ(n) = ∑d|n μ(d) n/d = n ∏ₚ|ₙ (1 − 1/p),
a second proof of the product formula. Similarly τ = 1 ∗ 1 and σ = id ∗ 1. One gets identities by pure algebra: φ ∗ τ = φ ∗ 1 ∗ 1 = id ∗ 1 = σ, that is ∑d|n φ(d) τ(n/d) = σ(n). Check for n = 6: φ(1)τ(6) + φ(2)τ(3) + φ(3)τ(2) + φ(6)τ(1) = 4 + 2 + 4 + 2 = 12 = σ(6).
Irreducible polynomials over finite fields
Every element of 𝔽qⁿ is a root of xqⁿ − x, and this polynomial is the product of all monic irreducible polynomials over 𝔽q whose degree divides n. Comparing degrees, if Nₖ is the number of monic irreducibles of degree k,
qⁿ = ∑d|n d·Nd, hence Nₙ = (1/n) ∑d|n μ(d) qn/d.
For q = 2 and n = 4: N₄ = (16 − 4)/4 = 3, namely x⁴ + x + 1, x⁴ + x³ + 1 and x⁴ + x³ + x² + x + 1. Since nNₙ ≥ qⁿ − (q + q² + ⋯ + q⌊n/2⌋) > qⁿ − 2qn/2, which is positive for n ≥ 3 (and N₁ = q, N₂ = (q² − q)/2 are positive directly), irreducible polynomials of every degree exist, so finite fields of every prime-power order exist; and Nₙ ~ qⁿ/n, a function-field analogue of the prime number theorem.
Dirichlet series
To an arithmetic function attach its Dirichlet series F(s) = ∑ f(n)n⁻ˢ. Formally, and absolutely where the series converge absolutely, the series of f ∗ g is F(s)G(s). For multiplicative f there is an Euler product F(s) = ∏ₚ (1 + f(p)p⁻ˢ + f(p²)p⁻²ˢ + ⋯). Thus
ζ(s) = ∑ n⁻ˢ = ∏ₚ (1 − p⁻ˢ)⁻¹, 1/ζ(s) = ∑ μ(n) n⁻ˢ, ζ(s)² = ∑ τ(n) n⁻ˢ,
for Re s > 1. Since ζ(2) = π²/6, the density of squarefree integers is ∑ μ(d)/d² = 6/π² (Problem 51), which is also the probability that two random integers are coprime.
Average orders
Arithmetic functions fluctuate wildly, but their averages are regular. Dirichlet showed, counting lattice points under the hyperbola xy = n,
∑ₙ≤ₓ τ(n) = x log x + (2γ − 1)x + O(√x),
where γ ≈ 0.5772 is Euler's constant; improving the error term (Dirichlet's divisor problem) is a famous open problem, the conjectured exponent being 1/4 + ε. Similarly ∑ₙ≤ₓ φ(n) = (3/π²)x² + O(x log x) and ∑ₙ≤ₓ σ(n) = (π²/12)x² + O(x log x).
Perfect numbers
A number n is perfect if σ(n) = 2n. Euclid (Elements IX.36) showed that if 2ᵖ − 1 is prime then 2ᵖ⁻¹(2ᵖ − 1) is perfect: σ is multiplicative, so σ = (2ᵖ − 1) · 2ᵖ. Euler proved the converse for even perfect numbers (Problem 56). Whether an odd perfect number exists is one of the oldest open problems in mathematics; any such number exceeds 10¹⁵⁰⁰ (Ochem and Rao, 2012). As of 2024, 52 Mersenne primes are known, the largest being 2¹³⁶²⁷⁹⁸⁴¹ − 1, found in October 2024.
Exercise
- (a)Compute ∑d|60 μ(d) d.
- (b)Find the number of monic irreducible polynomials of degree 2 and of degree 3 over 𝔽₃.
- (c)Prove that ∑d|n μ(d) τ(n/d) = 1 for every n.
Show solution
Answers: (a) The function n ↦ ∑d|n μ(d)d is multiplicative with value 1 − p at pᵉ, so the sum is (1 − 2)(1 − 3)(1 − 5) = (−1)(−2)(−4) = −8. (b) N₂ = (9 − 3)/2 = 3 and N₃ = (27 − 3)/3 = 8. (c) μ ∗ τ = μ ∗ 1 ∗ 1 = ε ∗ 1 = 1.