Courses / Computer Science I
Calculus

Sequences and Series

A sequence is an ordered infinite list of numbers a1, a2, a3, ; a series is what you get by adding a sequence's terms: n=1^ an.

Computer Science I 303 words Free to read

Adding Infinitely Many Terms

A sequence is an ordered infinite list of numbers a1,a2,a3,a_1, a_2, a_3, \dots; a series is what you get by adding a sequence's terms: n=1an\sum_{n=1}^{\infty} a_n. The central question is convergence — does adding infinitely many terms approach a finite total, or grow without bound?

A sequence converges to a limit LL if its terms get arbitrarily close to LL (e.g. 1n0\frac{1}{n} \to 0). A series converges if its partial sums SN=a1++aNS_N = a_1 + \dots + a_N approach a finite limit as NN \to \infty. Remarkably, an infinite sum of positive terms can be finite: n=012n=1+12+14+18+=2.\sum_{n=0}^{\infty} \frac{1}{2^n} = 1 + \tfrac12 + \tfrac14 + \tfrac18 + \dots = 2. This is a geometric series rn\sum r^n, which converges precisely when r<1|r| < 1, to the neat sum 11r\frac{1}{1 - r} (starting from n=0n = 0).

A necessary warning sign: if the terms ana_n do not shrink to zero, the series cannot converge (the term test). But shrinking to zero is not sufficient — the classic harmonic series 1n\sum \frac{1}{n} has terms going to zero yet diverges (grows without bound). Convergence is subtler than "terms get small," and mathematicians use tests (comparison, ratio, integral) to decide it.

Series are foundational in computing: they define functions (next lesson's Taylor series), analyze algorithm running times (summing costs across recursion levels), and underlie numerical methods. Knowing whether and how fast a series converges is a practical, not just theoretical, concern.

Common pitfall: assuming that if the terms an0a_n \to 0 the series must converge. That is false — the harmonic series 1n\sum \frac{1}{n} has terms going to zero yet diverges. Terms shrinking to zero is necessary but not sufficient for convergence. (The valid one-way rule is the contrapositive: if the terms do not go to zero, the series definitely diverges.)

Practise this lesson

The explanation above is free to read. The graded practice for this lesson lives in the Tryals app.

11practice questions
2interactive scenes
Start Computer Science I free

Calculus