# Harmonic series (mathematics)

Last updated

In mathematics, the harmonic series is the divergent infinite series

## Contents

${\displaystyle \sum _{n=1}^{\infty }{\frac {1}{n}}=1+{\frac {1}{2}}+{\frac {1}{3}}+{\frac {1}{4}}+{\frac {1}{5}}+\cdots .}$

Its name derives from the concept of overtones, or harmonics in music: the wavelengths of the overtones of a vibrating string are 1/2, 1/3, 1/4, etc., of the string's fundamental wavelength. Every term of the series after the first is the harmonic mean of the neighboring terms; the phrase harmonic mean likewise derives from music.

## History

The divergence of the harmonic series was first proven in the 14th century by Nicole Oresme, [1] but this achievement fell into obscurity. Proofs were given in the 17th century by Pietro Mengoli [2] and by Johann Bernoulli, [3] the latter proof published and popularized by his brother Jacob Bernoulli. [4] [5]

Historically, harmonic sequences have had a certain popularity with architects. This was so particularly in the Baroque period, when architects used them to establish the proportions of floor plans, of elevations, and to establish harmonic relationships between both interior and exterior architectural details of churches and palaces. [6]

## Divergence

There are several well-known proofs of the divergence of the harmonic series. A few of them are given below.

### Comparison test

One way to prove divergence is to compare the harmonic series with another divergent series, where each denominator is replaced with the next-largest power of two:

{\displaystyle {\begin{alignedat}{8}1&+{\frac {1}{2}}&&+{\frac {1}{3}}&&+{\frac {1}{4}}&&+{\frac {1}{5}}&&+{\frac {1}{6}}&&+{\frac {1}{7}}&&+{\frac {1}{8}}&&+{\frac {1}{9}}&&+\cdots \\[5pt]{}\geq 1&+{\frac {1}{2}}&&+{\frac {1}{\color {red}{\mathbf {4} }}}&&+{\frac {1}{4}}&&+{\frac {1}{\color {red}{\mathbf {8} }}}&&+{\frac {1}{\color {red}{\mathbf {8} }}}&&+{\frac {1}{\color {red}{\mathbf {8} }}}&&+{\frac {1}{8}}&&+{\frac {1}{\color {red}{\mathbf {16} }}}&&+\cdots \end{alignedat}}}

Each term of the harmonic series is greater than or equal to the corresponding term of the second series, and therefore the sum of the harmonic series must be greater than or equal to the sum of the second series. However, the sum of the second series is infinite:

{\displaystyle {\begin{aligned}&1+\left({\frac {1}{2}}\right)+\left({\frac {1}{4}}+{\frac {1}{4}}\right)+\left({\frac {1}{8}}+{\frac {1}{8}}+{\frac {1}{8}}+{\frac {1}{8}}\right)+\left({\frac {1}{16}}+\cdots +{\frac {1}{16}}\right)+\cdots \\[5pt]{}={}&1+{\frac {1}{2}}+{\frac {1}{2}}+{\frac {1}{2}}+{\frac {1}{2}}+\cdots =\infty .\end{aligned}}}

(Here, "${\displaystyle =\infty }$" is merely a notational convention to indicate that the partial sums of the series grow without bound.)

It follows (by the comparison test) that the sum of the harmonic series must be infinite as well. More precisely, the comparison above proves that

${\displaystyle \sum _{n=1}^{2^{k}}{\frac {1}{n}}\geq 1+{\frac {k}{2}}}$

for every positive integer k.

This proof, proposed by Nicole Oresme in around 1350, is considered by many in the mathematical community[ by whom? ] to be a high point of medieval mathematics. It is still a standard proof taught in mathematics classes today. Cauchy's condensation test is a generalization of this argument.

### Integral test

It is possible to prove that the harmonic series diverges by comparing its sum with an improper integral. Specifically, consider the arrangement of rectangles shown in the figure to the right. Each rectangle is 1 unit wide and 1/n units high, so the total area of the infinite number of rectangles is the sum of the harmonic series:

${\displaystyle {\begin{array}{c}{\text{area of}}\\{\text{rectangles}}\end{array}}=1+{\frac {1}{2}}+{\frac {1}{3}}+{\frac {1}{4}}+{\frac {1}{5}}+\cdots }$

Additionally, the total area under the curve y = 1/x from 1 to infinity is given by a divergent improper integral:

${\displaystyle {\begin{array}{c}{\text{area under}}\\{\text{curve}}\end{array}}=\int _{1}^{\infty }{\frac {1}{x}}\,dx=\infty .}$

