Lemma
← All topics
Pure mathematics

Sequences and series

Patterns that go on, and what they add up to.

Introduction

A sequence is an ordered list of numbers: 3,7,11,15,…3, 7, 11, 15, \dots A series is what you get when you add the terms up. This topic covers sequences given by a formula or by a recurrence relation, the two most important types, arithmetic (add the same amount each time) and geometric (multiply by the same amount), their sums, the sum to infinity of a geometric series, and sigma notation.

Why it matters

Savings with compound interest grow geometrically. A ball that bounces to 70% of its height travels a total distance given by a geometric series. Loan repayments, population models and drug doses in the bloodstream are all sequences. And the idea that infinitely many terms can add up to a finite number is one of the most important ideas in mathematics.

Intuitive explanation

IntuitionGauss's trick for arithmetic series

To add 1+2+⋯+1001 + 2 + \dots + 100, write it forwards and backwards and add: each column gives 101101, and there are 100100 columns. So twice the sum is 100×101100 \times 101, and the sum is 50505050. The same trick proves the general formula.

IntuitionWhy a geometric series can have a finite sum

Walk halfway to a wall, then half the remaining distance, and so on: 12+14+18+…\frac12 + \frac14 + \frac18 + \dots You never pass the wall, and you get as close as you like, so the total is exactly 11. This works whenever each term is a fixed fraction of the one before, with ∣r∣<1|r| < 1.

Watching a series converge

Add 12+14+18+⋯\frac12 + \frac14 + \frac18 + \cdots one term at a time:

termspartial sumgap to 11
110.50.50.50.5
220.750.750.250.25
550.968750.968750.031250.03125
10100.99902340.99902340.00097660.0009766
20200.999999050.999999050.000000950.00000095

Each new term fills exactly half of the remaining gap, so the gap after nn terms is 12n\frac{1}{2^n}. It never reaches 00, but it gets smaller than any tolerance you name. That is precisely what "the sum to infinity is 11" means. An infinite sum is not "adding forever". It is the limit of the partial sums.

Formal definitions

DefinitionArithmetic sequence

un=a+(n−1)du_n = a + (n - 1)d, with first term aa and common difference dd.

DefinitionGeometric sequence

un=arn−1u_n = ar^{n - 1}, with first term aa and common ratio rr.

DefinitionRecurrence relation

A rule un+1=f(un)u_{n+1} = f(u_n) together with a starting value. A sequence is increasing if un+1>unu_{n+1} > u_n for all nn, decreasing if un+1<unu_{n+1} < u_n, and periodic with order kk if un+k=unu_{n+k} = u_n.

DefinitionConvergence

A geometric series is convergent if its sum to infinity exists. This happens exactly when ∣r∣<1|r| < 1.

Notation

  • unu_n is the nnth term; SnS_n is the sum of the first nn terms.
  • ∑r=1nf(r)\displaystyle\sum_{r=1}^{n} f(r) means f(1)+f(2)+⋯+f(n)f(1) + f(2) + \dots + f(n).
  • S∞S_\infty is the sum to infinity.

Key formulae

IdentitiesSums
Sn=n2(2a+(n−1)d)=n2(a+l)(arithmetic, last term l)S_n = \frac n2\big(2a + (n - 1)d\big) = \frac n2(a + l) \qquad \text{(arithmetic, last term } l)
Sn=a(1−rn)1−r(geometric, r≠1)S_n = \frac{a(1 - r^n)}{1 - r} \qquad \text{(geometric, } r \ne 1)
S∞=a1−r(∣r∣<1)S_\infty = \frac{a}{1 - r} \qquad (|r| < 1)
∑r=1nr=n(n+1)2\sum_{r=1}^n r = \frac{n(n + 1)}{2}

Key results

TheoremSum to infinity

