Definitions

# Harmonic number

The term harmonic number has multiple meanings. For other meanings, see harmonic number (disambiguation).

In mathematics, the n-th harmonic number is the sum of the reciprocals of the first n natural numbers:

$H_n= 1+frac\left\{1\right\}\left\{2\right\}+frac\left\{1\right\}\left\{3\right\}+cdots+frac\left\{1\right\}\left\{n\right\}$
$=sum_\left\{k=1\right\}^n frac\left\{1\right\}\left\{k\right\}.$

This also equals n times the inverse of the harmonic mean of these natural numbers.

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 various expressions for various special functions.

## Calculation

An integral representation is given by Euler:

$H_n = int_0^1 frac\left\{1 - x^n\right\}\left\{1 - x\right\},dx.$

This representation can be easily shown to satisfy the recurrence relation by the formula

$int_0^1 x^n,dx = frac\left\{1\right\}\left\{n + 1\right\},$

and then

$x^\left\{n\right\} + frac\left\{1 - x^n\right\}\left\{1 - x\right\} = frac\left\{1 - x^\left\{n+1\right\}\right\}\left\{1 - x\right\}$

inside the integral.

Hn grows about as fast as the natural logarithm of n. The reason is that the sum is approximated by the integral

$int_1^n \left\{1 over x\right\}, dx$

whose value is ln(n). More precisely, we have the limit:

$lim_\left\{n to infty\right\} H_n - ln\left(n\right) = gamma$

(where γ is the Euler-Mascheroni constant $0.5772156649dots$), and the corresponding asymptotic expansion:

$H_n = gamma + ln\left\{n\right\} + frac\left\{1\right\}\left\{2\right\}n^\left\{-1\right\} - frac\left\{1\right\}\left\{12\right\}n^\left\{-2\right\} + frac\left\{1\right\}\left\{120\right\}n^\left\{-4\right\} + mathcal\left\{O\right\}\left(n^\left\{-6\right\}\right)$

## Special values for fractional arguments

There are the following special analytic values for fractional arguments between 0 and 1, given by the integral
$H_alpha = int_0^1frac\left\{1-x^alpha\right\}\left\{1-x\right\},dx$
More may be generated from the recurrence relation $H_alpha = H_\left\{alpha-1\right\}+frac\left\{1\right\}\left\{alpha\right\}$.

$H_\left\{1/2\right\} = 2 -2ln\left\{2\right\},$

$H_\left\{1/3\right\} = 3-frac\left\{pi\right\}\left\{2sqrt\left\{3\right\}\right\} -frac\left\{3\right\}\left\{2\right\}ln\left\{3\right\}$

$H_\left\{1/4\right\} = 4-frac\left\{pi\right\}\left\{2\right\} - 3ln\left\{2\right\}$

$H_\left\{1/6\right\} = 6-frac\left\{pi\right\}\left\{2\right\}sqrt\left\{3\right\} -2ln\left\{2\right\} -frac\left\{3\right\}\left\{2\right\}ln\left(3\right)$

$H_\left\{1/8\right\} = 8-frac\left\{pi\right\}\left\{2\right\} - 4ln\left\{2\right\} - frac\left\{1\right\}\left\{sqrt\left\{2\right\}\right\} left\left\{pi + ln\left(2 + sqrt\left\{2\right\}\right) - ln\left(2 - sqrt\left\{2\right\}\right)right\right\}$

## Generating functions

A generating function for the harmonic numbers is

$sum_\left\{n=1\right\}^infty z^n H_n =$
frac {-ln(1-z)}{1-z},

where $ln\left(z\right)$ is the natural logarithm. An exponential generating function is

$sum_\left\{n=1\right\}^infty frac \left\{z^n\right\}\left\{n!\right\} H_n =$
-e^z sum_{k=1}^infty frac{1}{k} frac {(-z)^k}{k!} = e^z mbox {Ein}(z)

where $mbox\left\{Ein\right\}\left(z\right)$ is the entire exponential integral. Note that

$mbox \left\{Ein\right\}\left(z\right) = mbox\left\{E\right\}_1\left(z\right) + gamma + ln z =$
Gamma (0,z) + gamma + ln z,