Since this area is entirely contained within the rectangles, the total area of the rectangles must be infinite as well. More precisely, the first ${\displaystyle k}$ rectangles completely cover the region underneath the curve for ${\displaystyle 1\leq x\leq k+1}$ and so

${\displaystyle \sum _{n=1}^{k}{\frac {1}{n}}>\int _{1}^{k+1}{\frac {1}{x}}\,dx=\ln(k+1).}$

The generalization of this argument is known as the integral test.

## Rate of divergence

The harmonic series diverges very slowly. For example, the sum of the first 1043 terms is less than 100. [7] This is because the partial sums of the series have logarithmic growth. In particular,

${\displaystyle \sum _{n=1}^{k}{\frac {1}{n}}=\ln k+\gamma +\varepsilon _{k}\leq (\ln k)+1}$

where γ is the Euler–Mascheroni constant and εk ~ 1/2k which approaches 0 as k goes to infinity. Leonhard Euler proved both this and also the more striking fact that the sum which includes only the reciprocals of primes also diverges, i.e. [8]

${\displaystyle \sum _{p{\text{ prime }}}{\frac {1}{p}}={\frac {1}{2}}+{\frac {1}{3}}+{\frac {1}{5}}+{\frac {1}{7}}+{\frac {1}{11}}+{\frac {1}{13}}+{\frac {1}{17}}+\cdots =\infty .}$

## Partial sums

The first thirty harmonic numbers
nPartial sum of the harmonic series, Hn
expressed as a fractiondecimalrelative size
11~1

23/2~1.5

311/6~1.83333

425/12~2.08333

5137/60~2.28333

649/20~2.45

7363/140~2.59286

8761/280~2.71786

97129/2520~2.82897

107381/2520~2.92897

1183711/27720~3.01988

1286021/27720~3.10321

131145993/360360~3.18013

141171733/360360~3.25156

151195757/360360~3.31823

162436559/720720~3.38073

1742142223/12252240~3.43955

1814274301/4084080~3.49511

19275295799/77597520~3.54774

2055835135/15519504~3.59774

2118858053/5173168~3.64536

2219093197/5173168~3.69081

23444316699/118982864~3.73429

241347822955/356948592~3.77596

2534052522467/8923714800~3.81596

2634395742267/8923714800~3.85442

27312536252003/80313433200~3.89146

28315404588903/80313433200~3.92717

299227046511387/2329089562800~3.96165

309304682830147/2329089562800~3.99499

The finite partial sums of the diverging harmonic series,

${\displaystyle H_{n}=\sum _{k=1}^{n}{\frac {1}{k}},}$

are called harmonic numbers.

The difference between Hn and ln n converges to the Euler–Mascheroni constant. The difference between any two harmonic numbers is never an integer. No harmonic numbers are integers, except for H1 = 1. [9] :p. 24 [10] :Thm. 1

### Alternating harmonic series

The series

${\displaystyle \sum _{n=1}^{\infty }{\frac {(-1)^{n+1}}{n}}=1-{\frac {1}{2}}+{\frac {1}{3}}-{\frac {1}{4}}+{\frac {1}{5}}-\cdots }$

is known as the alternating harmonic series. This series converges by the alternating series test. In particular, the sum is equal to the natural logarithm of 2:

${\displaystyle 1-{\frac {1}{2}}+{\frac {1}{3}}-{\frac {1}{4}}+{\frac {1}{5}}-\cdots =\ln 2.}$

The alternating harmonic series, while conditionally convergent, is not absolutely convergent: if the terms in the series are systematically rearranged, in general the sum becomes different and, dependent on the rearrangement, possibly even infinite.

The alternating harmonic series formula is a special case of the Mercator series, the Taylor series for the natural logarithm.

A related series can be derived from the Taylor series for the arctangent:

${\displaystyle \sum _{n=0}^{\infty }{\frac {(-1)^{n}}{2n+1}}=1-{\frac {1}{3}}+{\frac {1}{5}}-{\frac {1}{7}}+\cdots ={\frac {\pi }{4}}.}$

This is known as the Leibniz series.

### General harmonic series

The general harmonic series is of the form

${\displaystyle \sum _{n=0}^{\infty }{\frac {1}{an+b}},}$

where a ≠ 0 and b are real numbers, and b/a is not zero or a negative integer.

By the limit comparison test with the harmonic series, all general harmonic series also diverge.

### p-series

A generalization of the harmonic series is the p-series (or hyperharmonic series), defined as

${\displaystyle \sum _{n=1}^{\infty }{\frac {1}{n^{p}}}}$

