In mathematics, Dirichlet convolution (or divisor convolution) is a binary operation defined for arithmetic functions; it is important in number theory. It was developed by Peter Gustav Lejeune Dirichlet.
Definition If f,g:ℕ→ℂ are two arithmetic functions, their Dirichlet convolution f∗g is a new arithmetic function defined by:
(f∗g)(n) = ∑d∣nf(d)g(nd) = ∑ab=nf(a)g(b), where the sum extends over all positive divisors d of n, or equivalently over all distinct pairs (a,b) of positive integers whose product is n. This product occurs naturally in the study of Dirichlet series such as the Riemann zeta function. It describes the multiplication of two Dirichlet series in terms of their coefficients:
(∑n≥1f(n)ns)(∑n≥1g(n)ns) = (∑n≥1(f∗g)(n)ns).
Properties The set of arithmetic functions forms a commutative ring, the Dirichlet ring, with addition given by pointwise addition and multiplication by Dirichlet convolution. The multiplicative identity is the unit function ε defined by ε(n)=1 if n=1 and 0 otherwise. The units (invertible elements) of this ring are the arithmetic functions f with f(1)≠0. Since the non-units are closed under addition, this ring is local. Specifically, Dirichlet convolution is associative,
(f∗g)∗h=f∗(g∗h), distributive over addition
f∗(g+h)=f∗g+f∗h, commutative,
f∗g=g∗f, and has an identity element,
f∗ε = ε∗f=f. Furthermore, for each function f having f(1)≠0, there exists another arithmetic function f−1 satisfying f∗f−1=ε, called the Dirichlet inverse of f. The Dirichlet convolution of two multiplicative functions is again multiplicative, and every not constantly zero multiplicative function has a Dirichlet inverse which is also multiplicative. In other words, multiplicative functions form a subgroup of the group of invertible elements of the Dirichlet ring. Beware however that the sum of two multiplicative functions is not multiplicative (since (f+g)(1)=f(1)+g(1)=2≠1), so the subset of multiplicative functions is not a subring of the Dirichlet ring. The article on multiplicative functions lists several convolution relations among important multiplicative functions. Another operation on arithmetic functions is pointwise multiplication: fg is defined by (fg)(n)=f(n)g(n). Given a completely multiplicative function h, pointwise multiplication by h distributes over Dirichlet convolution: (f∗g)h=(fh)∗(gh). The convolution of two completely multiplicative functions is multiplicative, but not necessarily completely multiplicative.
Properties and examples In these formulas, we use the following arithmetical functions:
ε is the multiplicative identity: ε(1)=1, otherwise 0 (ε(n)=⌊1n⌋). 1 is the constant function with value 1: 1(n)=1 for all n. Keep in mind that 1 is not the identity. (Some authors denote this as ζ because the associated Dirichlet series is the Riemann zeta function.) 1C for C⊂ℕ is a set indicator function: 1C(n)=1 iff n∈C, otherwise 0. Id is the identity function with value n: Id(n)=n. Idk is the kth power function: Idk(n)=nk. The following relations hold:
1∗μ=ε, the Dirichlet inverse of the constant function 1 is the Möbius function (see proof). Hence: g=f∗1 if and only if f=g∗μ, the Möbius inversion formula. σk=Idk∗1, the kth-power-of-divisors sum function σk. σ=Id∗1, the sum-of-divisors function σ = σ1. τ=1∗1 , the number-of-divisors function τ(n) = σ0. Idk=σk∗μ, by Möbius inversion of the formulas for σk, σ, and τ. Id=σ∗μ 1=τ∗μ ϕ∗1=Id , proved under Euler's totient function. ϕ=Id∗μ , by Möbius inversion. σ=ϕ∗τ , from convolving 1 on both sides of ϕ∗1=Id. λ∗|μ|=ε where λ is Liouville's function. Id∗ϕ=P, where P is Pillai's arithmetical function, also known as the gcd-sum function. λ∗1=1Sq where Sq = {1, 4, 9, ...} is the set of squares. Idk∗(Idkμ)=ε τ3∗1=(τ∗1)2 Jk∗1=Idk, Jordan's totient function. (IdsJr)∗Js=Js+r Λ∗1=log, where Λ is von Mangoldt's function. |μ|∗1=2ω, where ω(n) is the prime omega function counting distinct prime factors of n. Ω∗μ=1𝒫, the characteristic function of the prime powers. ω∗μ=1ℙ where 1ℙ(n)↦{0,1} is the characteristic function of the primes. This last identity shows that the prime-counting function is given by the summatory function
π(x)=∑n≤x(ω∗μ)(n)=∑d=1xω(d)M(⌊xd⌋) where M(x) is the Mertens function and ω is the distinct prime factor counting function from above. This expansion follows from the identity for the sums over Dirichlet convolutions given on the divisor sum identities page (a standard trick for these sums).
Dirichlet inverse
Examples Given an arithmetic function f its Dirichlet inverse g=f−1 may be calculated recursively: the value of g(n) is in terms of g(m) for m<n. For n=1:
(f∗g)(1)=f(1)g(1)=ε(1)=1, so g(1)=1/f(1). This implies that f does not have a Dirichlet inverse if f(1)=0. For n=2:
(f∗g)(2)=f(1)g(2)+f(2)g(1)=ε(2)=0, g(2)=−(f(2)g(1))/f(1), For n=3:
(f∗g)(3)=f(1)g(3)+f(3)g(1)=ε(3)=0, g(3)=−(f(3)g(1))/f(1), For n=4:
(f∗g)(4)=f(1)g(4)+f(2)g(2)+f(4)g(1)=ε(4)=0, g(4)=−(f(4)g(1)+f(2)g(2))/f(1), and in general for n>1,
g(n) = −1f(1)∑d∣nd<nf(nd)g(d).
Properties The following properties of the Dirichlet inverse hold:
The function f has a Dirichlet inverse if and only if f(1) ≠ 0. The Dirichlet inverse of a multiplicative function is again multiplicative. The Dirichlet inverse of a Dirichlet convolution is the convolution of the inverses of each function: (f∗g)−1=f−1∗g−1. A multiplicative function f is completely multiplicative if and only if f−1(n)=μ(n)f(n). If f is completely multiplicative then (f⋅g)−1=f⋅g−1 whenever g(1)≠0 and where ⋅ denotes pointwise multiplication of functions.
Other formulas
An exact, non-recursive formula for the Dirichlet inverse of any arithmetic function f is given in Divisor sum identities. A more partition theoretic expression for the Dirichlet inverse of f is given by
f−1(n)=∑k=1Ω(n){∑λ1+2λ2+⋯+kλk=nλ1,λ2,…,λk|n(λ1+λ2+⋯+λk)!1!2!⋯k!(−1)kf(λ1)f(λ2)2⋯f(λk)k}. The following formula provides a compact way of expressing the Dirichlet inverse of an invertible arithmetic function f : f−1=∑k=0+∞(f(1)ε−f)∗kf(1)k+1 where the expression (f(1)ε−f)∗k stands for the arithmetic function f(1)ε−f convoluted with itself k times. Notice that, for a fixed positive integer n, if k>Ω(n) then (f(1)ε−f)∗k(n)=0 , this is because f(1)ε(1)−f(1)=0 and every way of expressing n as a product of k positive integers must include a 1, so the series on the right hand side converges for every fixed positive integer n.
Dirichlet series If f is an arithmetic function, the Dirichlet series generating function is defined by
… excerpt ends here. Continue reading the full article.