If ∣r∣<1|r| < 1 then rn→0r^n \to 0 as n→∞n \to \infty, so Sn=a(1−rn)1−r→a1−rS_n = \frac{a(1 - r^n)}{1 - r} \to \frac{a}{1 - r}. If ∣r∣≥1|r| \ge 1 (and a≠0a \neq 0) the series diverges.

Proofs

ProofArithmetic series

Sn=a+(a+d)+⋯+(l−d)+lS_n = a + (a + d) + \dots + (l - d) + l. Reversed: Sn=l+(l−d)+⋯+(a+d)+aS_n = l + (l - d) + \dots + (a + d) + a. Adding, each of the nn pairs sums to a+la + l, so 2Sn=n(a+l)2S_n = n(a + l) and Sn=n2(a+l)S_n = \frac n2(a + l). With l=a+(n−1)dl = a + (n - 1)d this is n2(2a+(n−1)d)\frac n2(2a + (n - 1)d).

∎
ProofGeometric series

Sn=a+ar+⋯+arn−1S_n = a + ar + \dots + ar^{n - 1} and rSn=ar+ar2+⋯+arnrS_n = ar + ar^2 + \dots + ar^n. Subtracting, almost everything cancels: Sn−rSn=a−arnS_n - rS_n = a - ar^n, so Sn=a(1−rn)1−rS_n = \frac{a(1 - r^n)}{1 - r}.

∎

Both proofs are on the specification, and you can be asked to reproduce them.

Methods

MethodFinding aa and dd (or aa and rr)

Turn each piece of information into an equation: "the 5th term is 17" gives a+4d=17a + 4d = 17. Two facts give two simultaneous equations. For geometric sequences, divide one equation by the other to eliminate aa.

Method"How many terms until..."

Set up an inequality such as Sn>1000S_n > 1000 or arn−1<0.01ar^{n - 1} < 0.01. For geometric problems, solve with logarithms. Remember that dividing by log⁡r\log r when r<1r < 1 reverses the inequality.

MethodSigma notation

Count terms carefully: ∑r=520\sum_{r=5}^{20} has 1616 terms. Write out the first few terms to identify aa and dd or rr.

The arithmetic series formula

Write the sum forwards and backwards:

Sn=a+(a+d)+⋯+(a+(n−1)d)Sn=(a+(n−1)d)+⋯+(a+d)+a\begin{aligned}S_n &= a + (a + d) + \cdots + (a + (n-1)d)\\ S_n &= (a + (n-1)d) + \cdots + (a + d) + a\end{aligned}

Each column adds to 2a+(n−1)d2a + (n-1)d, and there are nn columns, so Sn=n2(2a+(n−1)d)=n2(first+last)S_n = \frac n2\big(2a + (n-1)d\big) = \frac n2(\text{first} + \text{last}).

The geometric series formula

Sn−rSn=a−arnS_n - rS_n = a - ar^n, because everything else cancels (question Q33). So Sn=a(1−rn)1−rS_n = \frac{a(1 - r^n)}{1 - r} for r≠1r \ne 1.

Why rn→0r^n \to 0 when ∣r∣<1|r| < 1

