The Harmonic Series Is Everywhere And Nobody Talks About It Right
The sum of 1/n from n=1 to infinity diverges. That's the short answer. It grows without bound, just extremely slowly. I've seen people treat this as a neat party fact and move on, but the divergence has real consequences in algorithm analysis, probability, and even numerical computing when you're actually working with these sums. Let me explain how this works in practice and what you need to watch out for. The harmonic series is defined as H(n) = 1 + 1/2 + 1/3 + ... + 1/n. The key insight is that no matter how large a number you pick, you can always find enough terms to exceed it. The classical proof groups terms cleverly: you have 1, then 1/2, then (1/3 + 1/4) which is greater than 1/4 + 1/4 = 1/2, then (1/5 + 1/6 + 1/7 + 1/8) which exceeds 4/8 = 1/2, and this pattern continues indefinitely. Each group adds at least 1/2, so the sum keeps growing forever. What people miss is the connection to natural logarithms. The partial sum H(n) approximates ln(n) + where is the Euler-Mascheroni constant, approximately 0.57721. This approximation gets better as n grows, and the error term shrinks like 1/(2n). So H(1000) is roughly ln(1000) + 0.57721, which works out to about 7.485. You can verify this easily enough on any calculator.
The Bizarre Beauty Of Infinity Unraveling The Mystery Of The Infinite Sum Of 1n
Here is where things get interesting and where beginners routinely make mistakes. The series diverges, but the divergence is absurdly slow. H(10^6) is only about 14.39. H(10^9) is roughly 21.3. To reach a sum of 100, you need about e^(100 - ) terms, which is somewhere around 1.5 × 10^43. That is a number so large it has no meaningful physical interpretation. This is why intuition fails so badly here. I learned this the hard way while implementing a sampling algorithm for a Monte Carlo project. The expected number of trials involved a harmonic sum, and I initially thought "it converges quickly, no problem." The sum I needed was H(50000) which should have been manageable, but when I wrote a straightforward loop adding 1/i in floating point, the result was wrong by about 0.003. That seemed tiny until I realized the entire algorithm's accuracy depended on that precision. The issue is that floating-point addition loses significance when you add very small numbers to a progressively larger running sum. The fix was switching to Kahan summation, which tracks and compensates for lost precision at each step. With that change, H(50000) came out correct to machine epsilon, and the sampling error dropped to acceptable levels.
Practical Applications
One common place you encounter this is in analyzing algorithms. QuickSort's expected number of comparisons is roughly 2n·ln(n), and that ln(n) term comes directly from harmonic sums. If you're doing runtime analysis and you see a nested loop structure where the inner loop runs n, then n-1, then n-2 times, the total is O(n^2). But if the inner loop runs with a stride like 1/i, you're looking at a harmonic series and the complexity drops to O(n·log(n)). This distinction matters when you're choosing between algorithm implementations and your input sizes are large enough that the logarithmic factor becomes relevant. Another application shows up in probability theory with the coupon collector problem. If there are n distinct items and you draw with replacement, the expected number of draws to collect all of them is n·H(n). For n=52 (a standard deck), that's about 52 × 4.518 = 234.9 draws on average. The variance is also calculable and involves generalized harmonic numbers. If you're building a simulation for this, you need to be careful about how you compute those partial sums. Adding terms from smallest to largest rather than largest to smallest can improve accuracy noticeably.
Get the Full Details

Common Pitfalls
The biggest trap is assuming that because the terms approach zero, the sum must converge. This is wrong, and it's worth internalizing the counterexample clearly. The terms 1/n do go to zero, but they don't go to zero fast enough. Compare this to the sum of 1/n^2, which converges to ^2/6. The difference between exponent 1 and exponent 2 changes everything. The p-series test tells us that sum of 1/n^p converges if and only if p > 1. At p = 1 exactly, we're right on the boundary and the series diverges. A subtler issue comes up when you try to rearrange the terms. The Riemann rearrangement theorem says that a conditionally convergent series can be rearranged to sum to any value you want. The harmonic series isn't conditionally convergent—it diverges to positive infinity—but a related series, the alternating harmonic series 1 - 1/2 + 1/3 - 1/4 + ..., does converge to ln(2). And that one can be rearranged to converge to different values. If you're ever manipulating series in code or proofs, don't assume rearrangement is safe unless you know the series is absolutely convergent. The practical workaround for numerical computation is straightforward: use the asymptotic expansion H(n) ln(n) + + 1/(2n) - 1/(12n^2) + 1/(120n^4) for large n. When n exceeds a few thousand, this gives you the answer directly without any summation loop, and it's accurate to well beyond double-precision requirements. I switch to this formula whenever n is above 10000 in my own work. Below that threshold, a simple loop with Kahan summation is fast enough and equally accurate.