Infinite Series and Partial Sums

Published on 2026-11-04·v1.0

Learning Objectives

  • Define the sum of an infinite series as the limit of its sequence of partial sums, and say when a series converges or diverges.
  • Sum a geometric series, state exactly when the formula applies, and turn a repeating decimal into a fraction.
  • Find the partial sums of a telescoping series by cancellation and take their limit.
  • State the divergence test in the correct direction and show with an example why its converse is false.
  • Prove that the harmonic series diverges, say how slowly it does, and recognize when floating-point summation hides a divergence.

Context & Motivation

The previous lesson, arithmetic-and-geometric-progressions, gave closed forms for the sum of the first nn terms. Now let the number of terms grow forever. Adding infinitely many numbers cannot be done by adding them one after another, so the sum has to be defined, and the definition reuses what you know from sequences-and-convergence: look at the sequence of partial sums and ask whether it converges.

The same question appeared for areas in improper-integrals, where an infinite tail of area either added up to a finite number or did not. Series are the discrete version of that story, and the two will meet again below, because the integral from 11 to ∞\infty of 1/x1/x decides the fate of the harmonic series. In computing, series appear whenever a quantity is built by adding corrections: a numerical approximation, a running total of costs, the probabilities of the successive outcomes of a repeated trial. Whether the total is finite is not a technicality.

Core Theory

Partial sums and the meaning of an infinite sum

Given a sequence (an)(a_n), the NN-th partial sum is SN=a1+a2+⋯+aNS_N = a_1 + a_2 + \dots + a_N. The infinite series ∑n=1∞an\sum_{n=1}^{\infty} a_n converges to SS if the sequence (SN)(S_N) converges to SS, and diverges if (SN)(S_N) does not converge. The number SS is called the sum of the series. Nothing is "added infinitely many times"; the sum is a limit of finite sums.

Where the series starts affects the value but not whether it converges, since removing finitely many terms shifts the sum by a fixed amount. If ∑an\sum a_n and ∑bn\sum b_n both converge, then ∑(an+bn)=∑an+∑bn\sum (a_n + b_n) = \sum a_n + \sum b_n and ∑c an=c∑an\sum c\,a_n = c \sum a_n. If one converges and the other diverges, the sum of the two diverges. If both diverge, anything can happen: with an=1a_n = 1 and bn=−1b_n = -1 the combined series ∑(an+bn)=0+0+…\sum (a_n + b_n) = 0 + 0 + \dots converges.

The geometric series

For a≠0a \neq 0,

∑n=0∞a rn=a1−rif ∣r∣<1,and the series diverges if ∣r∣≥1\sum_{n=0}^{\infty} a\,r^n = \frac{a}{1 - r} \quad \text{if } \lvert r \rvert < 1, \qquad \text{and the series diverges if } \lvert r \rvert \ge 1

The proof is the closed form from the previous lesson: SN=a(1−rN+1)/(1−r)S_N = a(1 - r^{N+1})/(1 - r), and for ∣r∣<1\lvert r \rvert < 1 we have rN+1→0r^{N+1} \to 0, so SN→a/(1−r)S_N \to a/(1-r). For ∣r∣≥1\lvert r \rvert \ge 1 the terms arna r^n do not tend to 00, which rules out convergence by the divergence test below. The formula a/(1−r)a/(1-r) is a statement about the case ∣r∣<1\lvert r \rvert < 1 only. Plugging r=2r = 2 into it to "sum" 1+2+4+…1 + 2 + 4 + \dots gives −1-1, a meaningless answer for a series whose partial sums are 2N+1−1→∞2^{N+1} - 1 \to \infty.

Telescoping series

If an=bn−bn+1a_n = b_n - b_{n+1} for some sequence (bn)(b_n), then consecutive terms cancel and

SN=(b1−b2)+(b2−b3)+⋯+(bN−bN+1)=b1−bN+1S_N = (b_1 - b_2) + (b_2 - b_3) + \dots + (b_N - b_{N+1}) = b_1 - b_{N+1}

So the series converges exactly when (bn)(b_n) converges, and then its sum is b1−lim⁡bnb_1 - \lim b_n. The work is in finding the bnb_n, often by partial fractions.

The divergence test

If ∑an\sum a_n converges, then an→0a_n \to 0.

The reason: aN=SN−SN−1a_N = S_N - S_{N-1}, and if SN→SS_N \to S then also SN−1→SS_{N-1} \to S, so aN→S−S=0a_N \to S - S = 0. The useful form is the contrapositive. If ana_n does not tend to 00 (it tends to something else, or has no limit), the series diverges. The test can only prove divergence. The converse is false: an→0a_n \to 0 does not make the series converge, and the harmonic series is the standard counterexample.

The harmonic series