For 0<r<10 < r < 1 write 1r=1+h\frac1r = 1 + h with h>0h > 0. By the binomial theorem, (1+h)n≥1+nh(1 + h)^n \ge 1 + nh (Bernoulli's inequality), so

rn=1(1+h)n≤11+nh→0.r^n = \frac{1}{(1 + h)^n} \le \frac{1}{1 + nh} \to 0.

For negative rr, use ∣rn∣=∣r∣n|r^n| = |r|^n. This one fact turns the finite formula into S∞=a1−rS_\infty = \frac{a}{1 - r}.

Deriving ∑r2\sum r^2 by telescoping

(r+1)3−r3=3r2+3r+1(r + 1)^3 - r^3 = 3r^2 + 3r + 1. Sum both sides from r=1r = 1 to nn. The left side telescopes to (n+1)3−1(n + 1)^3 - 1:

(n+1)3−1=3∑r2+3⋅n(n+1)2+n.(n+1)^3 - 1 = 3\sum r^2 + 3\cdot\frac{n(n+1)}{2} + n.

Rearranging gives ∑r=1nr2=n(n+1)(2n+1)6\sum_{r=1}^nr^2 = \frac{n(n+1)(2n+1)}{6}. Starting from (r+1)4−r4(r + 1)^4 - r^4 gives ∑r3\sum r^3 in the same way. Every power sum can be found like this.

Recurrences and fixed points

For un+1=kun+cu_{n+1} = ku_n + c with k≠1k \ne 1, the fixed point is L=c1−kL = \frac{c}{1 - k}. Subtracting L=kL+cL = kL + c from the recurrence gives

un+1−L=k(un−L),soun=L+kn−1(u1−L).u_{n+1} - L = k(u_n - L), \qquad\text{so}\qquad u_n = L + k^{n-1}(u_1 - L).

The gap to the fixed point is a geometric sequence. If ∣k∣<1|k| < 1 the sequence converges to LL (a stable fixed point). If ∣k∣>1|k| > 1 it runs away (unstable). If k=−1k = -1 it oscillates for ever.

Examples

ExampleA quick sum to infinity

12+6+3+…12 + 6 + 3 + \dots has a=12a = 12, r=12r = \frac12, so S∞=121−12=24S_\infty = \frac{12}{1 - \frac12} = 24.

Step-by-step worked examples are in the Worked examples tab.

Common mistakes

Common mistaken−1n - 1, not nn

The nnth term is a+(n−1)da + (n - 1)d or arn−1ar^{n - 1}.

Common mistakeUsing S∞S_\infty when ∣r∣≥1|r| \ge 1

Check ∣r∣<1|r| < 1 first, and say so in your answer.

Common mistakeInequality direction with logs

0.8n<0.1⇒nlog⁡0.8<log⁡0.1⇒n>log⁡0.1log⁡0.80.8^n < 0.1 \Rightarrow n\log 0.8 < \log 0.1 \Rightarrow n > \frac{\log 0.1}{\log 0.8}, because log⁡0.8<0\log 0.8 < 0.

Common mistakeCounting terms in sigma notation

From r=3r = 3 to r=10r = 10 inclusive is 88 terms, not 77.

Applications

  • Finance: savings of £PP per year at rate ii form a geometric series; mortgages are calculated the same way.
  • Physics: total distance travelled by a bouncing ball.
  • Medicine: the steady-state level of a drug taken in regular doses is a sum to infinity.

Connections

Summary

  • Arithmetic: un=a+(n−1)du_n = a + (n - 1)d, Sn=n2(2a+(n−1)d)S_n = \frac n2(2a + (n - 1)d).
  • Geometric: un=arn−1u_n = ar^{n - 1}, Sn=a(1−rn)1−rS_n = \frac{a(1 - r^n)}{1 - r}, S∞=a1−rS_\infty = \frac{a}{1 - r} for ∣r∣<1|r| < 1.
  • Recurrence relations: generate terms one at a time; look for increasing, decreasing or periodic behaviour.
  • Use logarithms for unknown nn in geometric problems, and watch the inequality direction.

Worked examples

Try each one yourself first, then open the solution.

Example 1Two facts, two unknowns

The 4th term of an arithmetic sequence is 1313 and the 10th term is 3131. Find the sum of the first 20 terms.

Show the solution
  1. 1Write equations

    a+3d=13a + 3d = 13 and a+9d=31a + 9d = 31.

  2. 2Solve

    Subtracting: 6d=18⇒d=36d = 18 \Rightarrow d = 3, then a=4a = 4.

  3. 3Sum

    S20=202(2×4+19×3)=10×65=650S_{20} = \tfrac{20}{2}(2 \times 4 + 19 \times 3) = 10 \times 65 = 650.

Answer

650650

Example 2Finding the common ratio

The 2nd term of a geometric sequence is 1212 and the 5th term is −32-\frac{3}{2}. Find aa and rr.

Show the solution
  1. 1Equations

    ar=12ar = 12 and ar4=−32ar^4 = -\tfrac32.

  2. 2Divide

    r3=−3/212=−18⇒r=−12r^3 = \dfrac{-3/2}{12} = -\tfrac18 \Rightarrow r = -\tfrac12.

  3. 3Find aa

    a=12−1/2=−24a = \dfrac{12}{-1/2} = -24.

Answer

a=−24a = -24, r=−12r = -\tfrac12

Example 3Least $n$ with logarithms

Find the least nn for which the sum of the first nn terms of 3+6+12+…3 + 6 + 12 + \dots exceeds 10610^6.

Show the solution
  1. 1Sum formula

    Sn=3(2n−1)2−1=3(2n−1)S_n = \dfrac{3(2^n - 1)}{2 - 1} = 3(2^n - 1).

  2. 2Inequality

    3(2n−1)>106⇒2n>333 334.33(2^n - 1) > 10^6 \Rightarrow 2^n > 333\,334.3.

  3. 3Logs

    n>log⁡333 334.3log⁡2=18.35…n > \dfrac{\log 333\,334.3}{\log 2} = 18.35\ldots

  4. 4Least integer

    n=19n = 19.

Answer

n=19n = 19

Example 4Sum to infinity with an unknown

A geometric series has first term 55 and sum to infinity 2020. Find the common ratio.

Show the solution
  1. 1Formula

    51−r=20\dfrac{5}{1 - r} = 20.

  2. 2Solve

    1−r=14⇒r=341 - r = \tfrac14 \Rightarrow r = \tfrac34.

  3. 3Check

    ∣r∣<1|r| < 1, so the sum to infinity exists. ✓

Answer

r=34r = \tfrac34

Example 5A periodic sequence

un+1=11−unu_{n+1} = \dfrac{1}{1 - u_n}, u1=2u_1 = 2. Find ∑r=199ur\displaystyle\sum_{r=1}^{99} u_r.

Show the solution
  1. 1Generate terms

    u1=2u_1 = 2, u2=11−2=−1u_2 = \frac{1}{1 - 2} = -1, u3=12u_3 = \frac{1}{2}, u4=11−12=2u_4 = \frac{1}{1 - \frac12} = 2.

  2. 2Spot the period

    The sequence repeats every 3 terms: 2,−1,122, -1, \tfrac12, with block sum 32\tfrac32.

  3. 3Count blocks

    99=33×399 = 33 \times 3, so the sum is 33×32=99233 \times \tfrac32 = \tfrac{99}2.

Answer

992\tfrac{99}{2}

Example 6Evaluating a sigma sum

Evaluate ∑r=530(4r−1)\displaystyle\sum_{r=5}^{30}(4r - 1).

Show the solution
  1. 1Identify the series

    Terms 19,23,27,…,11919, 23, 27, \dots, 119: arithmetic with a=19a = 19, d=4d = 4.

  2. 2Count terms

    From 55 to 3030 inclusive: 30−5+1=2630 - 5 + 1 = 26 terms.

  3. 3Sum

    262(19+119)=13×138=1794\tfrac{26}{2}(19 + 119) = 13 \times 138 = 1794.

Answer

17941794

Example 7Savings plan

Ama saves £100 in month 1 and increases her saving by £15 each month. How much has she saved after 2 years?

Show the solution
  1. 1Model

    Arithmetic: a=100a = 100, d=15d = 15, n=24n = 24.

  2. 2Sum

    S24=12(200+23×15)=12×545=6540S_{24} = 12(200 + 23 \times 15) = 12 \times 545 = 6540.

Answer

£6540

Example 8A bouncing ball

A ball is dropped from 1010 m. After each bounce it rises to 60%60\% of its previous height. Find the total distance travelled.

Show the solution
  1. 1Split the motion

    First drop 1010 m. Then each bounce goes up and down: 2(6+3.6+2.16+… )2(6 + 3.6 + 2.16 + \dots).

  2. 2Sum to infinity

    6+3.6+⋯=61−0.6=156 + 3.6 + \dots = \dfrac{6}{1 - 0.6} = 15.

  3. 3Total

    10+2×15=4010 + 2 \times 15 = 40 m.

Answer

4040 m

The first drop is only counted once: it has no matching upward journey.

Beyond the specification

University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.

Limits of sequences, made precise (university)

DefinitionConvergence (Cauchy, Weierstrass)

un→Lu_n \to L means: for every ε>0\varepsilon > 0 there is an NN such that ∣un−L∣<ε|u_n - L| < \varepsilon for all n>Nn > N.

"Eventually, and forever after, the terms stay within ε\varepsilon of LL", however small ε\varepsilon is.

ExampleProving nn+1→1\frac{n}{n + 1} \to 1

∣nn+1−1∣=1n+1\left|\frac{n}{n+1} - 1\right| = \frac{1}{n + 1}. Given ε>0\varepsilon > 0, take N>1εN > \frac1\varepsilon. Then for n>Nn > N, 1n+1<1N<ε\frac1{n+1} < \frac1N < \varepsilon. ■\blacksquare

TheoremLimits are unique
Proof

If un→Lu_n \to L and un→Mu_n \to M with L≠ML \ne M, take ε=∣L−M∣2\varepsilon = \frac{|L - M|}{2}. Eventually unu_n is within ε\varepsilon of both, so by the triangle inequality ∣L−M∣≤∣L−un∣+∣un−M∣<2ε=∣L−M∣|L - M| \le |L - u_n| + |u_n - M| < 2\varepsilon = |L - M|, a contradiction.

∎

Completeness: why limits exist

How do we know 2+2+⋯\sqrt{2 + \sqrt{2 + \cdots}} converges without knowing its value in advance? Because R\mathbb{R} has no gaps:

TheoremMonotone Convergence Theorem

Every increasing sequence that is bounded above converges (to its least upper bound).

This is equivalent to the completeness axiom of R\mathbb{R}. It fails in Q\mathbb{Q}: the decimals 1,1.4,1.41,1.414,…1, 1.4, 1.41, 1.414, \ldots increase and are bounded, but their limit 2\sqrt2 is not rational.

TheoremBolzano–Weierstrass

Every bounded sequence has a convergent subsequence.

Idea: halve the interval containing the terms, and keep a half that contains infinitely many of them. Repeating this, the nested intervals shrink to a point, and the terms you pick from them converge to it.

DefinitionCauchy sequence

(un)(u_n) is Cauchy if its terms get arbitrarily close to each other: for every ε>0\varepsilon > 0 there is an NN with ∣um−un∣<ε|u_m - u_n| < \varepsilon for all m,n>Nm, n > N.

In R\mathbb{R}, a sequence converges if and only if it is Cauchy. That gives a test for convergence that never mentions the limit. Indeed, one construction of R\mathbb{R} (Cantor, 1872) defines real numbers as equivalence classes of rational Cauchy sequences.

Convergence tests for series (university)

For a series ∑un\sum u_n the first question is whether it converges at all. A toolkit of tests answers this without finding the sum.

TheoremThe nnth term test

If ∑un\sum u_n converges, then un→0u_n \to 0. (Not conversely: ∑1n\sum\frac1n diverges.)

TheoremComparison test

If 0≤un≤vn0 \le u_n \le v_n and ∑vn\sum v_n converges, then ∑un\sum u_n converges.

TheoremRatio test (d'Alembert)

If ∣un+1un∣→ℓ\left|\frac{u_{n+1}}{u_n}\right| \to \ell, then ∑un\sum u_n converges absolutely if ℓ<1\ell < 1, and diverges if ℓ>1\ell > 1. If ℓ=1\ell = 1, the test tells you nothing.

Proof

If ℓ<1\ell < 1, pick ρ\rho with ℓ<ρ<1\ell < \rho < 1. Eventually ∣un+1∣≤ρ∣un∣|u_{n+1}| \le \rho|u_n|, so from some point on the terms are bounded by a convergent geometric series CρnC\rho^n. If ℓ>1\ell > 1, the terms eventually grow, so they cannot tend to 00.

∎

Example: ∑n102n\sum\frac{n^{10}}{2^n}. The ratio is 12(1+1n)10→12<1\frac12\left(1 + \frac1n\right)^{10} \to \frac12 < 1, so it converges. Exponentials beat powers.

TheoremIntegral test

If ff is positive and decreasing, then ∑f(n)\sum f(n) and ∫1∞f(x) dx\int_1^\infty f(x)\,dx either both converge or both diverge.

This gives the pp-series result: ∑1np\sum\frac1{n^p} converges iff p>1p > 1, exactly like ∫1∞dxxp\int_1^\infty\frac{dx}{x^p}.

TheoremAlternating series test (Leibniz)

If bnb_n decreases to 00, then ∑(−1)n+1bn\sum(-1)^{n+1}b_n converges, and the error after nn terms is less than bn+1b_{n+1}.

Why: the partial sums zig-zag, each step smaller than the last, so they are trapped in shrinking intervals.

DefinitionAbsolute and conditional convergence

∑un\sum u_n converges absolutely if ∑∣un∣\sum|u_n| converges. An absolutely convergent series converges, and any rearrangement of it has the same sum. A conditionally convergent series (∑un\sum u_n converges but ∑∣un∣\sum|u_n| does not) can be rearranged to give any sum you like (Riemann, question Q60).

ParadoxGrandi's series

1−1+1−1+⋯1 - 1 + 1 - 1 + \cdots diverges: its partial sums alternate 1,0,1,0,…1, 0, 1, 0, \ldots Grandi (1703) argued it equals 12\frac12, and in a precise sense it does: the Cesàro mean (the average of the partial sums) tends to 12\frac12. Summation methods that extend "ordinary" convergence underpin Fourier analysis and quantum field theory.

Power series and generating functions (university)

A power series ∑cnxn\sum c_nx^n is a polynomial of infinite degree. By the ratio test it converges for ∣x∣<ρ|x| < \rho and diverges for ∣x∣>ρ|x| > \rho, where ρ\rho is the radius of convergence.

seriesfunctionρ\rho
∑xn\sum x^n11−x\frac{1}{1 - x}11
∑xnn!\sum\frac{x^n}{n!}exe^x∞\infty
∑(−1)nx2n+1(2n+1)!\sum\frac{(-1)^nx^{2n+1}}{(2n+1)!}sin⁡x\sin x∞\infty
∑(−1)n+1xnn\sum\frac{(-1)^{n+1}x^n}{n}ln⁡(1+x)\ln(1 + x)11

Inside the radius, power series can be added, multiplied, differentiated and integrated term by term, just like polynomials. Differentiating the geometric series gives ∑nxn−1=1(1−x)2\sum nx^{n-1} = \frac{1}{(1 - x)^2}, which is how question Q42 can be done in one line.

Generating functions

Encode a whole sequence as one function: G(x)=∑anxnG(x) = \sum a_nx^n. Then recurrences become algebra.

ExampleThe Fibonacci generating function

Let G(x)=∑n≥0FnxnG(x) = \sum_{n\ge0}F_nx^n. The recurrence Fn+2=Fn+1+FnF_{n+2} = F_{n+1} + F_n gives

G(x)−x=xG(x)+x2G(x)⇒G(x)=x1−x−x2.G(x) - x = xG(x) + x^2G(x) \quad\Rightarrow\quad G(x) = \frac{x}{1 - x - x^2}.

Partial fractions over the roots of 1−x−x21 - x - x^2 split GG into two geometric series, and Binet's formula drops out. At x=110x = \frac1{10} this gives a curiosity:

∑Fn10n=1/101−1/10−1/100=1089.\sum\frac{F_n}{10^n} = \frac{1/10}{1 - 1/10 - 1/100} = \frac{10}{89}.

So 189=0.011235955…\frac{1}{89} = 0.011235955\ldots, with the Fibonacci numbers hiding in its decimal expansion.

ExampleCounting with generating functions

How many ways can you pay 10p using 1p, 2p and 5p coins? The answer is the coefficient of x10x^{10} in

1(1−x)(1−x2)(1−x5).\frac{1}{(1 - x)(1 - x^2)(1 - x^5)}.

Each factor 11−xk=1+xk+x2k+⋯\frac{1}{1 - x^k} = 1 + x^k + x^{2k} + \cdots records how many kk-pence coins you use. (The answer is 1010.) Euler used this idea to found the theory of integer partitions.

The zeta function and the primes (university)

ζ(s)=∑n=1∞1ns=1+12s+13s+⋯(s>1).\zeta(s) = \sum_{n=1}^\infty\frac{1}{n^s} = 1 + \frac1{2^s} + \frac1{3^s} + \cdots \qquad (s > 1).

We have met ζ(2)=π26\zeta(2) = \frac{\pi^2}6 (several times!) and seen that ζ(1)\zeta(1), the harmonic series, diverges.

TheoremEuler's product formula (1737)
∑n=1∞1ns=∏p prime11−p−s.\sum_{n=1}^\infty\frac{1}{n^s} = \prod_{p\ \text{prime}}\frac{1}{1 - p^{-s}}.

Why: each factor is a geometric series, 11−p−s=1+p−s+p−2s+⋯\frac{1}{1 - p^{-s}} = 1 + p^{-s} + p^{-2s} + \cdots Multiplying out the product over all primes, every term 1(p1a1⋯pkak)s\frac{1}{(p_1^{a_1}\cdots p_k^{a_k})^s} appears exactly once. By unique prime factorisation, these are exactly the terms 1ns\frac{1}{n^s}, each once. The formula is the Fundamental Theorem of Arithmetic, written analytically.

TheoremThere are infinitely many primes (Euler's proof)
Proof

If there were finitely many primes, the product at s=1s = 1 would be a finite product of finite numbers. But it equals ∑1n=∞\sum\frac1n = \infty.

∎

Euler pushed further: taking logarithms shows ∑p1p=∞\sum_p\frac{1}{p} = \infty. The primes are dense enough that the sum of their reciprocals diverges, unlike the squares, whose reciprocals sum to π26\frac{\pi^2}{6}.

The Riemann Hypothesis

Riemann (1859) extended ζ(s)\zeta(s) to complex ss by analytic continuation: a unique holomorphic function on C∖{1}\mathbb{C}\setminus\{1\} that agrees with the series where it converges. He showed that the distribution of primes is controlled by the zeros of ζ\zeta. The Riemann Hypothesis, that all the non-trivial zeros have real part 12\frac12, is perhaps the most famous unsolved problem in mathematics. It carries a $1\,000\,000 Clay Millennium Prize.

Paradox"1+2+3+⋯=−1121 + 2 + 3 + \cdots = -\frac{1}{12}"

You may have seen this claim. The series diverges to +∞+\infty; it does not equal −112-\frac1{12}. What is true: the analytic continuation of ζ\zeta satisfies ζ(−1)=−112\zeta(-1) = -\frac1{12}. At s=−1s = -1 the series formula is meaningless, but the continued function has this value. Physicists use such "regularised" values (in the Casimir effect and string theory) with care, as a renormalisation technique, not as ordinary sums.

Why does this work?

Why does this work?Why does the harmonic series diverge?

Group the terms: 1+12+(13+14)+(15+⋯+18)+…1 + \frac12 + \left(\frac13 + \frac14\right) + \left(\frac15 + \dots + \frac18\right) + \dots Each bracket is at least 12\frac12 (for example 15+16+17+18>4×18\frac15 + \frac16 + \frac17 + \frac18 > 4 \times \frac18). Infinitely many halves add to infinity, even though the terms tend to 00. So "terms tend to zero" is necessary for convergence but not sufficient.

Beyond the syllabus

Beyond the syllabusThe Basel problem: ∑1n2=π26\sum \frac{1}{n^2} = \frac{\pi^2}{6}

Euler (1734) argued: sin⁡xx\frac{\sin x}{x} has roots at ±π,±2π,…\pm\pi, \pm2\pi, \dots, so by analogy with polynomials

sin⁡xx=(1−x2π2)(1−x24π2)(1−x29π2)⋯\frac{\sin x}{x} = \left(1 - \frac{x^2}{\pi^2}\right)\left(1 - \frac{x^2}{4\pi^2}\right)\left(1 - \frac{x^2}{9\pi^2}\right)\cdots

The x2x^2 coefficient on the right is −1π2∑1n2-\frac{1}{\pi^2}\sum\frac{1}{n^2}; on the left (from sin⁡x=x−x36+…\sin x = x - \frac{x^3}6 + \dots) it is −16-\frac16. Equating gives ∑1n2=π26\sum\frac1{n^2} = \frac{\pi^2}6. Making the infinite product rigorous took another century (Weierstrass's factorisation theorem).

Beyond the syllabusInfinite products

Wallis (1656): π2=21⋅23⋅43⋅45⋅65⋅67⋯\dfrac\pi2 = \dfrac21\cdot\dfrac23\cdot\dfrac43\cdot\dfrac45\cdot\dfrac65\cdot\dfrac67\cdots, which follows by putting x=π2x = \frac\pi2 in Euler's product. Euler's product for primes: ∑n=1∞1ns=∏p prime11−p−s\sum_{n=1}^\infty\frac{1}{n^s} = \prod_{p\text{ prime}}\frac{1}{1 - p^{-s}}, which encodes unique factorisation and is the bridge between analysis and the primes, leading to the Riemann zeta function.

Beyond the syllabusRearranging a series can change its sum

1−12+13−14+⋯=ln⁡21 - \frac12 + \frac13 - \frac14 + \dots = \ln2. Rearranged as one positive term followed by two negative terms, the same terms sum to 12ln⁡2\frac12\ln2. Riemann's rearrangement theorem: a conditionally convergent series can be rearranged to sum to any real number at all. Only absolutely convergent series are safe to rearrange.

Mathematical curiosities

Mathematical curiosityThe harmonic series grows like ln⁡n\ln n

1+12+⋯+1n−ln⁡n→γ=0.5772…1 + \frac12 + \dots + \frac1n - \ln n \to \gamma = 0.5772\ldots, the Euler–Mascheroni constant. Nobody knows whether γ\gamma is rational.

Mathematical curiosityZeno's paradox

To cross a room you must first cross half, then half the rest, and so on. Infinitely many steps, yet you arrive: 12+14+18+⋯=1\frac12 + \frac14 + \frac18 + \dots = 1.

Further exploration

Further explorationInvestigations
  • Show that ∑1np\sum\frac{1}{n^p} converges for p>1p > 1 by comparing with ∫1∞x−p dx\int_1^\infty x^{-p}\,dx.
  • Is ∑1p\sum\frac{1}{p} over the primes convergent? (Euler: no, it diverges like ln⁡ln⁡n\ln\ln n.)

Reading pathway: An Introduction to the Theory of Numbers (Hardy and Wright); Real Analysis courses for rigorous convergence.

Now practise60 questions from Very easy to Extreme →