Harmonic number

From testwiki
Jump to navigation Jump to search

Template:Short description Template:Other uses Template:Use American English

The harmonic number Hn with n=⌊x⌋ (red line) with its asymptotic limit γ+ln⁡(x) (blue line) where γ is the Euler–Mascheroni constant.

In mathematics, the Template:Mvar-th harmonic number is the sum of the reciprocals of the first Template:Mvar natural numbers:[1] Hn=1+12+13+⋯+1n=∑k=1n1k.

Starting from Template:Math, the sequence of harmonic numbers begins: 1,32,116,2512,13760,…

Harmonic numbers are related to the harmonic mean in that the Template:Mvar-th harmonic number is also Template:Mvar times the reciprocal of the harmonic mean of the first Template:Mvar 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[2]Template:Rp 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 Template:Mvar most-valuable items is proportional to the Template:Mvar-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 Template:Math in the numerator and denominator of the harmonic numbers written as a fraction shows that, except for the case Template:Math, the harmonic numbers have even denominators and thus are never integers.[3] The Bertrand-Chebyshev theorem can also be used to show that the denominator of the Template:Mvarth harmonic number is divisible by the largest prime not larger than Template:Math.

List

The first 40 harmonic numbers, Hn
n
Hn a fraction decimal Hn relative size
1 1 Template:Figure spaceTemplate:Bartable
2 3 / 2 Template:Figure spaceTemplate:Bartable
3 11 / 6 ~Template:Bartable
4 25 / 12 ~Template:Bartable
5 137 / 60 ~Template:Bartable
6 49 / 20 Template:Figure spaceTemplate:Bartable
7 363 / 140 ~Template:Bartable
8 761 / 280 ~Template:Bartable
9 7 129 / 2 520 ~Template:Bartable
10 7 381 / 2 520 ~Template:Bartable
11 83 711 / 27 720 ~Template:Bartable
12 86 021 / 27 720 ~Template:Bartable
13 1 145 993 / 360 360 ~Template:Bartable
14 1 171 733 / 360 360 ~Template:Bartable
15 1 195 757 / 360 360 ~Template:Bartable
16 2 436 559 / 720 720 ~Template:Bartable
17 42 142 223 / 12 252 240 ~Template:Bartable
18 14 274 301 / 4 084 080 ~Template:Bartable
19 275 295 799 / 77 597 520 ~Template:Bartable
20 55 835 135 / 15 519 504 ~Template:Bartable
21 18 858 053 / 5 173 168 ~Template:Bartable
22 19 093 197 / 5 173 168 ~Template:Bartable
23 444 316 699 / 118 982 864 ~Template:Bartable
24 1 347 822 955 / 356 948 592 ~Template:Bartable
25 34 052 522 467 / 8 923 714 800 ~Template:Bartable
26 34 395 742 267 / 8 923 714 800 ~Template:Bartable
27 312 536 252 003 / 80 313 433 200 ~Template:Bartable
28 315 404 588 903 / 80 313 433 200 ~Template:Bartable
29 9 227 046 511 387 / 2 329 089 562 800 ~Template:Bartable
30 9 304 682 830 147 / 2 329 089 562 800 ~Template:Bartable
31 290 774 257 297 357 / 72 201 776 446 800 ~Template:Bartable
32 586 061 125 622 639 / 144 403 552 893 600 ~Template:Bartable
33 53 676 090 078 349 / 13 127 595 717 600 ~Template:Bartable
34 54 062 195 834 749 / 13 127 595 717 600 ~Template:Bartable
35 54 437 269 998 109 / 13 127 595 717 600 ~Template:Bartable
36 54 801 925 434 709 / 13 127 595 717 600 ~Template:Bartable
37 2 040 798 836 801 833 / 485 721 041 551 200 ~Template:Bartable
38 2 053 580 969 474 233 / 485 721 041 551 200 ~Template:Bartable
39 2 066 035 355 155 033 / 485 721 041 551 200 ~Template:Bartable
40 2 078 178 381 193 813 / 485 721 041 551 200 ~Template:Bartable

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 ∫0xlog⁡y dy=xlog⁡x−x and ∫0x(log⁡y)2 dy=x(log⁡x)2−2xlog⁡x+2x.

Identities involving Template:Pi

There are several infinite summations involving harmonic numbers and powers of [[Pi|Template:Pi]]:[4]Template:Better source ∑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[5] 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 Template:Math, another expression for Template:Math 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.

Graph demonstrating a connection between harmonic numbers and the natural logarithm. The harmonic number Template:Math can be interpreted as a Riemann sum of the integral: ∫1n+1dxx=ln⁡(n+1).

The Template:Mvarth harmonic number is about as large as the natural logarithm of Template:Mvar. The reason is that the sum is approximated by the integral ∫1n1xdx, whose value is Template:Math.