for any real number p. When p = 1, the p-series is the harmonic series, which diverges. Either the integral test or the Cauchy condensation test shows that the p-series converges for all p > 1 (in which case it is called the over-harmonic series) and diverges for all p ≤ 1. If p > 1 then the sum of the p-series is ζ(p), i.e., the Riemann zeta function evaluated at p.

The problem of finding the sum for p = 2 is called the Basel problem; Leonhard Euler showed it is π2/6. The value of the sum for p = 3 is called Apéry's constant, since Roger Apéry proved that it is an irrational number.

### ln-series

Related to the p-series is the ln-series, defined as

${\displaystyle \sum _{n=2}^{\infty }{\frac {1}{n(\ln n)^{p}}}}$

for any positive real number p. This can be shown by the integral test to diverge for p ≤ 1 but converge for all p > 1.

### φ-series

For any convex, real-valued function φ such that

${\displaystyle \limsup _{u\to 0^{+}}{\frac {\varphi \left({\frac {u}{2}}\right)}{\varphi (u)}}<{\frac {1}{2}},}$

the series

${\displaystyle \sum _{n=1}^{\infty }\varphi \left({\frac {1}{n}}\right)}$

is convergent.[ citation needed ]

### Random harmonic series

The random harmonic series

${\displaystyle \sum _{n=1}^{\infty }{\frac {s_{n}}{n}},}$

where the sn are independent, identically distributed random variables taking the values +1 and −1 with equal probability 1/2, is a well-known example in probability theory for a series of random variables that converges with probability 1. The fact of this convergence is an easy consequence of either the Kolmogorov three-series theorem or of the closely related Kolmogorov maximal inequality. Byron Schmuland of the University of Alberta further examined [11] the properties of the random harmonic series, and showed that the convergent series is a random variable with some interesting properties. In particular, the probability density function of this random variable evaluated at +2 or at −2 takes on the value 0.124999999999999999999999999999999999999999764..., differing from 1/8 by less than 10−42. Schmuland's paper explains why this probability is so close to, but not exactly, 1/8. The exact value of this probability is given by the infinite cosine product integral C2 [12] divided by π.

### Depleted harmonic series

The depleted harmonic series where all of the terms in which the digit 9 appears anywhere in the denominator are removed can be shown to converge to the value 22.92067661926415034816.... [13] In fact, when all the terms containing any particular string of digits (in any base) are removed, the series converges. [14]

## Applications

The harmonic series can be counterintuitive to students first encountering it, because it is a divergent series even though the limit of the nth term as n goes to infinity is zero. The divergence of the harmonic series is also the source of some apparent paradoxes. One example of these is the "worm on the rubber band". [15] Suppose that a worm crawls along an infinitely-elastic one-meter rubber band at the same time as the rubber band is uniformly stretched. If the worm travels 1 centimeter per minute and the band stretches 1 meter per minute, will the worm ever reach the end of the rubber band? The answer, counterintuitively, is "yes", for after n minutes, the ratio of the distance travelled by the worm to the total length of the rubber band is

${\displaystyle {\frac {1}{100}}\sum _{k=1}^{n}{\frac {1}{k}}.}$

(In fact the actual ratio is a little less than this sum as the band expands continuously.)

Because the series gets arbitrarily large as n becomes larger, eventually this ratio must exceed 1, which implies that the worm reaches the end of the rubber band. However, the value of n at which this occurs must be extremely large: approximately e 100, a number exceeding 1043 minutes (1037 years). Although the harmonic series does diverge, it does so very slowly.

Another problem involving the harmonic series is the Jeep problem, which (in one form) asks how much total fuel is required for a jeep with a limited fuel-carrying capacity to cross a desert, possibly leaving fuel drops along the route. The distance that can be traversed with a given amount of fuel is related to the partial sums of the harmonic series, which grow logarithmically. And so the fuel required increases exponentially with the desired distance.

Another example is the block-stacking problem: given a collection of identical dominoes, it is clearly possible to stack them at the edge of a table so that they hang over the edge of the table without falling. The counterintuitive result is that one can stack them in such a way as to make the overhang arbitrarily large, provided there are enough dominoes. [15] [16]

A simpler example, on the other hand, is the swimmer that keeps adding more speed when touching the walls of the pool. The swimmer starts crossing a 10-meter pool at a speed of 2 m/s, and with every cross, another 2 m/s is added to the speed. In theory, the swimmer's speed is unlimited, but the number of pool crosses needed to get to that speed becomes very large; for instance, to get to the speed of light (ignoring special relativity), the swimmer needs to cross the pool 150 million times. Contrary to this large number, the time required to reach a given speed depends on the sum of the series at any given number of pool crosses (iterations):

