help-calc

08 Numbers and Units

Harmonic Progression Calculator & Formula

Card 08-0147 · Updated · Standard formula, shown below

The calculator on this page is switched off while it is checked. The formula is below, and the worked example shows how to do the sum by hand.

This calculator computes the nth term and the sum of the first n terms of a harmonic progression, given the first term (a), the common difference (d) of the corresponding arithmetic progression, and the number of terms (n). Enter those three values and you get the nth term and the partial sum instantly, with the formula and a worked example below.

Formula

A harmonic progression (HP) is a sequence of numbers whose reciprocals form an arithmetic progression (AP). In other words, if you take the reciprocal of each term in a harmonic progression, you get an arithmetic progression.

The general form of a harmonic progression is:

1/a, 1/(a+d), 1/(a+2d), 1/(a+3d), …

where:

  • a = first term of the corresponding arithmetic progression (the reciprocal of the first harmonic term)
  • d = common difference of the corresponding arithmetic progression
  • n = term number (1-based)

The nth term of the harmonic progression is:

Hn = 1 / (a + (n – 1) * d)

The sum of the first n terms of a harmonic progression does not have a simple closed form like arithmetic or geometric series. It is expressed using the digamma function (ψ), which is the logarithmic derivative of the gamma function:

Sn = (1/d) * [ψ(a/d + n) – ψ(a/d)]

For the special case where a = 1 and d = 1, the harmonic progression is the harmonic series: 1, 1/2, 1/3, 1/4, … and the sum of the first n terms is the nth harmonic number Hn = 1 + 1/2 + 1/3 + … + 1/n.

Worked Example

Let’s use the default values from the calculator: a = 1, d = 1, n = 5.

The harmonic progression is: 1/1, 1/2, 1/3, 1/4, 1/5, …

Step 1: Find the 5th term

H5 = 1 / (1 + (5 – 1) * 1) = 1 / (1 + 4) = 1/5 = 0.2

Step 2: Find the sum of the first 5 terms

S5 = 1/1 + 1/2 + 1/3 + 1/4 + 1/5 = 1 + 0.5 + 0.333333 + 0.25 + 0.2 = 2.283333

The calculator gives the sum as 2.283333 (rounded to 6 decimal places). The nth term is 0.2. Both match.

When to Use a Harmonic Progression

Harmonic progressions appear in many real-world situations, though they are less common than arithmetic or geometric progressions. Some classic examples include:

  • Music and acoustics: The harmonic series in music is a harmonic progression: the frequencies of overtones are integer multiples of the fundamental frequency. The wavelengths of these overtones form a harmonic progression.
  • Electrical circuits: The total resistance of parallel resistors is the reciprocal of the sum of reciprocals, which is a harmonic progression when the resistances are in an arithmetic progression.
  • Travel and speed: If you travel equal distances at speeds that form an arithmetic progression, the total time is proportional to the harmonic progression of those speeds.
  • Average rates: The harmonic mean is used to average rates (like speed over equal distances). A harmonic progression is a sequence of numbers whose harmonic mean is constant.
  • Architecture and design: The harmonic proportion was historically used in architecture and art to create pleasing ratios.

In practice, you might encounter a harmonic progression when dealing with any situation where you take reciprocals of an arithmetic sequence, such as the spacing of objects along a line that gets progressively denser.

How to Choose the Right Values

To use the calculator correctly, you need to identify the first term and the common difference of the arithmetic progression of reciprocals.

Example: Consider the sequence 1/2, 1/5, 1/8, 1/11, …

The reciprocals are 2, 5, 8, 11, … This is an arithmetic progression with first term 2 and common difference 3. So you would enter a = 2, d = 3, and n = the number of terms you want.

If you are given the harmonic progression in the form 1/a, 1/(a+d), 1/(a+2d), …, then a and d are directly visible. If you are given the reciprocals, just find the first term and common difference of that AP.

Common Mistakes and Misconceptions

