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.
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.
Mertens function Created 2026-09-24 Updated 2026-09-24
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 isThe 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]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Propositions 2.4.6 and 2.4.7
Each squarefree divisor chooses a subset of the distinct prime factors of , contributing when that subset has elements. Expanding a product therefore givesFor 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, givingPair 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.
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]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Definition 2.1.2
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]
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.
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 . ThereforeThe inverse local factor is . Consequently the inverse under Dirichlet convolution is the Liouville functionwhere 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 .
Past exam of the mathematics course of the University of Cambridge 2005 iii Paper 16 1 c Solution Created 2026-10-03 Updated 2026-10-14
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 . Consequentlywhere 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.
Past exam of the mathematics course of the University of Cambridge 2009 ii Paper 4 11G Solution Created 2026-09-24 Updated 2026-10-14
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 andIn 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.
Past exam of the mathematics course of the University of Cambridge 2010 iii Paper 25 1 Solution Created 2026-10-03 Updated 2026-10-14
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 andAt the sum is one. Thus . Writing , the only divisors with nonzero Von Mangoldt function are , and henceThe Dirichlet convolution is commutative by replacing with , and associative because either bracketing sums over . ConsequentlyThese 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 identitySince , the harmonic number estimate yieldsThe 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 relationFix an integer . The contribution to from has absolute value at mostFor , group by . This gives exactlyunder the assumed cancellation ; extending that assumption from integers to real uses . Therefore . Letting proves the prime number asymptotic from Mertens cancellation:
Past exam of the mathematics course of the University of Cambridge 2012 iii Paper 29 1 Solution Created 2026-10-03 Updated 2026-10-07
Let be the Möbius function. Its Möbius divisor-sum identity isIndeed, 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 satisfiesHere 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 givesSecond, the exact Dirichlet convolution identityfollows from : multiplication of a Dirichlet convolution by differentiates its two factors, so applying it to and convolving again with gives this formula. Summing it yieldsThe 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. ThereforeFor the Mertens function ,The second sum has absolute value at most , by an integral comparison or the Stirling formula. ConsequentlyThe absolute value in this conclusion is present in the original PDF.
Past exam of the mathematics course of the University of Cambridge 2014 iii Paper 25 5 b Solution Created 2026-10-03 Updated 2026-10-06
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 givesThis is the Möbius divisor-sum identity.
For and , the Hardy-Littlewood approximation to the Riemann zeta function at cutoff givesIndeed , and the omitted integral term has size at most . Multiply by . Its absolute value is at mostwhere 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 isThe displayed error is uniform in and the stated height interval.
Past exam of the mathematics course of the University of Cambridge 2015 iii Paper 27 5 b Solution 2026-10-06
Finite rearrangement and the Von Mangoldt divisor identity giveFor , integral comparison of the increasing logarithm gives . Moving to real changes the main term by . Thus the integrated Chebyshev sum hasFor , chooseThese are logarithmic Möbius function weights; they need not be upper-bound sieve weights. For , the Möbius inversion identities and giveHence the expression suggested in the question isWe will use the elementary Möbius harmonic logarithmic moments, , for whichHere 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 expansionExplicitly, 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 thereforeThe summed error is bounded by , by integral comparison. Thus .
Finally substitute the asymptotic for into . The main term isThe 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.
Past exam of the mathematics course of the University of Cambridge 2015 ii Paper 2 1H Solution Created 2026-09-24 Updated 2026-10-06
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. Consequentlybecause for the sum over squarefree divisors is .
The Möbius inversion formula is . Substituting the divisor sum defining and collecting the coefficient of givesThis 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 yieldsThe 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:
Past exam of the mathematics course of the University of Cambridge 2016 iii Paper 124 1 b Solution Created 2026-10-03 Updated 2026-10-06
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 giveEvery 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 isThe coefficient calculation uses only the squarefree integers dividing . Consequently the reciprocal identity is an identity of absolutely convergent series:
Past exam of the mathematics course of the University of Cambridge 2018 ii Paper 3 1G Solution Created 2026-09-24 Updated 2026-10-03
An arithmetic function is multiplicative if whenever and are coprime integers. If and , every positive integer divisor of is uniquely with and . Henceso 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 thereforeFor 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 givesusing the standard divisor identity for the Euler totient function. Therefore the two requested answers are
Past exam of the mathematics course of the University of Cambridge 2020 ii Paper 4 11H a Solution Created 2026-09-24 Updated 2026-10-14
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 satisfiesand , 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.
Past exam of the mathematics course of the University of Cambridge 2021 ii Paper 2 1I Solution Created 2026-09-24 Updated 2026-09-25
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 andMultiplying 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 satisfyingEvery positive integer then has . HenceThere are infinitely many positive representatives of this congruence class.
Past exam of the mathematics course of the University of Cambridge 2022 ii Paper 1 1I Solution Created 2026-09-23 Updated 2026-09-25
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


