Arithmetic function Created 2026-09-24 Updated 2026-10-14
An arithmetic function is a function whose domain of a function is the positive integers, usually taking values in the complex numbers. Thus are its values; is outside this domain of a function. Examples include the divisor function, with , and the sum-of-divisors function, with . Studying an arithmetic function packages a question about each positive integer into one object whose values can be combined using Dirichlet convolution. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Section 2.1: arithmetic functions
The direct divisor summatory function formula evaluates floor divisions. Its balanced Dirichlet hyperbola method formula evaluates floor divisions and reuses their sum for the other strip, followed by doubling and square-overlap subtraction. Thus it uses arithmetic operations, with big O notation, in a model that counts each division, addition and multiplication as one operation. At , the division counts for these two formulas are and .
The balanced Dirichlet hyperbola method reduces floor divisions from to ; for , two sequences of partial sums reach the same exact answer 35
. Details. For a general Dirichlet convolution, the asymmetric formula has outer terms; evaluating and has an additional cost. Under , equal thresholds minimize , but an asymmetric split can be useful if the two partial sums have different evaluation costs. The balanced divisor summatory function gains the further reuse because its two arithmetic functions are identical.
These are arithmetic operation counts, rather than counts of elementary operations on binary digits: the integers grow with , and division of longer integers costs more in that model of computational complexity theory. Computing also requires an exact integer square root, or checking and correcting a numerical square root until holds.
Asymmetric Dirichlet hyperbola split 2026-10-14
A balanced Dirichlet hyperbola method split takes real thresholds . An asymmetric split takes and . Every lattice point with then has or , and every point in their overlap rectangle is allowed because . For arithmetic functions , define their partial sums by and , always over positive integers. The same inclusion-exclusion principle, now with weight , yieldsNo multiplicativity assumption is needed: this is a finite rearrangement of Dirichlet convolution. The constant-one arithmetic function in both positions recovers the divisor summatory function. For , , givesIt uses two columns and six rows, with a twelve-point overlap.
For general positive real thresholds, is sufficient for coverage, since and would imply . If , however, the overlap can include points above the hyperbola. The correct subtraction is then ; the product is justified only when the whole integer rectangle lies below it. For example, , covers every allowed pair, but its rectangle contains the forbidden pair , so subtracting all sixteen points would give instead of .
Conversely, the balanced integer thresholds have and still cover every allowed pair because . More generally, positive integer thresholds give coverage exactly when , and their overlap is a full rectangle exactly when . These discrete conditions explain why the square-root identity works even when .
Constant-one arithmetic function Created 2026-10-03 Updated 2026-10-14
The constant-one arithmetic function has for every positive integer , including . It is a completely multiplicative function. Its Dirichlet convolution with an arithmetic function is the divisor sum . Thus , the divisor function. Its pointwise product of arithmetic functions with is itself; its Dirichlet convolution with generally is not. The Identity for Dirichlet convolution is instead .
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.
Dirichlet hyperbola method Created 2026-09-24 Updated 2026-10-14
The Dirichlet hyperbola method turns a long summation over a Dirichlet convolution into two short ones by covering the lattice points below a hyperbola with two overlapping strips. Its simplest application is an exact count: for a positive integer , every positive integer divisor of corresponds to the ordered pair . Thus the divisor summatory function counts precisely the ordered pairs of positive integers with :Here is the divisor function, and the floor function gives the number of allowed values of for each . The axes are excluded, while points on are included.
Set , using the floor function and the positive square root. Every counted pair has or . Otherwise . The first strip contains points; swapping the two coordinates gives the same count for the second. Their overlap contains all pairs with , since . The inclusion-exclusion principle therefore gives the exact identityThe subtraction is for the whole overlap square, rather than only the diagonal. The same Dirichlet hyperbola method identity holds for real , with and . [ref]
Multiplicative number theory: The pretentious approach by Andrew Granville and K. Soundararajan. Andrew Granville and K. Soundararajan, Multiplicative number theory: The pretentious approach, §1.1.4, pp. 7–8: divisor pairing and the hyperbola split
The Dirichlet hyperbola method counts 35 positive lattice points with : two strips of 22 points overlap in a square of nine points
. Details. Dirichlet series Created 2026-09-24 Updated 2026-10-03
A Dirichlet series is a series of the formMultiplication of absolutely convergent Dirichlet series corresponds to Dirichlet convolution of their coefficients.
Divisor function Created 2026-09-24 Updated 2026-10-13
The divisor function counts the positive integer divisors of a positive integer . In particular , because has just one positive integer divisor. More generally the notation gives and the sum-of-divisors function . Thus the divisor function counts the positive integer divisors, while adds their sizes. [ref]
https://darijgrinberg.gitlab.io/floor.pdf. Darij Grinberg, MIT 18.781 lecture notes, Definition 2.1.2 and Theorem 2.1.6
If the prime factorization is with distinct prime numbers and positive exponents , thenThe short proof is a count: each positive integer divisor has a unique form , where . There are choices at each prime number, and choosing them gives every positive integer divisor exactly once. For there are no prime factors and the product is .
For , choose and to obtain . The six values are ; sorted, the positive integer divisors are . Therefore . The diagram makes the independent exponent choices visible.
The prime factorization gives a three-by-two array of positive integer divisors , so the divisor function has
. Details. This count is useful because a known prime factorization gives without testing every smaller positive integer for divisibility. It also proves the divisor function is a multiplicative function: coprime integers have disjoint prime factors, so their exponent choices combine. For example , but , so it is not a completely multiplicative function. Equivalently, under Dirichlet convolution, counting ordered pairs of positive integers whose product is .
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.
For ,If , its contribution to is . Since , summing over the prime factors proves the bound. Here is Dirichlet convolution and is the Von Mangoldt function.
Mertens bound from a log-integrable Chebyshev error Created 2026-10-07 Updated 2026-10-14
Suppose and . The Möbius divisor-sum identity gives . The exact Dirichlet convolution identity then gives , because its error is a convergent dyadic harmonic sum. Since , the displayed Mertens function bound follows. The classical Prime number theorem error meets the summability condition. This is a deduction from the Chebyshev error itself, without a separate estimate for the reciprocal zeta 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 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.




