Sequences & Summations
Sequence notation, geometric and arithmetic progressions, strings, finding formulas for sequences, Σ notation and its laws, the geometric series theorem, infinite series, double sums, and the standard closed forms.
▶Lecture videos
Click any timestamp — here or inside the notes — to jump the video to that moment. Your position is remembered.
Sequences & Summations – Part I
Sequences, progressions and finding formulas.
00:00Lesson 4: sequences and summations01:42Sequences as a data structure; finite and infinite04:29The nth term: n/(n + 1)05:35Geometric progression: a, ar, ar², …08:22Arithmetic progression: a, a + d, a + 2d, …10:04Example: sₙ = −1 + 4n12:51Strings: finite sequences14:50Finding formulas for sequences17:33Useful integer sequences: n², n³, n⁴, 2ⁿ, 3ⁿ, n!23:05Summation (Σ) notation25:49Laws of summation: linearity27:37Example 4.1.2: Σ 1/j for j = 1…100Sequences & Summations – Part II
Summation notation, geometric series and closed forms.
00:37Geometric series overview01:31Sum of a geometric series: r = 1 and r ≠ 103:31Deriving the formula: multiply by r and subtract09:41Worked sum: S = 19,68212:07Finite geometric series in sigma notation14:53Example 4.2.2: an infinite geometric series18:05Example 4.2.3: a double sum20:39Recap: inner sum first, then outer sum21:22Useful summation formulas (geometric, n, n², n³)25:46Example 4.2.430:01Suggested reading1Sequences
Sequences are ordered lists of elements. They're a discrete structure used to solve counting problems, and an important data structure in computer science.
- 1, 3, 5, 7, 9 is a finite sequence with five terms.
- 1, 3, 9, 27, 81, …, 3ⁿ, … is an infinite sequence.
aₙ = n / (n + 1) gives the terms 1/2, 2/3, 3/4, …, n/(n+1), …
2Geometric & arithmetic progressions
Geometric progression
a, ar, ar², …, arⁿ, …
- a = initial term
- r = common ratio (multiply by r each time)
Examples: - {(−1)ⁿ}: a = 1, r = −1 → 1, −1, 1, −1, … - {6·(1/3)ⁿ}: a = 6, r = 1/3 → 6, 2, 2/3, …
Arithmetic progression
a, a + d, a + 2d, …, a + nd, …
- a = initial term
- d = common difference (add d each time)
Example: - {sₙ = −1 + 4n}: a = −1, d = 4 → −1, 3, 7, 11, …
A finite sequence a₁, a₂, …, aₙ is also called a string. The length of the string is its number of terms. Example: "abcd" is a string of length 4.
Finding a formula for a sequence (Example 4.1.2)
| Terms | Pattern | Formula | Type |
|---|---|---|---|
| 1, 1/2, 1/4, 1/8, 1/16 | Each term is half the previous one | aₙ = (1/2)ⁿ, n = 0, 1, 2, … | Geometric, a = 1, r = 1/2 |
| 1, 3, 5, 7, 9 | Add 2 each time | aₙ = 2n + 1, n = 0, 1, 2, … | Arithmetic, a = 1, d = 2 |
| 1, −1, 1, −1, 1 | Alternating | aₙ = (−1)ⁿ, n = 0, 1, 2, … | Geometric, a = 1, r = −1 |
- Check the differences between terms. Constant → arithmetic.
- Check the ratios. Constant → geometric.
- Otherwise compare with the useful sequences below (squares, cubes, 2ⁿ, n!), or try "previous term(s) + something".
Table 1 — useful sequences (first 10 terms)
| nth term | Terms |
|---|---|
| n² | 1, 4, 9, 16, 25, 36, 49, 64, 81, 100, … |
| n³ | 1, 8, 27, 64, 125, 216, 343, 512, 729, 1000, … |
| n⁴ | 1, 16, 81, 256, 625, 1296, 2401, 4096, 6561, 10000, … |
| 2ⁿ | 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, … |
| 3ⁿ | 3, 9, 27, 81, 243, 729, 2187, 6561, 19683, 59049, … |
| n! | 1, 2, 6, 24, 120, 720, 5040, 40320, 362880, 3628800, … |
3Summation notation (Σ)
- j is the index of summation. It runs through every integer from the lower limit m to the upper limit n.
- Σ is the upper-case Greek letter sigma.
Σj=1n (a·xj + b·yj) = a·Σj=1n xj + b·Σj=1n yj
So you can split sums and pull constants out.
Lower limit 1, upper limit 100, so the sum is Σj=1100 1/j.
4Geometric series (Theorem 1)
Σj=0n a·rj = (a·rn+1 − a) / (r − 1) if r ≠ 1, and (n + 1)·a if r = 1
Proof sketch:
- Let S = Σj=0n a·rj.
- Multiply by r: rS = Σj=0n a·rj+1 = Σk=1n+1 a·rk.
- Remove the k = n+1 term and add the k = 0 term: rS = (Σk=0n a·rk) + (a·rn+1 − a) = S + (a·rn+1 − a).
- If r ≠ 1, solve for S: S = (a·rn+1 − a)/(r − 1).
- If r = 1, every term equals a, so S = (n + 1)a.
Split using Remark 4.2: S₁ + S₂.
- S₁ = Σ 3·2j with a = 3, r = 2: (3·2⁹ − 3)/(2 − 1) = 1536 − 3 = 1,533
- S₂ = Σ 2·3j with a = 2, r = 3: (2·3⁹ − 2)/(3 − 1) = (39,366 − 2)/2 = 19,682
Total = 1,533 + 19,682 = 21,215
5Infinite series (Theorem 2)
Proof: by Theorem 1 with a = 1, r = x, the partial sum is Σn=0k xⁿ = (xk+1 − 1)/(x − 1). Because |x| < 1, xk+1 → 0 as k → ∞. So the sum → (−1)/(x − 1) = 1/(1 − x). ∎
More generally, Σ a·rⁿ = a/(1 − r) when |r| < 1.
Rewrite each term: 2−2n·31+n = (1/4ⁿ)·3·3ⁿ = 3·(3/4)ⁿ.
This is geometric with a = 3 and r = 3/4 < 1, so S = 3/(1 − 3/4) = 3/(1/4) = 12.
6Double sums
Evaluate the inner sum first, then the outer sum.
- Inner sum over j = 0, 1, 2, 3: i·0 + i·1 + i·2 + i·3 = 6i
- Outer sum: Σi=02 6i = 0 + 6 + 12 = 18
7Useful closed forms (Table 2)
| Sum | Closed form |
|---|---|
| Σk=0n a·rk (r ≠ 0) | (a·rn+1 − a)/(r − 1), r ≠ 1 |
| Σk=1n k | n(n + 1)/2 |
| Σk=1n k² | n(n + 1)(2n + 1)/6 |
| Σk=1n k³ | n²(n + 1)²/4 |
| Σk=0∞ xk, |x| < 1 | 1/(1 − x) |
| Σk=1∞ k·xk−1, |x| < 1 | 1/(1 − x)² |
Use "sum up to 200 minus sum up to 99":
Σk=100200 k = Σk=1200 k − Σk=199 k = (200)(201)/2 − (99)(100)/2 = 20,100 − 4,950 = 15,150
The PDF writes (200)(201)/2 as "201,000" and gets 196,050. That's an arithmetic slip: 200 × 201 / 2 = 20,100, so the correct answer is 15,150. Check it with the Σ calculator's first button.
Expect:
- Finding terms aₙ
- Identifying arithmetic or geometric progressions and their a, d, r
- Writing a formula for a list of terms
- Writing sums in Σ notation
- Evaluating sums using splitting + geometric formula, the closed forms, and the "sum to n minus sum to m − 1" trick
- Infinite geometric series (rewrite as a·rⁿ first)
8Quick revision sheet
| Concept | Remember it as |
|---|---|
| Sequence | Ordered list: |
| Geometric | a, ar, ar², …: multiply by r |
| Arithmetic | a, a+d, a+2d, …: add d |
| String | Finite sequence; length = number of terms |
| Σ | Index j from lower m to upper n; linear, so split and factor |
| Geometric sum | (a·rn+1 − a)/(r − 1); if r = 1, (n+1)a |
| Infinite geometric | a/(1 − r), |r| < 1 |
| Σk, Σk², Σk³ | n(n+1)/2, n(n+1)(2n+1)/6, n²(n+1)²/4 |
| Partial range | Σmn = Σ1n − Σ1m−1 |
| Double sum | Inner first |
?Self-check quiz
11 questions on this week. Answer them all, then press Check my answers. Your best and latest scores are saved and shown on the subject page.