Part of the series

Several example codes

~1 min read • Updated Oct 11, 2025

Mathematical Expression

The harmonic series is defined as:




\[
\sum_{n=1}^{\infty} \frac{1}{n} = 1 + \frac{1}{2} + \frac{1}{3} + \frac{1}{4} + \cdots
\]



Concept Overview

The harmonic series is one of the most famous examples of a divergent infinite series in mathematics.
Although the terms 1/n become smaller as n increases, the sum of the series grows without bound.
This means:

  • The series does not converge to a finite value
  • It serves as a classic counterexample in calculus and analysis

Why It Diverges

The divergence of the harmonic series can be proven using several methods, including:

  • Integral Test: Comparing the series to the integral of 1/x from 1 to ∞
  • Grouping Terms: Showing that each group of terms adds up to a value greater than a constant

Applications and Insights

Despite its divergence, the harmonic series appears in many areas of mathematics and physics:
- In number theory, it relates to the distribution of prime numbers
- In computer science, it arises in algorithm analysis (e.g., expected comparisons in sorting)
- In music theory, it models harmonic frequencies


Fun Fact

The harmonic series grows very slowly. For example, the sum of the first 100 terms is only about 5.19.
Yet, no matter how far you go, the total keeps increasing—just never fast enough to settle down.


Written & researched by Dr. Shahin Siami