Multiplicative Functions
Statement
An arithmetic function is multiplicative if:
- , and
- whenever .
It is completely multiplicative if condition 2 holds for all (not just coprime pairs).
A multiplicative function is completely determined by its values on prime powers, since every positive integer factors uniquely as and then
Visualization
Key examples and their values:
Function f(1) f(p) f(p²) f(mn) coprime rule
----------------+-----+---------+-----------+--------------------
φ (totient) 1 p-1 p(p-1) φ(mn)=φ(m)φ(n)
μ (Möbius) 1 -1 0 μ(mn)=μ(m)μ(n) if sqfree
σ₁ (sum divs) 1 p+1 p²+p+1 σ₁(mn)=σ₁(m)σ₁(n)
τ (# divisors) 1 2 3 τ(mn)=τ(m)τ(n)
λ (Liouville) 1 -1 1 λ(mn)=λ(m)λ(n) (completely)
id (identity) 1 p p² id(mn)=id(m)id(n) (completely)
ε (unit) 1 0 0 ε(mn)=ε(m)ε(n)
Table of values for small :
n φ(n) μ(n) τ(n) σ₁(n)
----+------+------+------+------
1 1 1 1 1
2 1 -1 2 3
3 2 -1 2 4
4 2 0 3 7
5 4 -1 2 6
6 2 1 4 12 ← 6=2·3, coprime: φ(6)=φ(2)φ(3)=1·2=2 ✓
8 4 0 4 15
12 4 0 6 28 ← 12=4·3: φ(12)=φ(4)φ(3)=2·2=4 ✓
30 8 -1 8 72 ← 30=2·3·5: τ(30)=2·2·2=8 ✓
Proof Sketch
-
Values at prime powers: By the multiplicative property and the Fundamental Theorem of ArithmeticFundamental Theorem of ArithmeticEvery integer greater than 1 has a unique prime factorizationRead more →, it suffices to know for all primes and .
-
Dirichlet convolution: If and are multiplicative, so is their convolution . This is proved by grouping divisors of (with ) as pairs with and .
-
Totient formula: From (a completely multiplicative identity) and Möbius InversionMöbius InversionIf g equals the Dirichlet convolution of f with the constant 1, then f recovers via the Möbius functionRead more →, one recovers .
-
Dirichlet series: A multiplicative has an Euler product , a key tool in analytic number theory.
Connections
Multiplicative functions form the backbone of elementary number theory. Möbius InversionMöbius InversionIf g equals the Dirichlet convolution of f with the constant 1, then f recovers via the Möbius functionRead more → is entirely about the convolution algebra of multiplicative functions. Euler's Totient is the canonical example. The Möbius functionMöbius InversionIf g equals the Dirichlet convolution of f with the constant 1, then f recovers via the Möbius functionRead more → is the convolution inverse of the constant- function. The structure also appears in the proof of Quadratic ReciprocityQuadratic ReciprocityRelationship between solvability of quadratic congruences for two odd primesRead more → via Gauss sums (which are "twisted" multiplicative functions), and in the analysis of the Euclidean AlgorithmEuclidean AlgorithmThe oldest surviving algorithm, computing the greatest common divisor via iterated remaindersRead more → through -related identities. Dirichlet characters (used in proving primes in arithmetic progressions) are completely multiplicative functions on .
Lean4 Proof
/-- Euler's totient is multiplicative: φ(m·n) = φ(m)·φ(n) when gcd(m,n) = 1.
Mathlib proves this as `Nat.totient_mul`. -/
theorem totient_multiplicative {m n : ℕ} (h : Nat.Coprime m n) :
(m * n).totient = m.totient * n.totient :=
Nat.totient_mul h
/-- The number-of-divisors function τ is multiplicative.
In Mathlib's `ArithmeticFunction` framework, `ArithmeticFunction.sigma 0`
counts divisors (since σ₀(n) = #{d : d ∣ n}), and is `IsMultiplicative`. -/
theorem sigma_zero_multiplicative :
(ArithmeticFunction.sigma 0).IsMultiplicative :=
ArithmeticFunction.isMultiplicative_sigma 0Referenced by
- Prime Counting Function π(n)Number Theory
- Sum of Two SquaresNumber Theory
- Möbius InversionNumber Theory
- Lucas's TheoremNumber Theory
- Divisor Function σ(n)Number Theory