The values of the sequence Template:Math decrease monotonically towards the limit limn→∞(Hn−ln⁡n)=γ, where Template:Math is the Euler–Mascheroni constant. The corresponding asymptotic expansion is Hn∼ln⁡n+γ+12n−∑k=1∞B2k2kn2k=ln⁡n+γ+12n−112n2+1120n4−⋯, where Template:Math are the Bernoulli numbers.

Template:Reflist

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)+γ+ln⁡z=Γ(0,z)+γ+ln⁡z 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.[6] 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[7] 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[8] 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[9] 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[10] showed that Jp has zero asymptotic density, while Bing-Ling Wu and Yong-Gao Chen[11] proved that the number of elements of Jp not exceeding x is at most 3x23+125log⁡p, 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 Template:Mvar using the limit introduced earlier: γ=limn→∞(Hn−ln⁡(n)), although γ=limn→∞(Hn−ln⁡(n+12)) converges more quickly.

In 2002, Jeffrey Lagarias proved[12] that the Riemann hypothesis is equivalent to the statement that σ(n)≤Hn+(log⁡Hn)eHn, is true for every integer Template:Math with strict inequality if Template:Math; here Template:Math denotes the sum of the divisors of Template:Mvar.

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).[13]

Generalizations

Generalized harmonic numbers

The nth generalized harmonic number of order m is given by Hn,m=∑k=1n1km.

(In some sources, this may also be denoted by Hn(m) or Hm(n).)

The special case m = 0 gives Hn,0=n. The special case m = 1 reduces to the usual harmonic number: Hn,1=Hn=∑k=1n1k.

The limit of Hn,m as Template:Math is finite if Template:Math, with the generalized harmonic number bounded by and converging to the Riemann zeta function limn→∞Hn,m=ζ(m).

The 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) is, for n=1, 2, ... :

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, ... Template:OEIS

The related sum ∑k=1nkm occurs in the study of Bernoulli numbers; the harmonic numbers also appear in the study of Stirling numbers.

Some integrals of generalized harmonic numbers are ∫0aHx,2dx=aπ26−Ha and ∫0aHx,3dx=aA−12Ha,2, where A is Apéry's constant ζ(3), and ∑k=1nHk,m=(n+1)Hn,m−Hn,m−1 for m≥0.

Every generalized harmonic number of order m can be written as a function of harmonic numbers of order m−1 using Hn,m=∑k=1n−1Hk,m−1k(k+1)+Hn,m−1n   for example: H4,3=H1,21⋅2+H2,22⋅3+H3,23⋅4+H4,24

A generating function for the generalized harmonic numbers is ∑n=1∞znHn,m=Lim(z)1−z, where Lim(z) is the polylogarithm, and Template:Math. The generating function given above for Template:Math is a special case of this formula.

A fractional argument for generalized harmonic numbers can be introduced as follows:

For every p,q>0 integer, and m>1 integer or not, we have from polygamma functions: Hq/p,m=ζ(m)−pm∑k=1∞1(q+pk)m where ζ(m) is the Riemann zeta function. The relevant recurrence relation is Ha,m=Ha−1,m+1am. Some special values areH14,2=16−56π2−8GH12,2=4−π23H34,2=169−56π2+8GH14,3=64−π3−27ζ(3)H12,3=8−6ζ(3)H34,3=(43)3+π3−27ζ(3)where G is Catalan's constant. In the special case that p=1, we get Hn,m=ζ(m,1)−ζ(m,n+1),


where ζ(m,n) is the Hurwitz zeta function. This relationship is used to calculate harmonic numbers numerically.

Multiplication formulas

The multiplication theorem applies to harmonic numbers. Using polygamma functions, we obtain H2x=12(Hx+Hx−12)+ln⁡2H3x=13(Hx+Hx−13+Hx−23)+ln⁡3, or, more generally, Hnx=1n(Hx+Hx−1n+Hx−2n+⋯+Hx−n−1n)+ln⁡n.

For generalized harmonic numbers, we have H2x,2=12(ζ(2)+12(Hx,2+Hx−12,2))H3x,2=19(6ζ(2)+Hx,2+Hx−13,2+Hx−23,2), where ζ(n) is the Riemann zeta function.

Hyperharmonic numbers

The next generalization was discussed by J. H. Conway and R. K. Guy in their 1995 book The Book of Numbers.[2]Template:Rp Let Hn(0)=1n. Then the nth hyperharmonic number of order r (r>0) is defined recursively as Hn(r)=∑k=1nHk(r−1). In particular, Hn(1) is the ordinary harmonic number Hn.

Roman harmonic numbers

The Roman harmonic numbers,[14] named after Steven Roman, were introduced by Daniel Loeb and Gian-Carlo Rota in the context of a generalization of umbral calculus with logarithms.[15] There are many possible definitions, but one of them, for n,k≥0, iscn(0)=1,andcn(k+1)=∑i=1nci(k)i.Of course,cn(1)=Hn.

If n≠0, they satisfycn(k+1)−cn(k)n=cn−1(k+1).Closed form formulas arecn(k)=n!(−1)ks(−n,k),where s(−n,k) is Stirling numbers of the first kind generalized to negative first argument, andcn(k)=∑j=1n(nj)(−1)j−1jk,which was found by Donald Knuth.