The harmonic series is ∑n=1∞1/n\sum_{n=1}^{\infty} 1/n, with partial sums HN=1+12+⋯+1NH_N = 1 + \tfrac12 + \dots + \tfrac1N. Compare each term with an area. For n≥1n \ge 1 the function 1/x1/x is at most 1/n1/n on [n,n+1][n, n+1], so 1/n≥∫nn+1dx/x1/n \ge \int_n^{n+1} dx/x. Adding these inequalities for n=1,…,Nn = 1, \dots, N,

HN≥∫1N+1dxx=ln⁡(N+1)→∞H_N \ge \int_1^{N+1} \frac{dx}{x} = \ln(N+1) \to \infty

so the series diverges. This is the p=1p = 1 borderline of the pp-test from improper-integrals. A matching upper bound comes from 1/n≤∫n−1ndx/x1/n \le \int_{n-1}^{n} dx/x for n≥2n \ge 2, giving HN≤1+ln⁡NH_N \le 1 + \ln N. Together,

ln⁡(N+1)≤HN≤1+ln⁡N\ln(N+1) \le H_N \le 1 + \ln N

so HNH_N grows like ln⁡N\ln N: unboundedly, but very slowly.

Series with non-negative terms

If every an≥0a_n \ge 0, the partial sums are nondecreasing, so by the monotone convergence theorem the series converges if and only if (SN)(S_N) is bounded above. This is the tool behind comparison arguments, and it fails for terms of mixed sign. For example, since 1/n2≤1/(n(n−1))=1/(n−1)−1/n1/n^2 \le 1/(n(n-1)) = 1/(n-1) - 1/n for n≥2n \ge 2, a telescoping sum shows ∑n=1N1/n2≤1+(1−1/N)<2\sum_{n=1}^{N} 1/n^2 \le 1 + (1 - 1/N) < 2. The partial sums are bounded, so ∑1/n2\sum 1/n^2 converges. (Its sum is π2/6≈1.6449\pi^2/6 \approx 1.6449, a value that needs a different argument.) The next lesson, convergence-tests, collects more of these comparison ideas.

Worked Examples

Example 1: geometric series, a decimal, and the cases that fail

For ∑n=0∞(2/3)n\sum_{n=0}^{\infty} (2/3)^n we have a=1a = 1, r=2/3r = 2/3, so the sum is 1/(1−2/3)=31/(1 - 2/3) = 3. The partial sums approach it:

text
last index m S_m 0 1.0000 1 1.6667 2 2.1111 5 2.7366 10 2.9653 20 2.9994

The repeating decimal 0.272727⋯=27100+271002+…0.272727\dots = \dfrac{27}{100} + \dfrac{27}{100^2} + \dots is geometric with a=27/100a = 27/100 and r=1/100r = 1/100, so it equals 27/1001−1/100=2799=311\dfrac{27/100}{1 - 1/100} = \dfrac{27}{99} = \dfrac{3}{11}. A direct sum of the first six terms gives 0.2727272727270.272727272727, in agreement with 3/113/11 (the exact six-term sum is 0.2727272727270.272727272727, short of 3/113/11 by about 2.7×10−132.7 \times 10^{-13}).

Cases that fail: for r=−1r = -1 the partial sums are 1,0,1,0,…1, 0, 1, 0, \dots and do not converge, so ∑(−1)n\sum (-1)^n has no sum. For r=1.1r = 1.1 the terms grow and the divergence test applies. And the starting index matters for the value: ∑n=0∞(1/2)n=2\sum_{n=0}^{\infty} (1/2)^n = 2 while ∑n=1∞(1/2)n=1\sum_{n=1}^{\infty} (1/2)^n = 1.

Example 2: two telescoping sums, one convergent and one not

Convergent. Partial fractions give 1n(n+2)=12(1n−1n+2)\dfrac{1}{n(n+2)} = \dfrac12\left(\dfrac1n - \dfrac1{n+2}\right). The terms cancel two steps apart, so only the first two and the last two bb-values survive:

SN=12(1+12−1N+1−1N+2)→34S_N = \frac12\left(1 + \frac12 - \frac1{N+1} - \frac1{N+2}\right) \to \frac34

Checking in exact fractions for N=1,2,5,10,100N = 1, 2, 5, 10, 100 confirms the formula and gives SN=0.3333, 0.4583, 0.5952, 0.6629, 0.7401S_N = 0.3333,\ 0.4583,\ 0.5952,\ 0.6629,\ 0.7401, climbing toward 0.750.75.

Divergent, although the terms go to zero. Since ln⁡(1+1/n)=ln⁡(n+1)−ln⁡n\ln(1 + 1/n) = \ln(n+1) - \ln n, the partial sums telescope to SN=ln⁡(N+1)S_N = \ln(N+1), which is 2.3982.398 at N=10N = 10, 6.9096.909 at N=1000N = 1000, and 13.81613.816 at N=106N = 10^6. The series diverges even though ln⁡(1+1/n)→0\ln(1 + 1/n) \to 0.

