Completely multiplicative function Created 2026-09-24 Updated 2026-10-20
An arithmetic function is a completely multiplicative function when and for every pair of positive integers . In particular for every prime number and every nonnegative exponent . Both the constant-one arithmetic function and the identity arithmetic function are completely multiplicative functions: and . The divisor function fails this stronger condition at .
Dirichlet convolution Created 2026-09-24 Updated 2026-10-13
The Dirichlet convolution of arithmetic functions is the arithmetic functionIn the first sum, runs over the positive integer divisors of ; the second uses ordered pairs of positive integers whose product is . Both sums are finite. Each pair contributes one weight from and one from , so Dirichlet convolution combines information attached to complementary factors. It turns a divisor sum into an operation on arithmetic functions. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Sections 2.3 and 2.4: Dirichlet convolution and examples
For the six ordered pairs are . The constant-one arithmetic function gives one per pair, while the identity arithmetic function weights the first factor by its size:Here is the divisor function and is the sum-of-divisors function. By comparison, the pointwise product of arithmetic functions gives and .
Six ordered pairs of positive integers with product 12 contribute to Dirichlet convolution: one per pair for the divisor function, or the first factor for the sum-of-divisors function
. Details. Commutativity follows by swapping the two entries of every ordered pair. Associativity follows by reindexing either grouping over the same ordered tuples of three positive integers:For example, counts ordered tuples of three positive integers with product . Distribute the two occurrences of the prime factor among three entries in ways, and the one occurrence of the prime factor in ways. These binomial coefficients are the stars and bars counts of exponent choices in the nonnegative integers; prime factorization therefore gives such tuples. Directly, the same Dirichlet convolution is .
The Identity for Dirichlet convolution is , and the Möbius function reverses a divisor sum because . This makes Dirichlet convolution useful both for counting factorizations and for recovering an arithmetic function from its divisor sum.
Divisor sum Created 2026-09-24 Updated 2026-10-14
The divisor sum of an arithmetic function assigns to each positive integer the sumOnly positive integer divisors are included, so . The weights can count the integer divisors, measure their sizes, or record other arithmetic information: the constant-one arithmetic function gives the divisor function, whereas the identity arithmetic function gives the sum-of-divisors function.
Equivalently, , where is Dirichlet convolution and is the constant-one arithmetic function. If is a multiplicative function, then is a multiplicative function by Multiplicativity of Dirichlet convolution. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 notes on floor and arithmetic functions, Proposition 2.4.2 and Theorem 2.6.1
Here is the mechanism. For positive coprime integers , every positive integer divisor of has a unique form with and ; moreover, are coprime integers. Thus a multiplicative function satisfiesAt a prime power, the divisor sum becomes . This turns a calculation over many integer divisors into short local calculations at prime powers.
Identity arithmetic function Created 2026-10-03 Updated 2026-10-14
The identity arithmetic function is on the positive integers, for example and . It is a completely multiplicative function and gives the sum-of-divisors function through under Dirichlet convolution. It is distinct from the Identity for Dirichlet convolution . The identity , where is Euler's totient function, is equivalent to .
Identity for Dirichlet convolution Created 2026-09-29 Updated 2026-10-14
The Identity for Dirichlet convolution is the arithmetic functionFor every arithmetic function , it satisfies . Indeed, in , only survives. For example,At the sole term is . This gives a useful way to check Dirichlet convolution calculations: inserting leaves every value unchanged. The three arithmetic functions , , and all take value at , but at the constant-one arithmetic function, the identity arithmetic function, and the Identity for Dirichlet convolution take values , , and , respectively. [ref]
The Möbius function is the inverse of the constant-one arithmetic function under Dirichlet convolution, meaning . The Möbius divisor-sum identity gives a short proof: for the nonzero terms expand , while at the sum is . At , the computation isThe zeros occur because and are divisible by the square of the prime number . Consequently, if is a divisor sum, then associativity gives : this is Möbius inversion.
Möbius inversion formula Created 2026-09-24 Updated 2026-10-14
Möbius inversion recovers an arithmetic function from its divisor sum. For arithmetic functions , the following statements are equivalent, with each equality required for every positive integer :Here ranges over positive integer divisors of and is the Möbius function. No multiplicativity assumption is needed, and both sums are finite. The right side can also be written by exchanging complementary integer divisors. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Theorem 2.5.1 and Proposition 2.5.2
The divisor sum bundles together with values at smaller integer divisors. Möbius inversion subtracts aggregates indexed by one distinct prime factor, adds those indexed by two, and continues with the alternating signs of inclusion-exclusion. A divisor containing a squared prime factor receives weight zero. The Möbius divisor-sum identity ensures that every unwanted contribution cancels exactly.
In Dirichlet convolution notation, and , where is the constant-one arithmetic function and is the Identity for Dirichlet convolution. Associativity and commutativity give the short proof:Convolving with proves the reverse implication. At , the formula reduces to because .
For a worked example, take , Euler's totient function. The totient divisor-sum identity says that , the identity arithmetic function:This identity comes from classifying the integers by their greatest common divisor with : the group with has members, since and are coprime integers. Summing the group sizes gives , as detailed under totient divisor-sum identity.
Now undo this aggregation with the Möbius function:The nonzero terms use ; vanish because they contain the square of the prime number . The four surviving integers coprime to are .
A divisor sum aggregates Euler's totient function values to 12, while Möbius inversion recovers the four integers coprime to 12
. Details. This example also reveals why Möbius inversion is useful: it turns an easy count of all objects into a count satisfying a coprimality restriction. Expanding over subsets of distinct prime factors givesThe product is inclusion-exclusion over multiples of the prime factors. For , it gives . More generally, whenever a counting problem produces a divisor sum, Möbius inversion lets that aggregate be reversed without solving a new system of equations.
Pointwise product of arithmetic functions 2026-10-13
The pointwise product of arithmetic functions multiplies two arithmetic functions at the same input: . Thus and , using the constant-one arithmetic function and the identity arithmetic function. These differ from the corresponding Dirichlet convolution values and , because Dirichlet convolution sums over every positive integer divisor.
Sum-of-divisors function Created 2026-10-03 Updated 2026-10-20
The sum-of-divisors function adds all positive integer divisors of a positive integer, including the number itself:It is the divisor sum of the identity arithmetic function , so under Dirichlet convolution. Both factors are multiplicative functions, hence so is the sum-of-divisors function. The notation distinguishes it from other weighted divisor sums. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 notes, Definition 2.1.2 and Proposition 2.2.2(e)
For a prime number and a nonnegative exponent , the positive integer divisors of the prime power are precisely . Their finite geometric series givesFor example, . For a prime factorization with distinct prime numbers and positive exponents , multiplicativity givesFor , this is an empty product, equal to . [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 notes, Theorem 2.1.8 with k equal to one
The distributive property makes the formula especially beautiful: choosing one term from each factor produces each positive integer divisor exactly once, by the fundamental theorem of arithmetic. For , the choices form a three-by-two grid with entries , where and . Adding its rows givesThe divisor function counts six cells; the sum-of-divisors function adds their six values. Once the prime factorization is known, the product formula avoids testing every candidate integer divisor. Shared prime factors require care: , so the sum-of-divisors function is not a completely multiplicative function.
The sum-of-divisors function for : each grid entry is a positive integer divisor, and the weighted total is
. Details. Subtracting the number itself gives the proper-divisor sum . Comparing with distinguishes perfect numbers, deficient numbers, and abundant numbers. For , ; for , . Both are perfect numbers. The calculation makes a deficient number, while makes an abundant number. These comparisons turn the sizes of integer divisors into a classification of positive integers. [ref]
The proper-divisor sum for : perfect numbers lie on , deficient numbers below it, and abundant numbers above it
. Details. This connection is ancient: Euclid's Elements, Book IX, Proposition 36, constructs a perfect number by multiplying the last term of by their sum, when that sum is a prime number. In modern notation, put and , with and a prime number. The sum-of-divisors function proves the construction immediately:Consequently the proper-divisor sum is . Taking produces the perfect numbers . [ref]
Book IX, Proposition 36. Euclid, Elements IX.36, translated text and commentary by David Joyce
Totient divisor-sum identity Created 2026-10-14 Updated 2026-10-20
The divisor sum of Euler's totient function is the identity arithmetic function:Equivalently, under Dirichlet convolution, with the constant-one arithmetic function. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Propositions 2.4.4 and 2.4.5
To see why, group the integers by . Each is a positive integer divisor of . Within its group, with and , by the scaling identity for greatest common divisors. Dividing by gives a bijection with the integers counted by . The groups form a partition of a set, soFor , the groups with greatest common divisor are respectively . Their sizes are , totaling . Möbius inversion reverses this divisor sum to recover Euler's totient function from .



