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. The divisor summatory function adds the divisor function up to a cutoff . It counts all ordered pairs of positive integers whose product is at most . For , the twelve individual divisor function values areCounting columns of lattice points instead gives . The Dirichlet hyperbola method needs only the first three column counts:The arithmetic work of the Dirichlet hyperbola method is much smaller even though the answer is identical.
This is useful for elementary averages: individual divisor function values fluctuate, but their summation has the regular behavior given by the divisor summatory asymptotic. Dividing that estimate by a positive integer giveswhere is the natural logarithm, is the Euler--Mascheroni constant, and uses big O notation. This describes an average, rather than an estimate for every individual divisor function value. [ref]
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 .
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.
The Dirichlet hyperbola method gives , where . The harmonic number estimate , with the Euler's constant, yields . Substitution of gives the displayed asymptotic expansion. Comparison of with its integral consequently gives for integer .
Write and . The weighted Dirichlet hyperbola method givesIndeed, use and . The latter follows by comparing each summand with the integral on its unit interval: the derivative of has an integrable tail. Since , substitution yields the expansion. Here is the harmonic number and the Euler--Mascheroni constant.

