Harmonic Number Calculator

Calculate harmonic numbers and explore the harmonic series with step-by-step solutions

Calculate Harmonic Numbers

Enter any positive number (integers give exact results, decimals use approximation)

Harmonic Number Result

H(5) = 2.283333
Exact value
= 137/60
Fraction form
ln(n) + γ ≈ 2.186654
Natural log approximation
Error: 9.6680%

Definition: H(n) = 1/1 + 1/2 + 1/3 + ... + 1/n = Σ(k=1 to n) 1/k

Calculation: Direct summation of 5 terms

Euler-Mascheroni constant: γ ≈ 0.5772156649

Step-by-Step Calculation

1/1
1.0000
1/2
0.5000
1/3
0.3333
1/4
0.2500
1/5
0.2000

Sum Formula:

H(5) = 1 + 1/2 + 1/3 + 1/4 + 1/5
= 2.283333

Partial Sums Growth

H(1)
1.0000
H(2)
1.5000
H(3)
1.8333
H(4)
2.0833
H(5)
2.2833

Notice how the harmonic series grows slowly but without bound

Harmonic Properties

H₁ = 1 is the only integer harmonic number

Harmonic series diverges (grows infinitely)

H(n) ≈ ln(n) + γ for large n

Growth rate is logarithmic

Related to natural logarithm and Riemann zeta function

Famous Harmonic Numbers

H₁1
H₂1.5
H₃1.833...
H₄2.083...
H₅2.283...
H₁₀2.929...
H₁₀₀5.187...

Key Constants

Euler-Mascheroni (γ)
0.5772156649
lim(n→∞) [H(n) - ln(n)]
Natural log of 2
0.6931471806
ln(2) ≈ 0.693147...
π² / 6
1.6449340668
Sum of 1/n² series

Understanding Harmonic Numbers

What are Harmonic Numbers?

The nth harmonic number H(n) is the sum of the reciprocals of the first n natural numbers. It represents the partial sum of the harmonic series up to the nth term.

Mathematical Definition

H(n) = 1/1 + 1/2 + 1/3 + ... + 1/n

= Σ(k=1 to n) 1/k

Key Properties

  • H(1) = 1 is the only integer harmonic number
  • The sequence grows without bound but very slowly
  • Growth rate is approximately logarithmic

Asymptotic Approximation

For large values of n, harmonic numbers can be approximated using the natural logarithm and the Euler-Mascheroni constant.

H(n) ≈ ln(n) + γ + 1/(2n)

where γ ≈ 0.5772... (Euler-Mascheroni constant)

Applications

  • 📊Analysis of algorithms (average case complexity)
  • 🎵Music theory and harmonic series
  • 🧮Number theory and analytic number theory
  • 📈Probability theory and statistical analysis
  • 🔬Physics (quantum mechanics, statistical mechanics)

Historical Note

Harmonic numbers were studied by ancient mathematicians and are closely related to the divergence of the harmonic series, first proven by Nicole Oresme in the 14th century.