Harmonic Number — Definition, Formula & Examples
The th harmonic number, written , is the sum of the reciprocals of the first positive integers: . Harmonic numbers grow without bound as increases, but they do so very slowly.
For each positive integer , the th harmonic number is defined as . The sequence is strictly increasing and unbounded, meaning . For large , harmonic numbers satisfy the asymptotic relation , where is the Euler–Mascheroni constant.
Key Formula
Where:
- = The $n$th harmonic number
- = A positive integer indicating how many reciprocal terms to sum
- = Index of summation running from 1 to $n$
How It Works
To compute , simply add the fractions . Each successive harmonic number builds on the previous one: . Because each added term is positive, the sequence is strictly increasing. However, the terms shrink toward zero, so growth is extremely slow — you need over terms before exceeds 100.
Worked Example
Problem: Compute the 5th harmonic number, .
Write out the sum: List the reciprocals of the first 5 positive integers.
Find a common denominator: The least common denominator of 1, 2, 3, 4, and 5 is 60.
Add the fractions: Sum the numerators over the common denominator.
Answer:
Why It Matters
Harmonic numbers appear throughout calculus and computer science. In algorithm analysis, the average number of comparisons in quicksort involves . They also provide the classic proof that the harmonic series diverges, a foundational result in any study of infinite series.
Common Mistakes
Mistake: Assuming the harmonic series converges because its terms approach zero.
Correction: A series can diverge even when its terms tend to zero. The harmonic series is the most famous example — use the comparison test or the integral test to confirm divergence.
