← mapFunctions & Growth

Sequences & Series

⚗ Dr. Möbius, from the lab

A sequence is just a function NR\mathbb{N} \to \mathbb{R}. I know that sounds anticlimactic — you've been doing functions all stratum, and now I tell you sequences are more of the same. They are, you clever bastard. But the specific functions you get from arithmetic and geometric patterns are linear and exponential in disguise, and the sums of those patterns have closed forms that you should be able to derive on the spot — not recite from memory like a parrot trained by the Federation of Boring Textbook Authors. Let's build them from scratch.

THE BIG IDEA

Sequences are functions on the natural numbers; arithmetic sequences are linear and geometric sequences are exponential; their sums have closed-form formulas that follow from the structure of the sequence itself.

Sequences are functions

A sequence is a function a:NRa: \mathbb{N} \to \mathbb{R}, usually written a1,a2,a3,a_1, a_2, a_3, \ldots or (an)n=1(a_n)_{n=1}^{\infty}. The index nn is the input; ana_n is the output.

Two ways to define a sequence:

  • Explicit (closed-form): an=3n+1a_n = 3n + 1 gives the value directly from nn.
  • Recursive: a1=4a_1 = 4, an+1=an+3a_{n+1} = a_n + 3 — gives the next term from the previous.

Same sequence, two descriptions. The explicit form is almost always more useful for finding distant terms; the recursive form is usually easier to discover. Pick your weapon based on the problem. Don't be the person who grinds through a recursive formula 47 times when the explicit form was right there.

Arithmetic sequences: linear in disguise

An arithmetic sequence has a constant difference dd between consecutive terms: an+1an=dfor all n.a_{n+1} - a_n = d \quad \text{for all } n.

The general term: an=a1+(n1)d.a_n = a_1 + (n-1)d.

This is a linear function of nn — slope dd, y-intercept (in terms of n=0n=0) would be a1da_1 - d. Everything you know about lines applies: constant rate of change, predictable behavior.

Common difference d>0d > 0: increasing. d<0d < 0: decreasing. d=0d = 0: constant sequence.

Geometric sequences: exponential in disguise

A geometric sequence has a constant ratio rr between consecutive terms: an+1an=rfor all n.\frac{a_{n+1}}{a_n} = r \quad \text{for all } n.

The general term: an=a1rn1.a_n = a_1 \cdot r^{n-1}.

This is an exponential function of nn — the same constant-ratio structure from the Exponential Functions lesson, now counting discrete steps n=1,2,3,n = 1, 2, 3, \ldots instead of continuous xx.

r>1r > 1: exponential growth. 0<r<10 < r < 1: exponential decay. r<0r < 0: oscillating (alternating signs).

Sigma notation

The sum a1+a2++ana_1 + a_2 + \cdots + a_n is written: k=1nak.\sum_{k=1}^{n} a_k.

Read: "sum from k=1k = 1 to nn of aka_k." The variable kk is a dummy index — it runs through 1,2,,n1, 2, \ldots, n and doesn't exist outside the sum. Properties:

k=1n(ak+bk)=k=1nak+k=1nbk,k=1n(cak)=ck=1nak.\sum_{k=1}^{n}(a_k + b_k) = \sum_{k=1}^{n} a_k + \sum_{k=1}^{n} b_k, \qquad \sum_{k=1}^{n}(c \cdot a_k) = c \sum_{k=1}^{n} a_k.

These are linearity properties, and they follow from the commutativity and associativity of addition.

Sum of an arithmetic series: the pairing trick

Theorem. k=1nak=n(a1+an)2\displaystyle\sum_{k=1}^{n} a_k = \frac{n(a_1 + a_n)}{2} for an arithmetic sequence.

Proof. Let S=a1+a2++anS = a_1 + a_2 + \cdots + a_n. Write SS forward AND backward: S=a1+a2++anS = a_1 + a_2 + \cdots + a_n S=an+an1++a1.S = a_n + a_{n-1} + \cdots + a_1.

Add the two expressions, pairing corresponding terms. Each pair sums to a1+ana_1 + a_n (the first plus the last — and since the sequence is arithmetic, every pair has the same sum): 2S=n(a1+an).2S = n(a_1 + a_n). S=n(a1+an)2.S = \frac{n(a_1 + a_n)}{2}. \quad \square

This is the Gauss pairing argument — allegedly the trick Gauss used as a child to compute 1+2++100=50501 + 2 + \cdots + 100 = 5050 in seconds while his teacher was expecting him to suffer through it. The proof is one line once you see it, and once you see it you can't unsee it. That's how all great mathematics works.