where $Gamma \left(0,z\right)$ is the incomplete gamma function.

## Applications

The harmonic numbers appear in several calculation formulas, such as the digamma function:

$psi\left(n\right) = H_\left\{n-1\right\} - gamma.,$

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 in the previous section, although

$gamma = lim_\left\{n rightarrow infty\right\}\left\{left\left(H_n - lnleft\left(n+\left\{1 over 2\right\}right\right)right\right)\right\}$

converges more quickly.

In 2002 Jeffrey Lagarias proved that the Riemann hypothesis is equivalent to the statement that

$sigma\left(n\right) le H_n + ln\left(H_n\right)e^\left\{H_n\right\},$
is true for every integer n ≥ 1 with strict inequality if n > 1; here σ(n) denotes the sum of the divisors of n.

## Generalization

### Generalized harmonic numbers

The generalized harmonic number of order $n$ of m is given by

$H_\left\{n,m\right\}=sum_\left\{k=1\right\}^n frac\left\{1\right\}\left\{k^m\right\}.$

Note that the limit as n tends to infinity exists if $m > 1$.

Other notations occasionally used include

$H_\left\{n,m\right\}= H_n^\left\{\left(m\right)\right\} = H_m\left(n\right).$

The special case of $m=1$ is simply called a harmonic number and is frequently written without the superscript, as

$H_n= sum_\left\{k=1\right\}^n frac\left\{1\right\}\left\{k\right\}.$

In the limit of $nrightarrow infty$, the generalized harmonic number converges to the Riemann zeta function

$lim_\left\{nrightarrow infty\right\} H_\left\{n,m\right\} = zeta\left(m\right).$

The related sum $sum_\left\{k=1\right\}^n k^m$ occurs in the study of Bernoulli numbers; the harmonic numbers also appear in the study of Stirling numbers.

A generating function for the generalized harmonic numbers is

$sum_\left\{n=1\right\}^infty z^n H_\left\{n,m\right\} =$
frac {mbox{Li}_m(z)}{1-z},

where $mbox\left\{Li\right\}_m\left(z\right)$ is the polylogarithm, and $|z|<1$. The generating function given above for $m=1$ is a special case of this formula.

### Generalization to the complex plane

Euler's integral formula for the harmonic numbers follows from the integral identity

$int_a^1 frac \left\{1-x^s\right\}\left\{1-x\right\} dx =$
- sum_{k=1}^infty frac {1}{k} {s choose k} (a-1)^k

which holds for general complex-valued s, for the suitably extended binomial coefficients. By choosing a=0, this formula gives both an integral and a series representation for a function that interpolates the harmonic numbers and extends a definition to the complex plane. This integral relation is easily derived by manipulating the Newton series

$sum_\left\{k=0\right\}^infty \left\{s choose k\right\} \left(-x\right)^k = \left(1-x\right)^s,$

which is just the Newton's generalized binomial theorem. The interpolating function is in fact just the digamma function:

$psi\left(s+1\right)+gamma = int_0^1 frac \left\{1-x^s\right\}\left\{1-x\right\} dx$

where $psi\left(x\right)$ is the digamma, and $gamma$ is the Euler-Mascheroni constant. The integration process may be repeated to obtain

$H_\left\{s,2\right\}=-sum_\left\{k=1\right\}^infty frac \left\{\left(-1\right)^k\right\}\left\{k\right\} \left\{s choose k\right\} H_k.$

## References

• Arthur T. Benjamin, Gregory O. Preston, Jennifer J. Quinn, , (2002) Mathematics Magazine, 75 (2) pp 95-103.
• Donald Knuth. The Art of Computer Programming, Volume 1: Fundamental Algorithms, Third Edition. Addison-Wesley, 1997. ISBN 0-201-89683-4. Section 1.2.7: Harmonic Numbers, pp.75–79.
• Ed Sandifer, (2003)
• Peter Paule and Carsten Schneider, , (2003) Adv. in Appl. Math. 31(2), pp. 359-378.
• Wenchang CHU, , (2004) The Electronic Journal of Combinatorics, 11, #N15.

Search another word or see Harmonic Numberon Dictionary | Thesaurus |Spanish