Sub topic 1
Sequences, series and how to recognise a pattern
Prerequisites
This chapter assumes you can work with fractions and negative numbers, solve linear equations, use the laws of indices, and expand brackets. You should also be comfortable reading simple subscript notation such as a_n.
Sequences and series
A sequence is an ordered list of numbers, such as 3, 7, 11, 15. Each number is a term. A series is the sum of the terms, such as 3 + 7 + 11 + 15.
To recognise a pattern, compare neighbouring terms. If the difference between consecutive terms is constant, the sequence may be an arithmetic progression (AP). If the ratio is constant, it may be a geometric progression (GP).
Arithmetic progressions and the common difference
An arithmetic progression is a sequence in which each term equals the previous term plus a fixed number d, called the common difference. For 3, 7, 11, 15, the common difference is d = 4.
Finding the nth term of an AP
If the first term is a and the common difference is d, then the nth term is a_n = a + (n - 1)d.
Summing an AP: two forms of the formula
The sum of the first n terms is Sn = n/2 [2a + (n - 1)d]. When the last term l is known, use Sn = n/2 (a + l).
def ap_nth(a, d, n):
return a + (n - 1) * d
def ap_sum(a, d, n):
return n * (2 * a + (n - 1) * d) // 2
print(ap_nth(3, 4, 10)) # 39
print(ap_sum(3, 4, 10)) # 210AP properties: middle term, symmetric terms and smart variable choices
In an AP, terms equally far from the two ends have the same total: a1 + an = a2 + a(n-1). If n is odd, the middle term is the average of all terms, so S_n = n × middle term.
When a problem involves three terms in AP, write them as x - d, x and x + d. The common difference cancels out of the sum, which reduces the number of variables.
Exercise
The first term of an AP is 5 and the common difference is 3. What is the sum of the first 20 terms?
Show answer
S_20 = 20/2 [2(5) + 19(3)] = 10 × 67 = 670.