Induction cameo. We could also prove k=1nk=n(n+1)/2\sum_{k=1}^{n} k = n(n+1)/2 by induction (base case n=1n=1: 1=1(2)/21 = 1(2)/2; inductive step: assume it holds for kk, show for k+1k+1). The pairing proof is cleaner, but induction works — see the Induction node.

Sum of a geometric series: the multiply-and-subtract trick

Finite sum. k=0n1ark=arn1r1\displaystyle\sum_{k=0}^{n-1} a r^k = a \cdot \frac{r^n - 1}{r - 1} for r1r \ne 1.

Proof. Let S=a+ar+ar2++arn1S = a + ar + ar^2 + \cdots + ar^{n-1}. Multiply by rr: rS=ar+ar2++arn1+arn.rS = ar + ar^2 + \cdots + ar^{n-1} + ar^n. Subtract SS from rSrS: almost everything cancels: rSS=arna.rS - S = ar^n - a. S(r1)=a(rn1).S(r-1) = a(r^n - 1). S=arn1r1.S = a \cdot \frac{r^n - 1}{r - 1}. \quad \square

This "multiply by rr and subtract" trick is the standard proof — elegant, surgical, and worth understanding deeply. Memorize the trick, not the formula. The formula follows from the trick in 30 seconds, and if you forget the formula on an exam you can re-derive the whole damn thing on a napkin. That's the power of actually understanding the proof.

Infinite geometric series

When r<1|r| < 1, the terms arn1ar^{n-1} shrink toward 0 as nn \to \infty. The finite sum becomes: k=0ark=limnarn1r1=a01r1=a1r.\sum_{k=0}^{\infty} ar^k = \lim_{n \to \infty} a \cdot \frac{r^n - 1}{r - 1} = a \cdot \frac{0 - 1}{r - 1} = \frac{a}{1 - r}.

(Since r<1|r| < 1: rn0r^n \to 0, so the numerator rn11r^n - 1 \to -1.)

When r1|r| \ge 1, the terms don't shrink; the series diverges (the sum grows without bound or oscillates). No finite answer.

The 0.9=10.\overline{9} = 1 fight. 0.999=9/10+9/100+9/1000+=9/1011/10=9/109/10=10.999\ldots = 9/10 + 9/100 + 9/1000 + \cdots = \dfrac{9/10}{1 - 1/10} = \dfrac{9/10}{9/10} = 1.

This is not a philosophical opinion, not a limit "approaching" something, not a rounding error. It is an exact equality, derived directly from the infinite geometric series formula. The decimal 0.90.\overline{9} and the integer 11 are the same real number, full stop. Anyone who argues otherwise in the comments section is wrong. Provably, mathematically, demonstrably wrong.

🔬 SPECIMENS (worked examples)

Worked example 1 — identifying and finding terms

The sequence 3,7,11,15,3, 7, 11, 15, \ldots — what type is it? Find a20a_{20}.

Check the difference. 73=47 - 3 = 4, 117=411 - 7 = 4, 1511=415 - 11 = 4. Constant difference d=4d = 4: this is arithmetic.

General term. an=a1+(n1)d=3+(n1)4=3+4n4=4n1a_n = a_1 + (n-1)d = 3 + (n-1) \cdot 4 = 3 + 4n - 4 = 4n - 1.

20th term. a20=4(20)1=79a_{20} = 4(20) - 1 = 79.

Check. a1=4(1)1=3a_1 = 4(1) - 1 = 3. a2=4(2)1=7a_2 = 4(2) - 1 = 7. Matches.

This is a linear function of nn — slope 4, which is the common difference. The sequence is literally a linear function evaluated at the positive integers.

Worked example 2 — proving the sum formula using multiply-and-subtract

Find the sum S=2+6+18+54++239S = 2 + 6 + 18 + 54 + \cdots + 2 \cdot 3^9.

