Arithmetic functions and Dirichlet convolution
Organize divisor identities with convolution, multiplicativity, and Möbius inversion.
On this page
The question for today
What you’ll understand
- Distinguish pointwise multiplication from divisor convolution.
- Derive Möbius inversion from the convolution identity.
- Recover totients and prime-power weights from divisor sums.
Analytic number theory begins with functions on positive integers, long before a complex contour appears. A divisor count, a coprimality count, and a weight supported on prime powers record different aspects of the same factorization. Dirichlet convolution provides a common language for moving between these records. Its bookkeeping matters: multiplying two values at one integer is different from distributing that integer between two factors.
The algebra of divisors
An arithmetic function is any map from the positive integers to the complex numbers. Define its Dirichlet convolution with another function by summing over positive divisors. The divisor paired with a chosen divisor is the complementary factor, so exchanging the two factors proves commutativity. Summing over ordered triples of factors proves associativity. Every sum here is finite; neither convergence estimates nor an ordering of infinitely many terms is needed for these algebraic identities.
Write for the constant function, and , for larger integers. The convolution identity is epsilon, not the constant function: only the divisor with complementary factor one survives. A function has a convolution inverse precisely when its value at one is nonzero. Solve first for the inverse value at one, then recursively isolate the inverse value at each larger integer. This construction also proves uniqueness.
Multiplicativity and cancellation
A multiplicative function satisfies and when the two arguments are coprime. Completely multiplicative functions satisfy the latter identity without that restriction. These are different conditions: the divisor count is multiplicative, but its values at a prime and its square are two and three, rather than two and four. Unique factorization reduces a multiplicative function to its values at prime powers, where repeated occurrences of the same prime must still be handled explicitly.
The Möbius function is zero on integers divisible by a prime square and equals on a product of distinct primes. Its divisor sum is one at the integer one and zero elsewhere: for an integer with distinct prime factors, the sum expands the product of one minus one over those factors. Consequently it is the convolution inverse of the constant function. If a divisor sum obscures an unknown arithmetic function, convolving with Möbius recovers that function without approximation.
Totients and prime powers
Let . Sorting the integers from one through a fixed integer by their greatest common divisor with it gives . Möbius inversion therefore expresses the totient as . Factoring this finite sum prime by prime gives the familiar product of the integer with one minus the reciprocal of each distinct prime factor. The formula counts units, while convolution explains why its factors appear and why prime powers require only one factor each.
Another useful function is , equal to the natural logarithm of a prime when the integer is a positive power of that prime, and zero otherwise, including at one. Summing these weights over divisors counts each occurrence of each prime in the factorization, so . Thus . This isolates prime-power information from a smooth-looking logarithm and prepares the logarithmic derivative of an Euler product. It does not assert that the weight is supported only on primes.
Work it through
Recover the units modulo twelve
Compute the totient of twelve by convolution, then verify its divisor-sum identity independently.
List the divisors . Their Möbius values are ; divisors containing a square contribute nothing to the convolution.
Evaluate . The remaining four residue classes represented between one and twelve are , agreeing with the direct coprimality count.
Compute the totients on those six divisors: . Their sum is twelve. This checks a different identity from the original convolution computation and includes the sometimes forgotten convention .
There are four units modulo twelve, and summing the totients over all divisors reconstructs twelve.
The living notebook
Explore the model
Interactive lab · modular
Coprimality through additive periods
Pause and Reset, then set modulus 12 and additive step 5. Predict period 12 and inspect residues with Step. For a fresh comparison Pause/Reset, set both modulus 12 and step 4, and predict period 3. Changing a control preserves the clock; Reset restores both defaults and time zero.
- Residue r0
- 0
- Orbit period · m/gcd(m,a)
- 12
- Distinct residues visited
- 1 of 12
Addition modulo m starts at zero: rₙ = na mod m. Playback advances two additions per second. The orbit has period m/gcd(m,a), including period one for a = 0. This is not a cryptographic security test or a primality algorithm. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forA step is a unit precisely when its additive orbit visits every residue. This instrument checks coprimality and periods; it does not calculate Dirichlet convolution.
Pause & reason
Check your understanding
Your turn
Try it yourself
Compute and compare it with the pointwise square . Explain the discrepancy rather than just giving two numbers.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Write one term for each positive divisor of six; do not replace the divisor sum by a square.
Compare with the solution
The four divisors are , and the complementary pairs give , , , and . Every product is one, so the convolution value is four. The value has pointwise square one. The difference is structural: convolution counts four ordered factor assignments, whereas pointwise squaring never changes the argument or sums over divisors.
Keep the idea
Take it with you
- Epsilon is the convolution identity; the constant-one function performs a divisor sum.
- Multiplicativity only separates coprime factors unless explicitly strengthened.
- Möbius inversion exposes totients and von Mangoldt weights from simpler sums.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.