${\displaystyle {\frac {10}{2}}\sum _{k=1}^{n}{\frac {1}{k}}.}$

Calculating the sum (iteratively) shows that to get to the speed of light the time required is only 97 seconds. By continuing beyond this point (exceeding the speed of light, again ignoring special relativity), the time taken to cross the pool will in fact approach zero as the number of iterations becomes very large, and although the time required to cross the pool appears to tend to zero (at an infinite number of iterations), the sum of iterations (time taken for total pool crosses) will still diverge at a very slow rate.

## Related Research Articles

In mathematics, a series is, roughly speaking, a description of the operation of adding infinitely many quantities, one after the other, to a given starting quantity. The study of series is a major part of calculus and its generalization, mathematical analysis. Series are used in most areas of mathematics, even for studying finite structures through generating functions. In addition to their ubiquity in mathematics, infinite series are also widely used in other quantitative disciplines such as physics, computer science, statistics and finance.

The Riemann zeta function or Euler–Riemann zeta function, ζ(s), is a mathematical function of a complex variable s, and can be expressed as:

In mathematics, the Taylor series of a function is an infinite sum of terms that are expressed in terms of the function's derivatives at a single point. For most common functions, the function and the sum of its Taylor series are equal near this point. Taylor's series are named after Brook Taylor, who introduced them in 1715.

The Euler–Mascheroni constant is a mathematical constant recurring in analysis and number theory, usually denoted by the lowercase Greek letter gamma.

In mathematics, the n-th harmonic number is the sum of the reciprocals of the first n natural numbers:

The sum of the reciprocals of all prime numbers diverges; that is:

In mathematics, the digamma function is defined as the logarithmic derivative of the gamma function:

In mathematics, the integral test for convergence is a method used to test infinite series of monotonous terms for convergence. It was developed by Colin Maclaurin and Augustin-Louis Cauchy and is sometimes known as the Maclaurin–Cauchy test.

In mathematics, an alternating series is an infinite series of the form

In mathematics, a divergent series is an infinite series that is not convergent, meaning that the infinite sequence of the partial sums of the series does not have a finite limit.

In mathematics, a series is the sum of the terms of an infinite sequence of numbers. More precisely, an infinite sequence defines a series S that is denoted

In mathematics, the Riemann series theorem, named after 19th-century German mathematician Bernhard Riemann, says that if an infinite series of real numbers is conditionally convergent, then its terms can be arranged in a permutation so that the new series converges to an arbitrary real number, or diverges.

In mathematics, the Riemann zeta function is a function in complex analysis, which is also important in number theory. It is often denoted ζ(s) and is named after the mathematician Bernhard Riemann. When the argument s is a real number greater than one, the zeta function satisfies the equation

Euclid's theorem is a fundamental statement in number theory that asserts that there are infinitely many prime numbers. It was first proved by Euclid in his work Elements. There are several proofs of the theorem.

In mathematics, 1 + 2 + 4 + 8 + ⋯ is the infinite series whose terms are the successive powers of two. As a geometric series, it is characterized by its first term, 1, and its common ratio, 2. As a series of real numbers it diverges to infinity, so in the usual sense it has no sum. In a much broader sense, the series is associated with another value besides ∞, namely −1, which is the limit of the series using the 2-adic metric.

In mathematics, 1 − 2 + 3 − 4 + ··· is an infinite series whose terms are the successive positive integers, given alternating signs. Using sigma summation notation the sum of the first m terms of the series can be expressed as

The infinite series whose terms are the natural numbers 1 + 2 + 3 + 4 + ⋯ is a divergent series. The nth partial sum of the series is the triangular number

In mathematics, for a sequence of complex numbers a1, a2, a3, ... the infinite product

Gregory coefficientsGn, also known as reciprocal logarithmic numbers, Bernoulli numbers of the second kind, or Cauchy numbers of the first kind, are the rational numbers that occur in the Maclaurin series expansion of the reciprocal logarithm

## References

