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 .
Figure 1.
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.
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 , yields
No 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 , , gives
It 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 .
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 identity
The subtraction is for the whole overlap square, rather than only the diagonal. The same Dirichlet hyperbola method identity holds for real , with and . [ref]
Figure 1.
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 are
Counting 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 gives
where 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]