Dirichlet convolution Created 2026-09-24 Updated 2026-10-13
The Dirichlet convolution of arithmetic functions is the arithmetic function
In 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]
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 .
Figure 1.
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.
Identity for Dirichlet convolution Created 2026-09-29 Updated 2026-10-14
The Identity for Dirichlet convolution is the arithmetic function
For 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 is
The 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.
Mertens function Created 2026-09-24 Updated 2026-09-24
The Mertens function is the summatory Möbius function
Möbius divisor-sum identity Created 2026-10-06 Updated 2026-10-14
For every positive integer , the divisor sum of the Möbius function is
The sum includes all positive integer divisors, but only squarefree divisors contribute. Equivalently, under Dirichlet convolution, where is the constant-one arithmetic function and is the Identity for Dirichlet convolution. [ref]
Each squarefree divisor chooses a subset of the distinct prime factors of , contributing when that subset has elements. Expanding a product therefore gives
For at least one prime factor occurs, so the product is zero. At it is an empty product, equal to one. This is the same alternating cancellation that drives inclusion-exclusion.
For , all eight positive integer divisors are squarefree integers, giving
Pair each subset not containing with the subset obtained by inserting : . Each pair cancels. The same nonzero terms occur for , because its squarefree divisors are still the integer divisors of ; its other integer divisors have Möbius function value zero.
Figure 1.
The eight integer divisors of 30 form a cube of subsets of its prime factors; adding one prime factor reverses the Möbius function sign, and all contributions cancel
. Details.
The Möbius divisor-sum identity is the cancellation behind Möbius inversion and reciprocal Dirichlet series: aggregation over integer divisors has an exact inverse.
Möbius function Created 2026-09-24 Updated 2026-10-13
The Möbius function assigns a cancellation weight to each positive integer:
Thus a squarefree integer contributes a sign determined by its number of distinct prime factors; a repeated prime factor makes the weight zero. This packages the alternating signs of inclusion-exclusion into an arithmetic function. [ref]
For example, , , and , since . In contrast, : all three have the square of the prime number as a divisor. On prime powers, and for .
The Möbius function is a multiplicative function: for coprime integers, their prime factors are disjoint, so either a squared prime factor forces both sides of to vanish, or the counts of distinct prime factors add and their signs multiply. It is not a completely multiplicative function, since . Its Möbius divisor-sum identity makes it the inverse of the constant-one arithmetic function under Dirichlet convolution: , the Identity for Dirichlet convolution. This is why the small set of weights can undo an entire divisor sum.
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]
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 .
Figure 1.
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 gives
The 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.
Number-theoretic sieve 2026-10-20
A number-theoretic sieve processes many integers together by marking or updating those sharing a divisor, rather than testing each integer independently. The sieve of Eratosthenes marks composite multiples of successive prime numbers; related sieves accumulate a smallest prime factor, Euler's totient function, or Möbius function for every argument up to a bound. The useful structure is that the multiples of a fixed integer form an arithmetic progression, so one loop can update all affected entries in an array.
For example, initializing an array to true and then marking for each surviving prime number leaves precisely the prime numbers unmarked, apart from the separately excluded zero and one. Every composite number has a prime factor, which proves that every composite is eventually removed. Starting the marking at avoids work already performed by smaller prime numbers. Different sieves use different update rules and time complexity bounds; the name alone does not imply the complexity of the sieve of Eratosthenes.
The Möbius function satisfies for and is zero for . Therefore
The inverse local factor is . Consequently the inverse under Dirichlet convolution is the Liouville function
where counts prime factors with multiplicity. Both functions are multiplicative functions. At with , their convolution is , while its value at one is one. Multiplicativity then proves on every positive integer. Its Dirichlet series is for .
The equation says for every . Thus a solution is determined uniquely by the block , repeated in both directions. It belongs to the subshift of finite type exactly when all transitions inside the block, and the closing transition from to , are allowed. Hence these fixed points of the th iteration of a map are in bijection with the closed transition chains of steps with a specified symbol at time zero. By the counting argument in part (b), the number starting at is . Summing over proves the trace formula for periodic points of a subshift:
Every closed transition chain extends by periodic repetition, so the extension issue in part (b) does not affect this formula. We count points, not periodic orbits: a least-period- periodic orbit contributes its distinct points.
Here period means fixed by , so the least period may divide . If denotes the number of points of least period exactly , division with remainder shows that a point is fixed by exactly when its least period divides . Consequently
where is the Möbius function and the second equality is Möbius inversion. For example, has one point fixed by every power but no point of least period two; interpreting the printed formula as an exact-period count would therefore be false.
Define the Möbius function by , for a product of distinct primes, and if a prime square divides . For , summing over square-free divisors gives , while the sum is one at .
Both Dirichlet series and converge absolutely for . Their product may therefore be regrouped by the product of the indices:
This simultaneously proves and
In particular .
Under the assumed analytic continuation, is holomorphic near when , and as . If were a zero of order , local factorization would give for sufficiently small positive . The preceding absolutely convergent bound gives instead , a contradiction. Thus . This reciprocal Dirichlet-series bound on boundary-zero multiplicity does not assert that any such boundary zero exists.
Write and let be the Identity for Dirichlet convolution. The Möbius function uses the empty-product convention ; the Von Mangoldt function has . We first establish all the arithmetic function identities needed below. Every integer divisor of contributes one to , so . If has distinct prime factors, the squarefree divisors correspond to their subsets and
At the sum is one. Thus . Writing , the only divisors with nonzero Von Mangoldt function are , and hence
The Dirichlet convolution is commutative by replacing with , and associative because either bracketing sums over . Consequently
These are consequences of the definitions, rather than unproved invocations of Möbius inversion.
To identify the constant, integrate on each interval :
The tail is , since the integrand is at most for . Summation therefore gives , where is the harmonic number, and . Thus this is Euler's constant.
Put . Counting pairs of positive integers whose product is at most , and subtracting the square counted twice, gives the Dirichlet hyperbola method identity
Since , the harmonic number estimate yields
The increasing natural logarithm also satisfies by comparison with its integral. Subtracting proves
For the second implication, denote the Mertens function by and the Second Chebyshev function by . Apply the proved Dirichlet convolution identities to :
Summing this identity over integers up to gives the exact relation
Fix an integer . The contribution to from has absolute value at most
For , group by . This gives exactly
under the assumed cancellation ; extending that assumption from integers to real uses . Therefore . Letting proves the prime number asymptotic from Mertens cancellation:
Let be the Möbius function. Its Möbius divisor-sum identity is
Indeed, for the sum is the expansion of ; nonsquarefree divisors contribute zero. Thus, for arithmetic functions ,
To prove Möbius inversion, substitute the first formula into the second and collect the coefficient of . It is , which is one for and zero otherwise. Conversely the same divisor interchange recovers from the displayed formula for . In Dirichlet convolution notation this is simply , where is supported at one.
The Prime number theorem with classical zero-free-region error states that some absolute satisfies
Here is the Von Mangoldt function. An equivalent prime-counting form, after decreasing if needed, is . The contributions of proper prime powers are and can be absorbed into this error. We use to keep it distinct from the Fourier transform appearing in Question 5.
Here is a direct deduction of the requested Mertens bound from a log-integrable Chebyshev error from the stated Prime number theorem. First, the divisor identity gives
Second, the exact Dirichlet convolution identity
follows from : multiplication of a Dirichlet convolution by differentiates its two factors, so applying it to and convolving again with gives this formula. Summing it yields
The last harmonic sum is . To see this without an endpoint approximation, split into dyadic ranges . In each range , and its exponential factor is at most . Their sum over converges. The finitely many terms with obey the same estimate after adjusting the constant in the prime-number-theorem error. Therefore
For the Mertens function ,
The second sum has absolute value at most , by an integral comparison or the Stirling formula. Consequently
The absolute value in this conclusion is present in the original PDF.
The Möbius function has , vanishes on integers divisible by a square of a prime, and equals on a product of distinct primes. Factoring the divisor sum prime by prime gives
This is the Möbius divisor-sum identity.
For and , the Hardy-Littlewood approximation to the Riemann zeta function at cutoff gives
Indeed , and the omitted integral term has size at most . Multiply by . Its absolute value is at most
where the elementary inequality follows from . Reindexing the finite double sum yields coefficients , with no terms for . For all divisors meet both restrictions, so the Möbius divisor-sum identity gives and for . Hence the truncated Möbius inverse identity for the Riemann zeta function is
The displayed error is uniform in and the stated height interval.
Finite rearrangement and the Von Mangoldt divisor identity give
For , integral comparison of the increasing logarithm gives . Moving to real changes the main term by . Thus the integrated Chebyshev sum has
For , choose
These are logarithmic Möbius function weights; they need not be upper-bound sieve weights. For , the Möbius inversion identities and give
Hence the expression suggested in the question is
We will use the elementary Möbius harmonic logarithmic moments, , for which
Here is a proof of the needed estimates. From , replacing floors by gives . Also , because . Substituting the permitted harmonic number estimate gives , so .
For , the weighted Dirichlet hyperbola method gives the harmonic divisor sum expansion
Explicitly, for , . Substitute the harmonic estimate and , obtained by unit-interval integral comparison. This proves the expansion without a prime-distribution theorem. Since , we have , and therefore
The summed error is bounded by , by integral comparison. Thus .
Finally substitute the asymptotic for into . The main term is
The error sum is : partition the integers into ; each interval contributes , and the resulting series converges. Using the moment estimates proves the Selberg symmetry formula:
In particular, the factor two comes from the quadratic logarithmic moment, rather than from an assumption of the Prime number theorem.
The Euler totient function counts integers with . The Möbius function has , is zero when a prime square divides , and equals when is a product of distinct primes. Consequently
because for the sum over squarefree divisors is .
The Möbius inversion formula is . Substituting the divisor sum defining and collecting the coefficient of gives
This proof uses only finite sums, so no convergence hypothesis is needed.
Classifying by their greatest common divisor with gives : the class with greatest common divisor contains exactly integers. Applying the Möbius inversion formula yields
The Riemann zeta function is for . Absolute convergence justifies multiplication of Dirichlet series. The divisor identity for the Möbius function gives there. For both factors below converge absolutely, and their Dirichlet convolution is the Euler totient function:
The Möbius function has , when is divisible by a prime square, and when is a product of distinct primes. The Riemann zeta function is initially the Dirichlet series for . Both this Dirichlet series and have absolute convergence, because and .
For a finite set of primes , multiplication of absolutely convergent geometric series and unique prime factorization give
Every omitted integer has a prime factor exceeding , so it exceeds . The difference from has absolute value at most . This proves the Euler product, with the product interpreted as the limit of its finite products:
For the reciprocal identity, absolute convergence justifies multiplying and regrouping the two Dirichlet series by their product index. Their Dirichlet convolution coefficient at is
The coefficient calculation uses only the squarefree integers dividing . Consequently the reciprocal identity is an identity of absolutely convergent series:
An arithmetic function is multiplicative if whenever and are coprime integers. If and , every positive integer divisor of is uniquely with and . Hence
so is multiplicative.
The Möbius function is defined by , if the square of a prime number divides , and if is a product of distinct prime numbers. Coprime integers have disjoint sets of prime factors, so this definition immediately gives when .
For , only the square-free divisors contribute, and therefore
For the sum is . Thus in the language of Dirichlet convolution. Convolving with gives the Möbius inversion formula
If , its divisor sum is the sum-of-divisors function. Conversely, if , Möbius inversion gives
using the standard divisor identity for the Euler totient function. Therefore the two requested answers are
An arithmetic function is multiplicative when and whenever and are coprime. If and are coprime, every divisor of has a unique factorization with and . Hence the Dirichlet convolution of multiplicative functions satisfies
and , so it is multiplicative.
Let be the Identity for Dirichlet convolution, with and for . The Möbius function satisfies . Therefore, using commutativity and associativity,
This is the Möbius inversion formula.
The Möbius function is defined by and, for ,
It is a multiplicative arithmetic function: whenever and are coprime.
The summand is multiplicative, so its divisor sum is multiplicative. For a prime power with , only contribute and
Multiplying these local identities over the prime divisors of gives
For the final claim, choose distinct primes . The moduli are pairwise coprime, so the Chinese remainder theorem gives an integer satisfying
Every positive integer then has . Hence
There are infinitely many positive representatives of this congruence class.
If and are coprime, every divisor of is uniquely with and . Hence, for a multiplicative arithmetic function ,
The Möbius function is if a prime square divides , and if is a product of distinct primes. The Euler totient function counts residues modulo coprime to . From the prime factorizations,
Both sides of the second identity are multiplicative, and at a prime power ,
Therefore