Professional Documents
Culture Documents
2.4
1
Definition of Sequences
A sequence is an ordered list of elements created by a function from a
subset of the set of integers (usually either the set {0, 1, 2, …} or the
set {1, 2, 3, …}) to a set S. We use the notation an to denote the
image of the integer n. We call an a term of the sequence.
2
Sequences - Example
• If an = 2n, find {an}
– a0 = 0
– a1 = 2
– a2 = 4
– a3 = 6
– Therefore, {an} = {0, 2, 4, 6, …..}
3
Sequences – Example (2)
• Consider the sequence {an}, where an = 1/n
– If the list of the terms of this sequence, beginning with
a1, namely, a1, a2, a3, a4, … , then we obtain-
4
Arithmetic Progression
An arithmetic progression is a sequence of the form
a, a + d, a + 2d, … , a + nd, …
where the initial term a, the common difference d are real numbers
and n is the term number.
We can also use an explicit formula: an = a + nd
• If a = 5 and d = 2, find the first 5 terms of {an}.
– {an} = {5, 7, 9, 11, 13}
• We can also find the values of a and d from a sequence
since a will always be the first element of the sequence
and d is the difference between any two consecutive
terms.
5
Geometric Progression
A geometric progression is a sequence of the form
a, ar, ar2, … , arn, …
where the initial term a and the common ratio to the nth power, rn are
real numbers.
We can also use an explicit formula: an = arn
• If a = 4 and r = 3, find the first 5 terms of {an}.
– {an} = {4, 12, 36, 108, 324}
• We can also find the values of a and r from a sequence
since a will always be the first element of the sequence
and r can be obtained by dividing a term by the previous
term.
6
Recurrence Relation
8
Fibonacci Sequence
• 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, …….
• The Fibonacci sequence, f0, f1, f2, … , is defined by the
initial conditions f0 = 0, f1 = 1, and the recurrence
relation:
fn = fn−1 + fn−2 for n = 2, 3, 4, … .
9
Solving Recurrence Relations
• Finding a non-recursive formula to calculate an is called
solving the recurrence relations. The solution is called the
closed formula.
• We have seen similar solutions previously in arithmetic
and geometric progressions by explicit formula but all
mathematical sequences are not arithmetic or geometric.
So, wee need another method.
– One such method is called iteration involving substitution.
10
Solving Recurrence Relations (Iteration)
a0 = 2
a1 = 2 + 3
a2 = (2 + 3) + 3 = 2 + 2(3)
a3 = (2 + 3 + 3) + 3 = 2 + 3(3)
a4 = (2 + 3 + 3 + 3) + 3 = 2 + 4(3)
⋮
an = 2 + 3n
11
Solving Recurrence Relations (Iteration)
12