In mathematics, the n-th harmonic number is the sum of the reciprocals of the first n natural numbers: Hn=1+12+13+⋯+1n=∑k=1n1k. Starting from n = 1, the sequence of harmonic numbers begins: 1,32,116,2512,13760,… 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 have been studied since 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 regarding the long tail and the theory of network value. Counting the number of factors 2 in the numerator and denominator of the harmonic numbers written as a fraction shows that, except for the case n = 1, the harmonic numbers have even denominators and thus are never integers. The Bertrand-Chebyshev theorem can also be used to show that the denominator of the nth harmonic number is divisible by the largest prime not larger than n.
List
Identities involving harmonic numbers By definition, the harmonic numbers satisfy the recurrence relation Hn+1=Hn+1n+1. The harmonic numbers are connected to the Stirling numbers of the first kind by the relation Hn=1n![n+12]. The harmonic numbers satisfy the series identities ∑k=1nHk=(n+1)Hn−n and ∑k=1nHk2=(n+1)Hn2−(2n+1)Hn+2n. These two results are closely analogous to the corresponding integral results ∫0xlogy dy=xlogx−x and ∫0x(logy)2 dy=x(logx)2−2xlogx+2x.
Identities involving π There are several infinite summations involving harmonic numbers and powers of π:
∑n=1∞Hnn⋅2n=π212∑n=1∞Hn2n2=17360π4∑n=1∞Hn2(n+1)2=11360π4∑n=1∞Hnn3=π472
Calculation An integral representation given by Euler is Hn=∫011−xn1−xdx. The equality above is straightforward by the simple algebraic identity 1−xn1−x=1+x+⋯+xn−1. Using the substitution x = 1 − u, another expression for Hn is Hn=∫011−xn1−xdx=∫011−(1−u)nudu=∫01[∑k=1n(nk)(−u)k−1]du=∑k=1n(nk)∫01(−u)k−1du=∑k=1n(nk)(−1)k−1k.
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 ∫1n1xdx, whose value is ln n. The values of the sequence Hn − ln n decrease monotonically towards the limit limn→∞(Hn−lnn)=γ, where γ ≈ 0.5772156649 is the Euler–Mascheroni constant. The corresponding asymptotic expansion is Hn∼lnn+γ+12n−∑k=1∞B2k2kn2k=lnn+γ+12n−112n2+1120n4−⋯, where Bk are the Bernoulli numbers.
Generating functions A generating function for the harmonic numbers is ∑n=1∞znHn=−ln(1−z)1−z, where ln(z) is the natural logarithm. An exponential generating function is ∑n=1∞znn!Hn=ez∑k=1∞(−1)k−1kzkk!=ezEin(z) where Ein(z) is the entire exponential integral. The exponential integral may also be expressed as Ein(z)=E1(z)+γ+lnz=Γ(0,z)+γ+lnz where Γ(0, z) is the incomplete gamma function.
Arithmetic properties The harmonic numbers have several interesting arithmetic properties. It is well-known that Hn is an integer if and only if n=1, a result often attributed to Theisinger. Indeed, using 2-adic valuation, it is not difficult to prove that for n≥2 the numerator of Hn is an odd number while the denominator of Hn is an even number. More precisely, Hn=12⌊log2(n)⌋anbn with some odd integers an and bn. As a consequence of Wolstenholme's theorem, for any prime number p≥5 the numerator of Hp−1 is divisible by p2. Furthermore, Eisenstein proved that for all odd prime number p it holds H(p−1)/2≡−2qp(2)(modp) where qp(2)=(2p−1−1)/p is a Fermat quotient, with the consequence that p divides the numerator of H(p−1)/2 if and only if p is a Wieferich prime. In 1991, Eswarathasan and Levine defined Jp as the set of all positive integers n such that the numerator of Hn is divisible by a prime number p. They proved that {p−1,p2−p,p2−1}⊆Jp for all prime numbers p≥5, and they defined harmonic primes to be the primes p such that Jp has exactly 3 elements. Eswarathasan and Levine also conjectured that Jp is a finite set for all primes p, and that there are infinitely many harmonic primes. Boyd verified that Jp is finite for all prime numbers up to p=547 except 83, 127, and 397; and he gave a heuristic suggesting that the density of the harmonic primes in the set of all primes should be 1/e. Sanna showed that Jp has zero asymptotic density, while Bing-Ling Wu and Yong-Gao Chen proved that the number of elements of Jp not exceeding x is at most 3x23+125logp, for all x≥1.
Applications
The harmonic numbers appear in several calculation formulas, such as the digamma function ψ(n)=Hn−1−γ. 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: γ=limn→∞(Hn−ln(n)), although γ=limn→∞(Hn−ln(n+12)) converges more quickly. In 2002, Jeffrey Lagarias proved that the Riemann hypothesis is equivalent to the statement that σ(n)≤Hn+(logHn)eHn, 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 on L2([−1,1]) λφ(x)=∫−11φ(x)−φ(y)|x−y|dy are given by λ=2Hn, where by convention H0=0, and the corresponding eigenfunctions are given by the Legendre polynomials φ(x)=Pn(x).
Generalizations
… excerpt ends here. Continue reading the full article.



