Dirichlet Hyperbola Method
   HOME

TheInfoList



OR:

In
number theory Number theory (or arithmetic or higher arithmetic in older usage) is a branch of pure mathematics devoted primarily to the study of the integers and arithmetic function, integer-valued functions. German mathematician Carl Friedrich Gauss (1777â ...
, the Dirichlet hyperbola method is a technique to evaluate the sum : F(n) = \sum_^n f(k), where f is a
multiplicative function In number theory, a multiplicative function is an arithmetic function ''f''(''n'') of a positive integer ''n'' with the property that ''f''(1) = 1 and f(ab) = f(a)f(b) whenever ''a'' and ''b'' are coprime. An arithmetic function ''f''(''n'') is ...
. The first step is to find a pair of multiplicative functions g and h such that, using
Dirichlet convolution In mathematics, the Dirichlet convolution is a binary operation defined for arithmetic functions; it is important in number theory. It was developed by Peter Gustav Lejeune Dirichlet. Definition If f , g : \mathbb\to\mathbb are two arithmetic fun ...
, we have f = g \ast h; the sum then becomes : F(n) = \sum_^n \sum_^ g(x) h(y), where the inner sum runs over all ordered pairs (x,y) of positive
integers An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign (−1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language o ...
such that xy=k. In the
Cartesian plane A Cartesian coordinate system (, ) in a plane is a coordinate system that specifies each point uniquely by a pair of numerical coordinates, which are the signed distances to the point from two fixed perpendicular oriented lines, measured in t ...
, these pairs lie on a
hyperbola In mathematics, a hyperbola (; pl. hyperbolas or hyperbolae ; adj. hyperbolic ) is a type of smooth curve lying in a plane, defined by its geometric properties or by equations for which it is the solution set. A hyperbola has two pieces, cal ...
, and when the double sum is fully expanded, there is a
bijection In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other s ...
between the terms of the sum and the
lattice points In geometry and group theory, a lattice in the real coordinate space \mathbb^n is an infinite set of points in this space with the properties that coordinate wise addition or subtraction of two points in the lattice produces another lattice poin ...
in the first quadrant on the hyperbolas of the form xy=k, where k runs over the integers 1 \leq k \leq n: for each such point (x,y), the sum contains a term g(x)h(y), and vice versa. Let a be a real number, not necessarily an integer, such that 1 < a < n, and let b = n/a. Then the lattice points can be split into three overlapping regions: one region is bounded by 1 \leq x \leq a and 1 \leq y \leq n/x, another region is bounded by 1 \leq y \leq b and 1 \leq x \leq n/y, and the third is bounded by 1 \leq x \leq a and 1 \leq y \leq b. In the diagram, the first region is the
union Union commonly refers to: * Trade union, an organization of workers * Union (set theory), in mathematics, a fundamental operation on sets Union may also refer to: Arts and entertainment Music * Union (band), an American rock group ** ''Un ...
of the blue and red regions, the second region is the union of the red and green, and the third region is the red. Note that this third region is the
intersection In mathematics, the intersection of two or more objects is another object consisting of everything that is contained in all of the objects simultaneously. For example, in Euclidean geometry, when two lines in a plane are not parallel, their i ...
of the first two regions. By the principle of inclusion and exclusion, the full sum is therefore the sum over the first region, plus the sum over the second region, minus the sum over the third region. This yields the formula


Examples

Let \sigma_0(n) be the divisor-counting function, and let D(n) be its summatory function: : D(n) = \sum_^n \sigma_0(k). Computing D(n) naïvely requires factoring every integer in the interval
, n The comma is a punctuation mark that appears in several variants in different languages. It has the same shape as an apostrophe or single closing quotation mark () in many typefaces, but it differs from them in being placed on the baseline o ...
/math>; an improvement can be made by using a modified
Sieve of Eratosthenes In mathematics, the sieve of Eratosthenes is an ancient algorithm for finding all prime numbers up to any given limit. It does so by iteratively marking as composite (i.e., not prime) the multiples of each prime, starting with the first prime n ...
, but this still requires \widetilde(n) time. Since \sigma_0 admits the Dirichlet convolution \sigma_0 = 1 \ast 1, taking a=b=\sqrt in () yields the formula : D(n) = \sum_^ \sum_^ 1 \cdot 1 + \sum_^ \sum_^ 1 \cdot 1 - \sum_^ \sum_^ 1 \cdot 1, which simplifies to : D(n) = 2 \cdot \sum_^ \left\lfloor \frac \right\rfloor - \left\lfloor \sqrt \right\rfloor^2, which can be evaluated in O\left(\sqrt\right) operations. The method also has theoretical applications: for example,
Peter Gustav Lejeune Dirichlet Johann Peter Gustav Lejeune Dirichlet (; 13 February 1805 – 5 May 1859) was a German mathematician who made deep contributions to number theory (including creating the field of analytic number theory), and to the theory of Fourier series and ...
introduced the technique in 1849 to obtain the estimate : D(n) = n \log n + (2\gamma - 1)n + O(\sqrt{n}), where \gamma is the
Euler–Mascheroni constant Euler's constant (sometimes also called the Euler–Mascheroni constant) is a mathematical constant usually denoted by the lowercase Greek letter gamma (). It is defined as the limiting difference between the harmonic series and the natural l ...
.


References

Number theory


External links


Discussion of the Dirichlet hyperbola method for computational purposes