Example 3: how slowly the harmonic series diverges

Direct computation and the bounds from Core Theory:

text
N ln(N+1) H_N 1 + ln N 10 2.398 2.929 3.303 100 4.615 5.187 5.605 1000 6.909 7.485 7.908 1000000 13.816 14.393 14.816

Each value of HNH_N sits between the bounds. The partial sum first exceeds 1010 at N=12367N = 12367. To pass 100100, use the approximation HN≈ln⁡N+γH_N \approx \ln N + \gamma with γ≈0.5772\gamma \approx 0.5772 (the Euler-Mascheroni constant): the partial sum passes 100100 near N≈e100−γ≈1.5×1043N \approx e^{100 - \gamma} \approx 1.5 \times 10^{43}. The sum is unbounded, and no computation could observe it. Divergence here is a statement about the limit, not about anything a machine will ever reach.

Example 4: floating point can make a divergent series look convergent

Sum 1/k1/k in single precision until adding a term no longer changes the total:

plaintext
import numpy as np total, k = np.float32(0), 0 while True: k += 1 new = np.float32(total + np.float32(1) / np.float32(k)) if new == total: # adding 1/k no longer changes the float32 sum break total = new print(k, total)

It prints 2097152 15.403683. The spacing of single-precision numbers near 15.415.4 is about 9.5×10−79.5 \times 10^{-7}, and the term 1/221≈4.8×10−71/2^{21} \approx 4.8 \times 10^{-7} is half of that, so from k=2097152=221k = 2097152 = 2^{21} onward each added term is rounded away and the computed sum stops at 15.40368315.403683. The true partial sum, computed in double precision, is H2097152≈15.1333H_{2097152} \approx 15.1333, and it keeps growing without bound. The float32 total also differs from it, because rounding errors accumulated over two million additions. A stopping rule "quit when the next term is below the resolution" would report a finite value for a series that diverges. Double precision pushes the stall much later but does not remove it.

Common Misconceptions & Pitfalls

  • "If an→0a_n \to 0, the series converges." The harmonic series and ∑ln⁡(1+1/n)\sum \ln(1 + 1/n) both have terms tending to 00 and diverge. The divergence test only works in one direction.
  • "The formula a/(1−r)a/(1-r) works for any ratio." It requires ∣r∣<1\lvert r \rvert < 1. For r=2r = 2 it returns −1-1 for a series whose partial sums go to infinity.
  • Mixing up the starting index. The same terms summed from n=0n = 0 or from n=1n = 1 differ by the first term. Write the first term out before using a formula.
  • "A series with tiny terms has converged." Example 4 sums terms smaller than 10−610^{-6} and gets stuck at a finite value, while the true series diverges. Tiny terms and a stalled floating-point total are not evidence of convergence.
  • "Parentheses and rearrangements are always safe." Grouping the terms of 1−1+1−1+…1 - 1 + 1 - 1 + \dots as (1−1)+(1−1)+…(1-1) + (1-1) + \dots gives 00, while 1+(−1+1)+(−1+1)+…1 + (-1+1) + (-1+1) + \dots gives 11, and the series has no sum at all (its partial sums alternate between 11 and 00). Rearranging the terms of a convergent series can also change its sum for some series, which requires the notion of absolute convergence to sort out.
  • "If the partial sums are bounded the series converges." This holds for non-negative terms, where the partial sums are monotone. For 1−1+1−1+…1 - 1 + 1 - 1 + \dots the partial sums are bounded and the series diverges.
  • Splitting a series into two divergent pieces. Linearity needs both series to converge.

Summary

An infinite series is the limit of its partial sums SNS_N: it converges when (SN)(S_N) does, and diverges otherwise. The geometric series ∑n=0∞arn\sum_{n=0}^{\infty} a r^n converges to a/(1−r)a/(1-r) exactly when ∣r∣<1\lvert r \rvert < 1. Telescoping series collapse to SN=b1−bN+1S_N = b_1 - b_{N+1}, so their convergence reduces to that of a sequence. The divergence test says that if an↛0a_n \not\to 0 the series diverges, but an→0a_n \to 0 guarantees nothing, as the harmonic series shows: ln⁡(N+1)≤HN≤1+ln⁡N\ln(N+1) \le H_N \le 1 + \ln N, so it diverges, but so slowly that HNH_N passes 1010 only at N=12367N = 12367. For non-negative terms, convergence is the same as bounded partial sums. Floating-point summation can stall on a divergent series, so numerical behavior alone proves nothing. The next lesson, convergence-tests, builds general criteria for deciding convergence without computing partial sums in closed form.

Documentation Links