1 1 1 1 3 /2 | 1 1 2 3 /2 1.5 | |
![]() | ||
In mathematics, the n-th harmonic number is the sum of the reciprocals of the first n natural numbers:
Contents
- Identities involving harmonic numbers
- Identities involving
- Calculation
- Generating functions
- Arithmetic properties
- Applications
- Generalized harmonic numbers
- Multiplication formulas
- Hyperharmonic numbers
- Harmonic numbers for real and complex values
- Alternative asymptotic formulation
- Special values for fractional arguments
- Relation to the Riemann zeta function
- References
Harmonic numbers are related to the harmonic mean in that the n-th harmonic number is also n times the reciprocal of the harmonic mean of the first n positive integers.
Harmonic numbers were studied in antiquity and are important in various branches of number theory. They are sometimes loosely termed harmonic series, are closely related to the Riemann zeta function, and appear in the expressions of various special functions.
The harmonic numbers roughly approximate the natural logarithm function and thus the associated harmonic series grows without limit, albeit slowly. In 1737, Leonhard Euler used the divergence of the harmonic series to provide a new proof of the infinity of prime numbers. His work was extended into the complex plane by Bernhard Riemann in 1859, leading directly to the celebrated Riemann hypothesis about the distribution of prime numbers.
When the value of a large quantity of items has a Zipf's law distribution, the total value of the n most-valuable items is proportional to the n-th harmonic number. This leads to a variety of surprising conclusions in the Long Tail and the theory of network value.
Bertrand's postulate entails that, except for the case n = 1, the harmonic numbers are never integers.
Identities involving harmonic numbers
By definition, the harmonic numbers satisfy the recurrence relation
The harmonic numbers are connected to the Stirling numbers of the first kind:
The functions
satisfy the property
In particular
is an integral of the logarithmic function.
The harmonic numbers satisfy the series identity
Identities involving π
There are several infinite summations involving harmonic numbers and powers of π:
Calculation
An integral representation given by Euler is
The equality above is obvious by the simple algebraic identity
Using the simple integral transform x = 1−u, an elegant combinatorial expression for Hn is
The same representation can be produced by using the third Retkes identity by setting
The nth harmonic number is about as large as the natural logarithm of n. The reason is that the sum is approximated by the integral
whose value is ln(n).
The values of the sequence Hn - ln(n) decrease monotonically towards the limit
where γ ≈ 0.5772156649 is the Euler–Mascheroni constant. The corresponding asymptotic expansion as n → +∞ is
where
Generating functions
A generating function for the harmonic numbers is
where ln(z) is the natural logarithm. An exponential generating function is
where Ein(z) is the entire exponential integral. Note that
where Γ(0, z) is the incomplete gamma function.
Arithmetic properties
The harmonic numbers have several interesting arithmetic properties. It is well-known that
As a consequence of Wolstenholme's theorem, for any prime number
where
for all prime numbers
Eswarathasan and Levine also conjectured that
Applications
The harmonic numbers appear in several calculation formulas, such as the digamma function
This relation is also frequently used to define the extension of the harmonic numbers to non-integer n. The harmonic numbers are also frequently used to define γ using the limit introduced earlier:
although
converges more quickly.
In 2002, Jeffrey Lagarias proved that the Riemann hypothesis is equivalent to the statement that
is true for every integer n ≥ 1 with strict inequality if n > 1; here σ(n) denotes the sum of the divisors of n.
The eigenvalues of the nonlocal problem
are given by
Generalized harmonic numbers
The generalized harmonic number of order n of m is given by
The limit as n tends to infinity is finite if m > 1.
Other notations occasionally used include
The special case of m = 0 gives
The special case of m = 1 is simply called a harmonic number and is frequently written without the m, as
Smallest natural number k such that kn does not divide the denominator of generalized harmonic number H(k, n) nor the denominator of alternating generalized harmonic number H′(k, n) are
77, 20, 94556602, 42, 444, 20, 104, 42, 76, 20, 77, 110, 3504, 20, 903, 42, 1107, 20, 104, 42, 77, 20, 2948, 110, 136, 20, 76, 42, 903, 20, 77, 42, 268, 20, 7004, 110, 1752, 20, 19203, 42, 77, 20, 104, 42, 76, 20, 370, 110, 1107, 20, ... (sequence A128670 in the OEIS)In the limit of n → +∞ for m > 1, the generalized harmonic number converges to the Riemann zeta function
The related sum
Some integrals of generalized harmonic are
and
and
Every generalized harmonic number of order m can be written as a function of harmonic of order m-1 using:
A generating function for the generalized harmonic numbers is
where
Fractional argument for generalized harmonic numbers can be introduced as follows:
For every
where
Some special values are:
Multiplication formulas
The multiplication theorem applies to harmonic numbers. Using polygamma functions, we obtain
or, more generally,
For generalized harmonic numbers, we have
where
Hyperharmonic numbers
The next generalization was discussed by J. H. Conway and R. K. Guy in their 1995 book The Book of Numbers. Let
Then the nth hyperharmonic number of order r (r>0) is defined recursively as
In particular,
Harmonic numbers for real and complex values
The formulae given above,
are an integral and a series representation for a function that interpolates the harmonic numbers and, via analytic continuation, extends the definition to the complex plane other than the negative integers x. The interpolating function is in fact closely related to the digamma function
where ψ(x) is the digamma, and γ is the Euler-Mascheroni constant. The integration process may be repeated to obtain
The Taylor series for the harmonic numbers is
which comes from the Taylor series for the digamma function.
Alternative, asymptotic formulation
When seeking to approximate Hx for a complex number x it turns out that it is effective to first compute Hm for some large integer m, then use that to approximate a value for Hm+x, and then use the recursion relation Hn = Hn−1 + 1/n backwards m times, to unwind it to an approximation for Hx. Furthermore, this approximation is exact in the limit as m goes to infinity.
Specifically, for every integer n, we have that
and we can ask that the formula be obeyed if the arbitrary integer n is replaced by an arbitrary complex number x
Adding Hx to both sides gives
This last expression for Hx is well defined for any complex number x except the negative integers, which fail because trying to use the recursion relation Hn = Hn−1 + 1/n backwards through the value n = 0 involves a division by zero. By construction, the function Hx is the unique function of x for which (1) H0 = 0, (2) Hx = Hx−1 + 1/x for all complex values x except the non-positive integers, and (3) limm→+∞ (Hm+x − Hm) = 0 for all complex values x.
Based on this last formula, it can be shown that:
where γ is the Euler–Mascheroni constant or, more generally, for every n we have:
Special values for fractional arguments
There are the following special analytic values for fractional arguments between 0 and 1, given by the integral
More values may be generated from the recurrence relation
or from the reflection relation
For example:
For positive integers p and q with p < q, we have:
Relation to the Riemann zeta function
Some derivatives of fractional harmonic numbers are given by:
And using Maclaurin series, we have for x < 1:
For fractional arguments between 0 and 1, and for a > 1: