Sub topic 15
Arithmetico-geometric series and telescoping tricks
This chapter assumes you can sum an AP and a GP, use the infinite GP sum a / (1 - r) when |r| < 1, and do basic partial-fraction style algebra. Both techniques here reduce a hard-looking sum to progressions you already know.
What an arithmetico-geometric series is
An arithmetico-geometric series (AGP) has terms that are the product of an AP term and a GP term:
a, (a + d)r, (a + 2d)r², (a + 3d)r³, ...
The k-th term is (a + (k - 1)d) · r^(k-1). Examples are 1 + 2x + 3x² + ... and 1/2 + 2/4 + 3/8 + .... A plain AP formula fails because of the powers of r. A plain GP formula fails because of the growing multiplier. The standard fix is to multiply by r and subtract.
The multiply-and-subtract method
Take the finite sum S = 1 + 2·2 + 3·4 + ... + n·2^(n-1). Here r = 2.
- Write
S = 1 + 2·2 + 3·2² + ... + n·2^(n-1). - Multiply by
r:2S = 1·2 + 2·2² + ... + (n-1)·2^(n-1) + n·2^n. - Subtract, lining up equal powers:
S - 2S = 1 + 2 + 2² + ... + 2^(n-1) - n·2^n. - The right side is a plain GP minus one leftover term:
-S = (2^n - 1) - n·2^n. - So
S = (n - 1)·2^n + 1.
Check with n = 3: 1 + 4 + 12 = 17, and (3 - 1)·8 + 1 = 17.
The subtraction turns the multipliers 1, 2, 3, ... into their differences 1, 1, 1, .... That is why a GP is left over. If the multiplier were quadratic, you would repeat the subtraction twice.
The general formulas
Applying the same steps to S = Σ (a + (k-1)d) r^(k-1) for k = 1 to n, with r ≠ 1, gives:
S_n = [a - (a + (n-1)d) r^n] / (1 - r) + d·r·(1 - r^(n-1)) / (1 - r)²
When |r| < 1, the powers r^n and r^(n-1) shrink to 0, and the infinite sum is:
S_∞ = a / (1 - r) + d·r / (1 - r)²
Do not memorise these for the exam. Re-deriving with multiply-and-subtract takes about a minute and is harder to get wrong. Use the formula to check a result.
from fractions import Fraction
def agp_term(a, d, r, k):
return (a + (k - 1) * d) * r ** (k - 1)
def agp_sum_formula(a, d, r, n):
a, d, r = Fraction(a), Fraction(d), Fraction(r)
if r == 1:
raise ValueError("r = 1 is an AP; use the AP sum")
first = (a - (a + (n - 1) * d) * r ** n) / (1 - r)
second = d * r * (1 - r ** (n - 1)) / (1 - r) ** 2
return first + second
def agp_sum_direct(a, d, r, n):
return sum(Fraction(agp_term(a, d, Fraction(r), k)) for k in range(1, n + 1))
print(agp_sum_formula(1, 1, 2, 3)) # 17
print(agp_sum_direct(1, 1, 2, 3)) # 17
print(agp_sum_formula(1, 3, Fraction(1, 5), 40) == agp_sum_direct(1, 3, Fraction(1, 5), 40)) # True
def agp_infinite(a, d, r):
a, d, r = Fraction(a), Fraction(d), Fraction(r)
if abs(r) >= 1:
raise ValueError("the infinite sum exists only when |r| < 1")
return a / (1 - r) + d * r / (1 - r) ** 2
print(agp_infinite(1, 3, Fraction(1, 5))) # 35/16Worked example: infinite AGP
Find 1 + 4/5 + 7/25 + 10/125 + ....
The multipliers 1, 4, 7, 10 form an AP with a = 1, d = 3. The denominators are powers of 5, so r = 1/5, and |r| < 1.
a / (1 - r) = 1 / (4/5) = 5/4d·r / (1 - r)² = (3/5) / (16/25) = 15/16- Total:
5/4 + 15/16 = 35/16 = 2.1875
A partial sum confirms this. The first seven terms give about 2.1871.
A frequent special case is Σ k/2^k = 1/2 + 2/4 + 3/8 + .... Factor out the first term's 1/2 so the series reads (1/2)(1 + 2(1/2) + 3(1/4) + ...). The bracket has a = 1, d = 1, r = 1/2, so it equals 1/(1/2) + (1/2)/(1/4) = 2 + 2 = 4... but that double-counts, because the bracket is 1 + 2r + 3r² + ..., which is 1/(1-r)² = 4 directly. So the sum is (1/2) · 4 = 2. Using 1/(1 - r)² for 1 + 2r + 3r² + ... is a useful shortcut to remember.
Telescoping: collapse the middle
A series telescopes when each term can be written as f(k) - f(k + 1). Then the partial sum is
Σ [f(k) - f(k+1)] = f(1) - f(n+1)
because every middle value appears once with a plus sign and once with a minus sign. The whole skill is finding f.
| Term | Rewrite | Partial sum to n |
|---|---|---|
| `1 / (k(k+1))` | `1/k - 1/(k+1)` | `1 - 1/(n+1)` |
| `1 / (k(k+d))` | `(1/d)(1/k - 1/(k+d))` | first few and last few survive |
| `1 / (k(k+1)(k+2))` | `(1/2)[1/(k(k+1)) - 1/((k+1)(k+2))]` | `(1/2)[1/2 - 1/((n+1)(n+2))]` |
| `1 / (√k + √(k+1))` | `√(k+1) - √k` | `√(n+1) - 1` |
| `k · k!` | `(k+1)! - k!` | `(n+1)! - 1` |
| `k(k+1)` | `[k(k+1)(k+2) - (k-1)k(k+1)] / 3` | `n(n+1)(n+2) / 3` |
For consecutive terms of an AP with common difference d, the key identity is
1 / (u_k · u_(k+1)) = (1/d) · (1/u_k - 1/u_(k+1))
You can verify it by combining the fractions: the numerator u_(k+1) - u_k equals d.
Worked example
Find 1/(1·3) + 1/(3·5) + 1/(5·7) + ... + 1/(97·99).
The factors 1, 3, 5, ..., 99 form an AP with d = 2. Each term is (1/2)(1/u - 1/(u+2)), so the sum is
(1/2)(1 - 1/99) = (1/2)(98/99) = 49/99
Notice that the first and last values of u are all you need. The number of terms never enters.
from fractions import Fraction
import math
# 1/(1*3) + 1/(3*5) + ... + 1/(97*99)
total = sum(Fraction(1, u * (u + 2)) for u in range(1, 98, 2))
print(total) # 49/99
print(total == Fraction(1, 2) * (1 - Fraction(1, 99))) # True
# 1/(1+sqrt2) + 1/(sqrt2+sqrt3) + ... + 1/(sqrt99+sqrt100)
surd_total = sum(1 / (math.sqrt(k) + math.sqrt(k + 1)) for k in range(1, 100))
print(round(surd_total, 10)) # 9.0
# sum of k * k! for k = 1..6 equals 7! - 1
print(sum(k * math.factorial(k) for k in range(1, 7)) == math.factorial(7) - 1) # TrueThe surd case works by rationalising: multiply top and bottom by √(k+1) - √k. The denominator becomes (k+1) - k = 1. The sum is then √100 - √1 = 9.
Choosing the method
Common errors
- Dropping the leftover term. After subtracting
S - rS, the last term-(a + (n-1)d)·r^nis easy to forget. Testn = 1orn = 2to catch this. - Wrong GP length. In step 3 of the method, the GP in the middle has
n - 1terms of difference-sized multipliers plus the first term. Count it explicitly. - Applying the infinite formula when
|r| ≥ 1. The series diverges.1 + 2 + 4 + 8 + ...has no sum, even though the formula returns-1if you plug inr = 2. - Surviving terms. For
1/(k(k+d))withd > 1, several leading and trailing terms survive. Withd = 2, the sum is(1/2)[1 + 1/2 - 1/(n+1) - 1/(n+2)]whenkruns over all integers from 1. Write out the first and lastdterms to see which ones remain. - Forgetting the factor
1/d. The split1/k - 1/(k+d)equalsd / (k(k+d)), not1 / (k(k+d)).
Exercises
Exercise
Find the sum to infinity of 1 + 2/3 + 3/9 + 4/27 + ...
Show answer
The multipliers 1, 2, 3, ... form an AP with a = 1 and d = 1. The ratio is r = 1/3, and |r| < 1. The sum is a/(1 - r) + d·r/(1 - r)² = 1/(2/3) + (1/3)/(4/9) = 3/2 + 3/4 = 9/4. (This is also 1/(1 - r)² = 1/(4/9) = 9/4.)
Exercise
Evaluate 1/(2·5) + 1/(5·8) + 1/(8·11) + ... + 1/(32·35).
Show answer
The factors 2, 5, 8, ..., 35 form an AP with d = 3. Each term equals (1/3)(1/u - 1/(u + 3)). The sum telescopes to (1/3)(1/2 - 1/35) = (1/3)(33/70) = 11/70.