1. Oresme, Nicole (c. 1360). Quaestiones super Geometriam Euclidis[Questions concerning Euclid's Geometry].
2. Mengoli, Pietro (1650). "Praefatio [Preface]". Novae quadraturae arithmeticae, seu De additione fractionum[New arithmetic quadrature (i.e., integration), or On the addition of fractions]. Bologna: Giacomo Monti.
Mengoli's proof is by contradiction:
Let S denote the sum of the series. Group the terms of the series in triplets: S = 1 + (1/2 + 1/3 + 1/4) + (1/5 + 1/6 + 1/7) + (1/8 + 1/9 + 1/10) + … Since for x > 1, 1/x − 1 + 1/x + 1/x + 1 > 3/x, then S > 1 + 3/3 + 3/6 + 3/9 + … = 1 + 1 + 1/2 + 1/3 + … = 1 + S, which is false for any finite S. Therefore, the series diverges.
3. Bernoulli, Johann (1742). "Corollary III of De seriebus varia". Opera Omnia. Lausanne & Basel: Marc-Michel Bousquet & Co. vol. 4, p. 8.
Johann Bernoulli's proof is also by contradiction. It uses a telescopic sum to represent each term 1/n as
${\displaystyle {\frac {1}{n}}={\Big (}{\frac {1}{n}}-{\frac {1}{n+1}}{\Big )}+{\Big (}{\frac {1}{n+1}}-{\frac {1}{n+2}}{\Big )}+{\Big (}{\frac {1}{n+2}}-{\frac {1}{n+3}}{\Big )},\&c.}$${\displaystyle ={\frac {1}{n(n+1)}}+{\frac {1}{(n+1)(n+2)}}+{\frac {1}{(n+2)(n+3)}},\&c.}$
Changing the order of summation in the corresponding double series gives, in modern notation
${\displaystyle S=\sum _{n=1}^{\infty }{\frac {1}{n}}=\sum _{n=1}^{\infty }\sum _{k=n}^{\infty }{\frac {1}{k(k+1)}}=\sum _{k=1}^{\infty }\sum _{n=1}^{k}{\frac {1}{k(k+1)}}}$${\displaystyle =\sum _{k=1}^{\infty }{\frac {k}{k(k+1)}}=\sum _{k=1}^{\infty }{\frac {1}{k+1}}=S-1}$.
4. Bernoulli, Jacob (1689). Propositiones arithmeticae de seriebus infinitis earumque summa finita[Arithmetical propositions about infinite series and their finite sums]. Basel: J. Conrad.
5. Bernoulli, Jacob (1713). Ars conjectandi, opus posthumum. Accedit Tractatus de seriebus infinitis [Theory of inference, posthumous work. With the Treatise on infinite series…]. Basel: Thurneysen. pp. 250–251.
From p. 250, prop. 16:
"XVI. Summa serei infinita harmonicè progressionalium, 1/1 + 1/2 + 1/3 + 1/4 + 1/5 &c. est infinita. Id primus deprehendit Frater:…"
[16. The sum of an infinite series of harmonic progression, 1/1 + 1/2 + 1/3 + 1/4 + 1/5 + …, is infinite. My brother first discovered this…]
6. Hersey, George L. Architecture and Geometry in the Age of the Baroque. pp. 11–12, 37–51.
7. Sloane, N. J. A. (ed.). "SequenceA082912(Sum of a(n) terms of harmonic series is > 10n)". The On-Line Encyclopedia of Integer Sequences . OEIS Foundation.
8. Euler, Leonhard (1737). "Variae observationes circa series infinitas" [Various observations concerning infinite series]. Commentarii Academiae Scientiarum Petropolitanae. 9: 160–188.
9. Julian Havil, Gamma: Exploring Euler’s Constant, Princeton University Press, 2009.
10. Thomas J. Osler, “Partial sums of series that cannot be an integer”, The Mathematical Gazette 96, November 2012, 515–519. https://www.jstor.org/stable/24496876?seq=1#page_scan_tab_contents
11. Schmuland, Byron (May 2003). "Random Harmonic Series" (PDF). American Mathematical Monthly. 110 (5): 407–416. doi:10.2307/3647827. JSTOR   3647827.
12. Weisstein, Eric W. "Infinite Cosine Product Integral". MathWorld . Retrieved November 9, 2020.
13. Robert Baillie (May 1979). "Sums of Reciprocals of Integers Missing a Given Digit". The American Mathematical Monthly . 86 (5): 372–374. doi:10.1080/00029890.1979.11994810. JSTOR   2321096.
14. Thomas Schmelzer and Robert Baillie (Jun 2008). "Summing a Curious, Slowly Convergent Series". The American Mathematical Monthly. 115 (6): 545–540. JSTOR   27642532.
15. Graham, Ronald; Knuth, Donald E.; Patashnik, Oren (1989), Concrete Mathematics (2nd ed.), Addison-Wesley, pp. 258–264, ISBN   978-0-201-55802-9
16. Sharp, R. T. (1954). "Problem 52: Overhanging dominoes" (PDF). Pi Mu Epsilon Journal. 1 (10): 411–412.