Week 4 - (Part B) Recurrence Relations
Week 4 - (Part B) Recurrence Relations
Week 4 - (Part B) Recurrence Relations
Section…………………………………………………………………………………………….Page
Bibliography ……………………………………………………………………………………….12
Sequences
A sequence is an ordered set of numbers. For example: 1, 2, 3, 4, … is an example of a sequence.
We can see that, in the sequence given above, it is easy to tell what number comes next because the
sequence follows a particular pattern. This is exactly what we are going to look at: sequences that
follow a particular pattern.
But sometimes it is not easy to tell what number comes next as in the sequence: 1, 5, 9, 13, 17. As a
result, it is preferable to use a formula or rule which clearly defines the terms of the sequence.
Before we look at the formulae, we need to see that terms of the sequences are usually labelled with
subscripts as,
:
:
: ( ) ( ) ( )
We can see that the formula helps to determine any number, at any position, in the sequence
without having to first list all the previous numbers.
Recurrence Relations
A recurrence relation is a formula relating a term of the sequence to previous terms and to an initial
condition (or a list of first few terms of the sequence). But a recurrence relation together with an initial
condition is altogether called a recursive definition. For example,
with , where
with , where
We have:
If we were to pick the first three numbers/terms of the sequence and add them, we would have 2+5+6.
This is called a partial sum of the sequence, denoted by , because not all numbers of the sequence
have been added.
From the partially determined sequence above, we would have some partial sums as
A partial sum of the sequence can be represented in a compact form called sigma notation and the
Greek capital letter sigma is used to mean “sum up”.
Examples
Example
i)
ii)
Solutions
i)
ii)
Arithmetic Sequences
An arithmetic sequence is a sequence in which there is a constant difference (also called a common
difference) between any two consecutive terms. Given that the initial term of the sequence is
and the common difference is , then we have
and
Example 3.1
Given the sequences below, find for each a recurrence relation and closed formula by assuming that the
initial term is the first listed value in the sequence.
Solution 3.1
Geometric Sequences
A geometric sequence is a sequence in which there is a constant quotient (called a common ratio)
between any two consecutive terms. Given that the initial term of the sequence is and the
common ratio is , then we have
and
Example 3.2
Given the sequences below, find for each a recurrence relation and closed formula by assuming that the
initial term is the first listed value in the sequence.
Solution 3.2
Solving a recurrence relation is about finding a closed formula (a function of ) which satisfies the
recurrence relation and its initial condition. To solve recurrence relations we will look at three different
methods for three different cases.
Example 3.3
Solution 3.3
Here, we will have to iterate the process of finding the next term by starting with a known initial
condition up until we have .
Example 3.4
Solution 3.4
Example 3.5
Solve the following linear recurrence relation using back tracking method
with
Solution 3.5
First, we have
And then, by taking the linear recurrence relation and replacing the terms , we
have
The characteristic root method is used to solve linear homogeneous recurrence relations with constant
coefficients.
Any given linear homogeneous relation of degree is always associated with a polynomial of degree
which we call a characteristic equation and it is of the form
We have a characteristic equation of degree which means, solving for it, we will have to find its
roots .
The linear homogeneous recurrence relation of degree 2, having the form , can
be solved using the characteristic root method.
If and are two distinct roots of the characteristic polynomial, i.e. solution to the characteristic
equation, then the solution to the recurrence relation is
Example 3.6
Solution 3.6
Therefore, the solution to the recurrence relation will have the form
To solve for a and b, we plug n=0 and n=1 in the solution form above to get a system of equations with
two unknowns:
Solving this system, we get and , which finally gives the solution to the recurrence
relation as