The Ring of Arithmetic Functions
Take two functions on the positive integers, and . Ask: what is the "right" way to multiply them? Ordinary pointwise multiplication turns out to be arithmetically shallow. It does not interact well with the multiplicative structure of itself. There is a different multiplication, Dirichlet Convolution. It is defined by summing over divisors of . This operation quietly governs identities like . It also governs the relationship between , , and the Möbius function . The key structural discovery is due in spirit to Dirichlet. It was made fully rigorous in the twentieth century. Arithmetic functions under addition and convolution form a genuine algebraic ring — in fact an integral domain. This is not a cosmetic observation. Once we know we are working inside a ring, we inherit a vast amount of machinery for free. This includes an identity element, invertibility criteria, and uniqueness of inverses. It also gives a clean framework in which formulas like Möbius inversion become instances of "multiply both sides by the inverse of ." They are not mysterious combinatorial tricks. The big picture is that number theory constantly produces functions built from divisor sums. Dirichlet convolution is exactly the operation under which these sums compose. Recognizing the ring structure explains why so many classical identities have the same shape. It also isolates precisely which functions are invertible (those with ). This fact will be the engine behind Möbius inversion. This article builds the ring from scratch. We define it rigorously, and prove it is a commutative ring with identity. We characterize its units, and show it has no zero divisors. Along the way we verify every claim with explicit computations. So the abstract statement "arithmetic functions form a ring" is backed by concrete, checkable arithmetic.
- Arithmetic functions are maps ; pointwise addition is the obvious group operation.
- Dirichlet Convolution is the multiplication that respects divisor structure.
- The set of arithmetic functions with is a commutative ring with identity , where , for .
- A function is a unit (has a convolution inverse) iff ; the inverse is computed by a recursive formula.
- The ring has no zero divisors: forces or , so it is an integral domain.
- The Mobius Function is the convolution inverse of the constant function , which is the seed for Möbius inversion.
- Key idea: Divisor-sum identities in number theory are ring computations in disguise, and this ring's units, zero-divisor-freeness, and identity element are exactly what make inversion techniques like Möbius inversion work.
An arithmetic function is a function . Let denote the set of all arithmetic functions. Define two binary operations on :
Addition. For ,
Dirichlet convolution. For ,
where the sum runs over all positive divisors of . Define two special elements of :
- The zero function , with for all .
- The convolution identity , defined by
The claim of this article is that is a commutative ring with additive identity and multiplicative identity , and moreover that it is an integral domain whose units are precisely the with .
Intuition
Think of an arithmetic function as an infinite table of numbers, one entry for each positive integer. Addition is entrywise, exactly like adding two vectors or two sequences: nothing about the multiplicative structure of the index is used. But Dirichlet convolution is different in a crucial way — to compute , you must know the factorization structure of , because you sum over pairs with . This is why convolution "sees" primes and divisors while pointwise multiplication does not. A good mental picture is a divisor lattice. For , the divisors are , and pairs each divisor with its complementary divisor : . The sum walks across this lattice symmetrically. This is exactly why convolution is commutative — swapping and just relabels which factor in each pair is "'s divisor" versus "'s divisor," and the same six pairs get hit either way. The identity element works like a Kronecker delta sitting at : convolving with contributes only the term (giving nothing else, since every other term has unless ). So silently "does nothing," just as does nothing under ordinary multiplication.
The central theorem
Let be the set of arithmetic functions , with addition and Dirichlet convolution as defined above. Then: 1. is an abelian group with identity . 2. is commutative and associative on , and distributes over . 3. is a multiplicative identity for : for all . 4. Consequently, is a commutative ring with unity. 5. has no zero divisors: if and , then or . Hence is an integral domain. 6. is a unit of the ring (i.e. has a multiplicative inverse under ) if and only if . When , the inverse is the unique arithmetic function satisfying
We prove each part in turn. Throughout, denote positive integers, and all sums over "" run over the positive divisors of .
Part 1: is an abelian group. This is immediate since as a set, and addition is defined coordinatewise. Coordinatewise addition of complex numbers is associative and commutative because addition in is. The function is the additive identity since for every . The additive inverse of is , defined by , since . This establishes as an abelian group.
Part 2: is commutative, associative, and distributes over . Commutativity. Fix and . As ranges over all divisors of , so does , and the map is a bijection from the divisor set of to itself (it is its own inverse). Hence
where the middle equality is the substitution applied to the index of summation (a relabeling of a finite sum, valid since the map is a bijection of the index set to itself). Since was arbitrary, . Associativity. Fix and . We show both and evaluated at equal the triple sum
where the sum is over all ordered triples of positive integers with product (there are finitely many, since each of divides ). Compute directly:
For fixed , as ranges over divisors of , set , so and range exactly over the triples with and this particular . Hence the double sum over with , equals the sum over all triples with . Thus . By an entirely symmetric computation,
using the same reasoning with roles shifted. Since both equal , we get . Distributivity. For and ,
using linearity of finite sums and distributivity in . Hence ; by commutativity of , also .
Part 3: is the multiplicative identity. Fix and . Then
The term vanishes unless , i.e. unless ; and when , . So the sum collapses to the single term :
Since was arbitrary, . By commutativity (Part 2), as well.
Part 4: is a commutative ring with unity. By Part 1, is an abelian group. By Part 2, is associative, commutative, and distributes over (both left and right, since is commutative and left-distributivity was shown). By Part 3, is a two-sided multiplicative identity. These are exactly the ring axioms, so is a commutative ring with unity .
Part 5: has no zero divisors. Suppose with and ; we show . Since , the set is nonempty; let be its least element. Likewise let be the least positive integer with . Consider . We compute
We claim every term with vanishes. Indeed, take any divisor of with .
- If : since is a positive integer less than , minimality of gives , so the term .
- If : since , write ; because and , we have . (Indeed .) Since is a positive integer strictly less than , minimality of gives , so again .
Thus every term with vanishes, and only the term (for which ) can be nonzero:
By choice of , both and , and since has no zero divisors, . Hence , so . Contrapositively, if then or . Combined with Part 4 and the fact that (since , so is not the zero ring), is an integral domain.
Part 6: characterization of units. () Suppose is a unit, so there exists with . Evaluating at : the only divisor of is , so
Hence in , which forces (and also ). () Suppose . We construct satisfying , by explicit recursive definition, and simultaneously prove existence, the stated formula, and (separately) uniqueness. Existence and the formula. Define . For , suppose has already been defined for all divisors of (this is well-founded recursion on , since all such are smaller positive integers). Define
This is a valid recursive definition of for every : the base case has empty divisor set (consistent with treating as the separately-specified base case), and for the right side only references for , which are already defined. By strong induction on , is well-defined for every , giving . We now verify . For : . For : split the divisor sum by isolating (equivalently, the term where the "other factor" is ):
By the defining recursion, . Substituting,
Hence , so (by commutativity, Part 2, and Part 3) and is a genuine two-sided inverse. Thus is a unit whenever , proving the converse direction and simultaneously exhibiting the formula. Uniqueness. Suppose both satisfy . Using associativity and commutativity (Part 2) and the identity property of (Part 3):
So the inverse is unique whenever it exists, justifying the notation . This completes the proof of all six parts.
∎Worked examples
Example 1: Inverting (i.e. computing ) at . Let . Since , Part 6 guarantees an inverse exists and is computed recursively:
We build up on the divisors of : . : divisors of are . Recursion: . : divisors of : . . : divisors of : . . : divisors of : . . : divisors of : . We need for each:
Plug in numbers: ; ; ; ; . So:
Check. In fact one can recognize pointwise — i.e. — because (Euler's identity ) is closely related to known convolution facts, but let us verify directly from our computed values: , , , (since is not squarefree), (since , ), (since is not squarefree). Every value matches, confirming and giving a fully independent numerical check of our recursive computation via The Mobius Function.
Example 2: Verifying associativity numerically for (number of divisors), , , at . We check directly, to see the associativity proof "in action" rather than trust it abstractly. Data. . . . Step A: compute for .
(This matches the classical identity ... actually let's not assert unproven identities; we simply use these as raw numbers.) Step B: compute .
Step C: compute for .
Step D: compute .
Both computations give , confirming , exactly as the associativity theorem (Part 2) predicts — and this matches the triple-sum formula , which the reader may check directly enumerates the eight ordered triples with (namely permutations arising from , ten triples in total since has three distinct prime-power patterns) and sums to .
The unit characterization (Part 6) requires . Drop this hypothesis and consider defined by
Here . We show no satisfies , so is not a unit, exactly as Part 6 predicts. Suppose toward contradiction satisfies . Evaluate at : the only divisor of is , so
But . So , contradicting . Hence has no convolution inverse. This shows the hypothesis in Part 6 is not a technical artifact of the proof — it is a genuine obstruction: whenever , evaluating at always gives , which can never equal , no matter how is chosen. This also illustrates why the ring , while an integral domain, is not a field: it has plenty of nonzero non-units, e.g. this very .
Scope, edge cases & common traps
| Situation | What holds | What fails / must be checked |
|---|---|---|
| is a unit; unique inverse exists via the recursion | — | |
| , | is a nonzero non-unit (zero divisor status still fails: has none) | has no convolution inverse, even though |
| is the additive identity | trivially fails to be a unit (as ) | |
| Pointwise product | Also forms a commutative ring under | This is a different ring from ; it is not the one appearing in Möbius-type identities |
| Domain of | Must be all of | Restricting to squarefree , or to a finite set, breaks associativity proofs relying on all divisors existing |
A common mistake is to assume is invertible under Dirichlet convolution exactly when for all . This is false in both directions relative to the correct criterion . For instance satisfies for all and indeed , so it is a unit — consistent, but for the wrong reason if one thinks "nonvanishing everywhere" is what matters. The real counterexample is the function from the counterexample block above: for (never zero for !) and , which is not invertible, precisely because the single value vanishes. The invertibility criterion is a statement purely about , not about the behavior of on the rest of its domain.
The mathematician behind it
Dirichlet is best known for introducing analytic methods — L-functions and Dirichlet series — into the study of primes in arithmetic progressions, and for the pigeonhole principle that bears his name. The convolution now named after him arose naturally from his study of Dirichlet series: if and are two such series, their product formally expands to the Dirichlet series of . This analytic origin is why the convolution respects divisor structure — it is exactly the multiplication rule that makes formal power-series-like manipulation of consistent.
Where this lives today
The ring is the algebraic backbone underlying Möbius inversion: since (the constant function ) satisfies , it is a unit, and its inverse is exactly The Mobius Function , satisfying . This single ring fact — that is the convolution inverse of — is the entire content of Möbius inversion, foreshadowing how identities like can be "solved" for as . Beyond pure number theory, this convolution structure recurs in analytic number theory via Dirichlet series, where corresponds to formal multiplication of series ; the Riemann zeta function corresponds to , and is exactly the statement translated into analytic language. In combinatorics, the same convolution appears as the incidence algebra of the divisor poset, generalized by Rota to arbitrary locally finite posets — the arithmetic-function ring is the special case of the divisibility poset on . In cryptography and computational number theory, fast computation of multiplicative functions (Euler's totient, sum-of-divisors) via convolution identities underlies efficient algorithms for RSA-adjacent computations and sieve methods. In algebra, the ring of arithmetic functions is a standard example of an integral domain that is not a field, useful for illustrating unit groups and zero-divisor-free rings in a concrete, computable setting, connecting to the broader theory of Dirichlet Convolution as an instance of convolution algebras.
Ask the tutor: How does the identity proved here directly yield the Möbius inversion formula?
Is the same ring as functions under pointwise multiplication?
No. Both and are commutative rings on the same underlying set , but they are different rings with different unit groups and different identities. Under pointwise multiplication the identity is the constant function , and units are exactly the nowhere-vanishing functions. Under Dirichlet convolution the identity is (supported only at ), and units are those with , a much weaker condition. The convolution ring is the one relevant to divisor-sum identities and Möbius inversion; the pointwise ring rarely appears in classical number-theoretic identities.
Why does convolution require summing over all divisor pairs instead of some other pairing?
Because Dirichlet convolution is designed to mirror multiplication of Dirichlet series . When you multiply two such series formally, the coefficient of in the product is exactly , since a term from the first series times from the second contributes to precisely when . This is the deep reason the divisor-sum structure appears: it is the unique bilinear operation compatible with multiplying formal Dirichlet series coefficientwise in the exponent.
Does the ring structure require and to be multiplicative functions?
No, not at all. The ring is defined on all arithmetic functions, with no multiplicativity assumption whatsoever. Multiplicative functions (those with and for coprime ) form an important subset that is closed under convolution — the convolution of two multiplicative functions is again multiplicative — but this is a separate, additional fact, not a requirement for the ring axioms to hold. The ring structure itself is purely about the operations and on the full set .
How is the inverse formula in Part 6 actually used in practice?
It gives an algorithm: to invert with , first set , then compute for increasing using only previously computed smaller values, exactly as in Worked Example 1. This recursive structure is also how one proves specific inverse identities, such as showing is the inverse of : one can verify directly (which is a standard fact about The Mobius Function), and uniqueness of inverses (proved in Part 6) then guarantees is the inverse, with no other candidate possible.
Why is associativity of Dirichlet convolution not completely obvious?
Because unwinding and directly gives nested sums indexed differently — one groups divisors of inside divisors of , the other groups divisors of inside divisors of — and it is not immediately visible that these nested sums range over the same index set. The proof resolves this by showing both nested sums are reindexations of the same triple sum , which requires an explicit bijection argument between the two ways of iterating over divisor chains, exactly as carried out in the proof of Part 2.
What role does play in the ring being nontrivial?
If were equal to , the ring would be the trivial "zero ring" , in which and every statement about units becomes vacuous or degenerate. We explicitly check , so in , ruling this out. This small check matters because the zero ring technically satisfies the ring axioms but is excluded from being called an integral domain by convention (integral domains are required to have ), so verifying is a genuine, necessary step in Part 5's conclusion.
Does every arithmetic function that's a unit under convolution also have an inverse under Dirichlet series /analytic continuation?
When the associated Dirichlet series converges and is nonzero at some point, the algebraic inverse constructed here corresponds to the Dirichlet series in regions of convergence, matching coefficients. However, this analytic correspondence requires convergence hypotheses (e.g. absolute convergence in some half-plane) that are entirely separate from the purely algebraic, always-valid construction in Part 6, which needs only and works with no reference to convergence at all.