In fact, these numbers were defined in a more general manner using Roman numbers and Roman factorials, that include negative values for n. This generalization was useful in their study to define Harmonic logarithms.

Harmonic numbers for real and complex values

Template:Unreferenced section The formulae given above, Hx=∫011−tx1−tdt=∑k=1∞(xk)(−1)k−1k 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 Hx=ψ(x+1)+γ, where Template:Math is the digamma function, and Template:Math is the Euler–Mascheroni constant. The integration process may be repeated to obtain Hx,2=∑k=1∞(−1)k−1k(xk)Hk.

The Taylor series for the harmonic numbers is Hx=∑k=2∞(−1)kζ(k)xk−1 for |x|<1 which comes from the Taylor series for the digamma function (ζ is the Riemann zeta function).

Alternative, asymptotic formulation

There is an asymptotic formulation that gives the same result as the analytic continuation of the integral just described. When seeking to approximate Template:Math for a complex number Template:Math, it is effective to first compute Template:Math for some large integer Template:Math. Use that as an approximation for the value of Template:Math. Then use the recursion relation Template:Math backwards Template:Math times, to unwind it to an approximation for Template:Math. Furthermore, this approximation is exact in the limit as Template:Math goes to infinity.

Specifically, for a fixed integer Template:Math, it is the case that limm→∞[Hm+n−Hm]=0.

If Template:Math is not an integer then it is not possible to say whether this equation is true because we have not yet (in this section) defined harmonic numbers for non-integers. However, we do get a unique extension of the harmonic numbers to the non-integers by insisting that this equation continue to hold when the arbitrary integer Template:Math is replaced by an arbitrary complex number Template:Math,

limm→∞[Hm+x−Hm]=0. Swapping the order of the two sides of this equation and then subtracting them from Template:Math gives Hx=limm→∞[Hm−(Hm+x−Hx)]=limm→∞[(∑k=1m1k)−(∑k=1m1x+k)]=limm→∞∑k=1m(1k−1x+k)=x∑k=1∞1k(x+k).

This infinite series converges for all complex numbers Template:Math except the negative integers, which fail because trying to use the recursion relation Template:Math backwards through the value Template:Math involves a division by zero. By this construction, the function that defines the harmonic number for complex values is the unique function that simultaneously satisfies (1) Template:Math, (2) Template:Math for all complex numbers Template:Math except the non-positive integers, and (3) Template:Math for all complex values Template:Math.

This last formula can be used to show that ∫01Hxdx=γ, where Template:Math is the Euler–Mascheroni constant or, more generally, for every Template:Math we have: ∫0nHxdx=nγ+ln⁡(n!).

Special values for fractional arguments

There are the following special analytic values for fractional arguments between 0 and 1, given by the integral Hα=∫011−xα1−xdx.

More values may be generated from the recurrence relation Hα=Hα−1+1α, or from the reflection relation H−α−Hα−1=πcot⁡(πα).

For example: H12=2−2ln⁡2H13=3−π23−32ln⁡3H23=32+π23−32ln⁡3H14=4−π2−3ln⁡2H15=5−π21+25−54ln⁡5−52ln⁡(1+52)H34=43+π2−3ln⁡2H16=6−32π−2ln⁡2−32ln⁡3H18=8−1+22π−4ln⁡2−12(ln⁡(2+2)−ln⁡(2−2))H112=12−(1+32)π−3ln⁡2−32ln⁡3+3ln⁡(2−3)

Which are computed via Gauss's digamma theorem, which essentially states that for positive integers p and q with p < q Hpq=qp+2∑k=1⌊q−12⌋cos⁡(2πpkq)ln⁡(sin⁡(πkq))−π2cot⁡(πpq)−ln⁡(2q)

Relation to the Riemann zeta function

Some derivatives of fractional harmonic numbers are given by dnHxdxn=(−1)n+1n![ζ(n+1)−Hx,n+1]dnHx,2dxn=(−1)n+1(n+1)![ζ(n+2)−Hx,n+2]dnHx,3dxn=(−1)n+112(n+2)![ζ(n+3)−Hx,n+3].

And using Maclaurin series, we have for x < 1 that Hx=∑n=1∞(−1)n+1xnζ(n+1)Hx,2=∑n=1∞(−1)n+1(n+1)xnζ(n+2)Hx,3=12∑n=1∞(−1)n+1(n+1)(n+2)xnζ(n+3).

For fractional arguments between 0 and 1 and for a > 1, H1/a=1a(ζ(2)−1aζ(3)+1a2ζ(4)−1a3ζ(5)+⋯)H1/a,2=1a(2ζ(3)−3aζ(4)+4a2ζ(5)−5a3ζ(6)+⋯)H1/a,3=12a(2⋅3ζ(4)−3⋅4aζ(5)+4⋅5a2ζ(6)−5⋅6a3ζ(7)+⋯).

See also

Notes

Template:Reflist

References

Template:PlanetMath attribution