ArticleslgStudy

mathematics

Dirichlet convolution

Dirichlet convolution is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Dirichlet convolution rather than just read about it. In short: 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.

Dirichlet convolution — main illustration
Dirichlet convolution — illustration

Key takeaways

  • Dirichlet convolution belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Dirichlet convolution to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Dirichlet convolution from memory before moving on to harder problems.

Reference excerpt

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.

Illustrations

Dirichlet convolution: Johann Peter Gustav Lejeune Dirichlet
Johann Peter Gustav Lejeune Dirichlet

Worked examples

Example 1 — a first encounter with Dirichlet convolution

Start with the simplest possible case. Write down what Dirichlet convolution claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Dirichlet convolution before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Dirichlet convolution ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Dirichlet convolution

In research
Dirichlet convolution appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Dirichlet convolution in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Dirichlet convolution is common in secondary-school and first-year university syllabi. It links to neighbouring topics Arithmetic functions, Bilinear maps, so understanding it makes those chapters shorter.
In everyday life
Look for Dirichlet convolution outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Dirichlet convolution” →

How to study Dirichlet convolution in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Dirichlet convolution means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Dirichlet convolution out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Dirichlet convolution in simple terms?

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.

Why does Dirichlet convolution matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Dirichlet convolution?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Dirichlet convolution.

Tags

  • Arithmetic functions
  • Bilinear maps

Keep exploring