Here are the most frequent errors people make when working with harmonic progressions:

  • Confusing a and d: Remember that a and d are the first term and common difference of the reciprocal sequence, not the harmonic sequence itself. For the sequence 1/2, 1/5, 1/8, a = 2, not 1/2.
  • Using the arithmetic sum formula: The sum of a harmonic progression is not n/2 * (first + last). That formula only works for arithmetic progressions. The digamma function is needed for harmonic progressions.
  • Assuming a harmonic progression converges: The harmonic series (a=1, d=1) diverges as n approaches infinity, even though the terms approach zero. This is a classic counterintuitive result in mathematics.
  • Rounding too early: When computing the sum, keep plenty of decimal places during intermediate steps. Rounding each term to 2 decimals before summing can lead to significant errors, especially for large n.
  • Forgetting that d must be positive: In a standard harmonic progression, d is positive (the reciprocals increase). If d is negative, the terms eventually become negative or undefined (when a + (n-1)d = 0). The calculator allows d = 0, which makes all terms equal to 1/a (a constant sequence), but that’s a degenerate case.

Limitations of the Formula

The digamma function formula for the sum is exact, but it has some practical limitations:

  • Large n: For very large n (thousands or more), the digamma function can be computed accurately, but the result may be huge. The harmonic series grows logarithmically, so the sum of 10,000 terms is about 9.79, which is not huge, but the individual terms become very small.
  • Non-integer a and d: The formula works for any positive real a and d, not just integers. For example, a = 0.5, d = 0.2 gives the sequence 1/0.5, 1/0.7, 1/0.9, … which is perfectly valid.
  • Negative terms: If a + (n-1)d becomes zero or negative, the term is undefined (division by zero) or negative. The calculator restricts inputs to positive a and d, but you should be aware that the formula only applies where the denominator is positive.
  • Numerical precision: The digamma function is computed using series expansions, which can lose precision for very small or very large arguments. For most practical purposes, the 6-decimal output is accurate.

Frequently Asked Questions

What is a harmonic progression in simple terms?

A harmonic progression is a sequence of numbers whose reciprocals form an arithmetic progression. For example, 1, 1/2, 1/3, 1/4, … is a harmonic progression because the reciprocals 1, 2, 3, 4, … form an arithmetic progression with common difference 1.

How is a harmonic progression different from an arithmetic or geometric progression?

In an arithmetic progression, each term is obtained by adding a constant difference. In a geometric progression, each term is obtained by multiplying by a constant ratio. In a harmonic progression, the reciprocals of the terms follow an arithmetic progression. So harmonic progressions are essentially arithmetic progressions in reciprocal space.

Why is the sum of a harmonic progression so complicated?

Unlike arithmetic and geometric series, there is no simple polynomial or exponential formula for the sum of a harmonic progression. The sum involves the digamma function, which is a special function that arises naturally from the harmonic series. For the special case of the harmonic series (1 + 1/2 + 1/3 + …), the sum is the harmonic number, which grows logarithmically.

Can a harmonic progression have a finite sum?

Yes, if the progression is finite (you only sum a fixed number of terms), the sum is always finite. But an infinite harmonic progression (with positive terms) always diverges, meaning the sum grows without bound. This is true even though the individual terms approach zero.

What is the harmonic mean and how does it relate?

The harmonic mean of a set of numbers is the reciprocal of the arithmetic mean of their reciprocals. For two numbers a and b, the harmonic mean is 2ab/(a+b). The harmonic mean is used to average rates. A harmonic progression is a sequence where each term is the harmonic mean of its neighbors, which is why it’s called “harmonic.”

Where do harmonic progressions appear in music?

In music, the harmonic series is the sequence of frequencies of overtones produced by a vibrating string or air column. The fundamental frequency f produces overtones at 2f, 3f, 4f, etc. The wavelengths of these overtones are proportional to 1/f, 1/(2f), 1/(3f), etc., which form a harmonic progression. This is the physical basis of musical harmony.

Related

Formula used
in a | First term (a) | - | 1 | 0.0001 | 1000000
in d | Common difference (d) | - | 1 | 0 | 1000000
in n | Number of terms (n) | - | 5 | 1 | 10000
out term | nth term | - | 1 / (a + (n - 1) * d) | 6
out sum | Sum of first n terms | - | (1 / d) * (digamma(a / d + n) - digamma(a / d)) | 6

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More on this shelf

The whole Numbers and Units shelf →