Harmonic Number Calculator
Find any harmonic number Hₙ.
Result
How to use
- Enter your values in the fields above.
- Press Calculate to see your result instantly.
- Use the Share button to copy a link to your result.
About this calculator
The nth harmonic number is the sum of reciprocals Hₙ = 1 + ½ + ⅓ + … + 1/n. It grows without bound but very slowly, approximately Hₙ ≈ ln(n) + γ, where γ ≈ 0.5772 is the Euler–Mascheroni constant — a fact famously counter-intuitive to students seeing the harmonic series diverge for the first time despite its terms shrinking to zero.
Computer scientists rely on harmonic numbers to analyze algorithm complexity — they appear in the average-case running time of quicksort, the expected number of trials in the coupon collector's problem, and the analysis of hashing and randomized algorithms. Mathematics students and educators also use them to illustrate series convergence versus divergence. Enter n to get Hₙ to several decimal places.
Was this helpful?
Popular calculators
Loan Calculator
Monthly payment, total interest and full amortization schedule.
Percentage Calculator
Percent change, percent of, and ratio calculations.
Discount Calculator
Calculate final price, savings, and discount amount.
BMI Calculator
Body mass index from height and weight (metric or imperial).
Age Calculator
Compute your exact age in years, months and days from a birth date.
Compound Interest Calculator
Calculate the final amount and interest earned with compounding.
All Calculators
No calculators found
Comments (0)