ArticleslgStudy

mathematics

Harmonic number

Harmonic number is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Harmonic number rather than just read about it. In short: 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 number — main illustration
Harmonic number — illustration

Key takeaways

  • Harmonic number belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Harmonic number to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Harmonic number from memory before moving on to harder problems.

Reference excerpt

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 ∫0xlog⁡y dy=xlog⁡x−x and ∫0x(log⁡y)2 dy=x(log⁡x)2−2xlog⁡x+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−ln⁡n)=γ, where γ ≈ 0.5772156649 is the Euler–Mascheroni constant. The corresponding asymptotic expansion is Hn∼ln⁡n+γ+12n−∑k=1∞B2k2kn2k=ln⁡n+γ+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)+γ+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. 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+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 γ 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+(log⁡Hn)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.

Illustrations

Harmonic number: The harmonic number Hn with n=⌊x⌋ (red line) with its asymptotic limit γ+ln⁡(x) (blue line) where γ is the Euler–Mascheroni constant.
The harmonic number Hn with n=⌊x⌋ (red line) with its asymptotic limit γ+ln⁡(x) (blue line) where γ is the Euler–Mascheroni constant.
Harmonic number: Graph demonstrating a connection between harmonic numbers and the natural logarithm. The harmonic number Hn can be interpreted as a Riemann sum of the integral: ∫1n+1dxx=ln⁡(n+1).
Graph demonstrating a connection between harmonic numbers and the natural logarithm. The harmonic number Hn can be interpreted as a Riemann sum of the integral: ∫1n+1dxx=ln⁡(n+1).
Harmonic number: Block-stacking problem: the maximum horizontal overhang of a stack of N blocks is Hn−1 / 2 times the length of a block
Block-stacking problem: the maximum horizontal overhang of a stack of N blocks is Hn−1 / 2 times the length of a block

Worked examples

Example 1 — a first encounter with Harmonic number

Start with the simplest possible case. Write down what Harmonic number claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Harmonic number before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Harmonic number ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Harmonic number

In research
Harmonic number appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Harmonic number in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Harmonic number is common in secondary-school and first-year university syllabi. It links to neighbouring topics Number theory, so understanding it makes those chapters shorter.
In everyday life
Look for Harmonic number outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Harmonic number” →

How to study Harmonic number in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Harmonic number means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Harmonic number out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Harmonic number in simple terms?

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 a…

Why does Harmonic number matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Harmonic number?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Harmonic number.

Tags

  • Number theory

Keep exploring