Identify the series. First term a=2a = 2, ratio r=6/2=3r = 6/2 = 3, and the last term is 2392 \cdot 3^9 (so the exponent runs from 0 to 9: that's n=10n = 10 terms).

Derive the formula. Let S=2+23+232++239S = 2 + 2\cdot3 + 2\cdot3^2 + \cdots + 2\cdot3^9. Multiply by r=3r = 3: 3S=23+232++239+2310.3S = 2\cdot3 + 2\cdot3^2 + \cdots + 2\cdot3^9 + 2\cdot3^{10}. Subtract: 3SS=231023S - S = 2\cdot3^{10} - 2, so 2S=2(3101)2S = 2(3^{10} - 1) and S=3101S = 3^{10} - 1.

Compute. 310=590493^{10} = 59049, so S=590491=59048S = 59049 - 1 = 59048.

Using the formula directly. S=a(rn1)/(r1)=2(3101)/(31)=2(590491)/2=59048S = a(r^n - 1)/(r-1) = 2(3^{10} - 1)/(3-1) = 2(59049-1)/2 = 59048. Same answer.

Worked example 3 — infinite series and $0.\overline{9} = 1$

(a) Compute k=0(13)k\displaystyle\sum_{k=0}^{\infty} \left(\frac{1}{3}\right)^k. (b) Show that 0.3=1/30.\overline{3} = 1/3 using the geometric series formula.

(a) Here a=1a = 1, r=1/3r = 1/3, r<1|r| < 1. Apply the formula: k=0(13)k=a1r=111/3=12/3=32.\sum_{k=0}^{\infty} \left(\frac{1}{3}\right)^k = \frac{a}{1-r} = \frac{1}{1 - 1/3} = \frac{1}{2/3} = \frac{3}{2}.

Check: 1+1/3+1/9+1/27+1+0.333+0.111+0.037+1.48,1.49,1 + 1/3 + 1/9 + 1/27 + \cdots \approx 1 + 0.333 + 0.111 + 0.037 + \cdots \approx 1.48, 1.49, \ldots approaching 1.5=3/21.5 = 3/2. Plausible.

(b) 0.3=0.3333=3/10+3/100+3/1000+0.\overline{3} = 0.3333\ldots = 3/10 + 3/100 + 3/1000 + \cdots. This is a geometric series with a=3/10a = 3/10 and r=1/10r = 1/10: 0.3=3/1011/10=3/109/10=39=13.0.\overline{3} = \frac{3/10}{1 - 1/10} = \frac{3/10}{9/10} = \frac{3}{9} = \frac{1}{3}.

So 0.3=1/30.\overline{3} = 1/3 exactly. And therefore 0.9=3×0.3=3×1/3=10.\overline{9} = 3 \times 0.\overline{3} = 3 \times 1/3 = 1.

☠ KNOWN HAZARDS

  • Using the finite geometric formula when r=1r = 1. The formula a(rn1)/(r1)a(r^n-1)/(r-1) has r1=0r-1 = 0 in the denominator when r=1r = 1. Don't divide by zero — that way lies madness and undefined nonsense. When r=1r = 1, the geometric series is just a+a++a=naa + a + \cdots + a = na.

  • Confusing arithmetic and geometric sequences from the formula. Arithmetic: an=a1+(n1)da_n = a_1 + (n-1)d has nn in a product (linear). Geometric: an=a1rn1a_n = a_1 r^{n-1} has nn in an exponent (exponential). They look superficially similar; one is a line, the other is an exponential curve. They grow completely differently. Know which one you're dealing with.

  • Assuming all infinite series converge. The infinite geometric series formula requires r<1|r| < 1. For r1|r| \ge 1, the series diverges and there is no finite sum. Applying the formula anyway gives nonsense — like the "proof" that 1+2+4+8+=11 + 2 + 4 + 8 + \cdots = -1, which is the kind of thing that gets circulated on the internet as "mathematics is broken." It is not broken. You violated the hypothesis. Check your hypotheses.

  • Off-by-one errors with indexing. k=0n1ark\sum_{k=0}^{n-1} ar^k has nn terms. k=1nark1\sum_{k=1}^{n} ar^{k-1} also has nn terms. k=1nark\sum_{k=1}^{n} ar^k has nn terms but starts at arar. Know your index. Off-by-one errors are the silent killers of otherwise correct solutions.

TL;DR

  • Sequences are functions NR\mathbb{N} \to \mathbb{R}; they can be defined explicitly or recursively.

  • Arithmetic sequence: constant difference dd; general term an=a1+(n1)da_n = a_1 + (n-1)d — linear in nn.

  • Geometric sequence: constant ratio rr; general term an=a1rn1a_n = a_1 r^{n-1} — exponential in nn.

  • Arithmetic series sum: n(a1+an)2\frac{n(a_1 + a_n)}{2} (proved by the pairing trick). Finite geometric series sum: a(rn1)/(r1)a(r^n - 1)/(r-1) (proved by multiply-and-subtract).

  • Infinite geometric series: a/(1r)a/(1-r) when r<1|r| < 1; diverges otherwise. 0.9=10.\overline{9} = 1 is this formula in action.

unlocks