Sub topic 3
Arithmetic sequences and the nth term
This chapter assumes you can solve one-variable linear equations, use integer exponents, and read subscript notation. A sequence is an ordered list of numbers. Each number is a term. The term an is the nth term, so a1 is the first.
Arithmetic sequences
An arithmetic sequence adds the same constant d, the common difference, at each step. The nth term is an = a1 + (n - 1)d. The first term needs no step, so the nth term needs n - 1 steps.
Geometric sequences and the common ratio
A geometric sequence multiplies by a fixed common ratio r at each step. The nth term is an = a1 r^(n-1). Check for r = 1, which gives a constant sequence, and for negative r, which makes the signs alternate.
Recursive and pattern-based sequences
A recursive rule defines each term from the one before it. For example, a1 = 3 and an = 2a_(n-1) + 1. To reach a distant term, either iterate step by step or find a closed form. For a pattern-based sequence, guess the rule from the first few terms, then test the guess on a term you have not used.
Summing arithmetic and geometric sequences
For an arithmetic sum, Sn = n(a1 + an)/2. For a geometric sum with r not equal to 1, Sn = a_1(r^n - 1)/(r - 1).
def arithmetic_term(a1, d, n):
return a1 + (n - 1) * d
def arithmetic_sum(a1, d, n):
return n * (2 * a1 + (n - 1) * d) // 2
print(arithmetic_term(4, 3, 10)) # 31
print(arithmetic_sum(4, 3, 10)) # 175Quantitative comparison traps
Before you compare two quantities, ask three questions. Does the problem count n from 0 or from 1? Could r be negative or equal to 1? Does the pattern hold beyond the first two terms? Plug in small values, and test an edge case such as n = 1.
Exercise
In the sequence 7, 11, 15, ..., what is the 20th term?
Show answer
The common difference is d = 4. The 20th term is a_20 = 7 + (20 - 1)(4) = 7 + 76 = 83.