Section 5.5 Defining Sequences Recursively
We’ve seen sequences defined explicitly, such as
Another common way to generate a sequence is by giving a rule for how to generate the next term from the previous term. For example,
where
Such sequences are called
recursively defined sequences.
Example 5.5.1. Explicitly Defined Sequences.
Find the first five terms of the sequence given by
Answer 1.
Find the first five terms of the sequence given by
Answer 2.
Activity 5.5.1.
Write out the first 6 terms of the sequence
Example 5.5.2. Recursively Defined Sequences.
Find the first five terms of the sequence given by
Answer 1.
Find the first five terms of the sequence given by
Answer 2.
Find the first five terms of the sequence given by
Answer 3.
Activity 5.5.2.
Write out the first 6 terms of the sequence
Although both types of sequences use an equation to find
the recursive sequence also needs to define the first few terms. If we change the
initial terms, we get a different sequence. The formula used to generate the recursive sequence is called a
recurrence relation, while the first term (or terms) is called the
initial condition(s).
An advantage of an explicitly defined sequence is that it is easy to find any particular term. For example, it would be easy to calculate
in
Example 5.5.1. In order to find
in
Example 5.5.2, we would need to know
and all the terms before that. So we would need to have generated the sequence up to that point to calculate a specific term.
Recursive sequences have the advantage that they can be faster (or computationally simpler) to calculate, especially if you need to generate many terms of the sequence. Computers are good at generating recursive sequences. It also may be the case that we can easily define a recursive sequence in which it is difficult, or even impossible, to express with an explicit formula.
Example 5.5.3. The Fibonacci Sequence.
The Fibonacci sequence is defined recursively by
Give the first 6 terms of the Fibonacci sequence.
Answer.
Activity 5.5.3.
Write out the 7th, 8th, and 9th terms of the Fibonacci sequence.
The Fibonacci sequence is a good example of a recursively defined sequence where it is difficult to find an explicit formula. An explicit formula for the Fibonacci sequence does exist, we will see it in the next section and in
Exercise 5.5.7, but it requires much more sophisticated mathematics to find it than anything we will see in this course. If you are interested, though, this is the sort of thing you would see if you take a combinatorics course. When we do see the formula, it should be clear that it is computationally
much harder to work with than the recursive definiton (which is why you rarely see it when working with the Fibonacci sequence).
Activity 5.5.4.
We would like to explore the connection between recursive and explicit sequences.
(a)
Write out the first 6 terms of
Is this an explicitly or recursively defined sequence?
(b)
Consider the recurrence relationship
Write out several terms of the sequence for a couple different choices of initial terms.
(c)
How do the sequences in (a) and (b) compare?
We want to be able to show the relationship between the recursive definition and the explicit definition for a sequence. In this section we will look at proving an explicit sequence satisfies a given recurrence relation. Since, in general, explict formulas contain more information than a recurrence relation, we can use simpler proof techniques to show an explicit sequence satisfies a recurrence relation.
Proving a Sequence Satisfies a Recurrence Relation.
To prove an explicity defined sequence satisfies a recurrence relation:
-
Assume the explicit formula for the sequence.
-
Show, using a LHS/RHS proof, that the recurrence relation holds.
This is always a direct proof. Do not use induction. We will see induction in the next section.
Example 5.5.4. Proving a Recurrence Relation for an Explicit Sequence.
Let
Show this sequence satisfies the recurrence relation
for
Proof.
Assume
for all
Show this sequence statisfies the recurrence relation
LHS:
since we know that
satisfies the explicit formula.
RHS:
since we know that
satisfies the explicit formula.
Activity 5.5.5.
Prove
satisfies the recurrence relationship
by assuming the sequence is given by
and showing
To show an explicitly defined sequence satisfies a recurrence relationship always assume the explicit formula and show the recursive one. This can almost always be done with a direct proof.
We can use the recurrence relation for the Fibonacci numbers to prove additional properties.
Activity 5.5.6.
For the Fibonacci sequence, prove
for all
Hint.
Pick whichever side of the equation looks easier to start with. Do some algebra and, where appropriate, use the recursive definition for
If you get stuck, try working with the other side of the equation.
Reading Questions Check Your Understanding
1.
Find the 4th term of the sequence:
2.
Find the 4th term of the sequence:
3.
Find the 4th term of the sequence:
4.
Find the 4th term of the sequence:
5.
Determine if the following sequence is explicitly defined or recursively defined:
6.
Determine if the following sequence is explicitly defined or recursively defined:
7.
Determine if the following sequence is explicitly defined or recursively defined:
8.
Determine if the following sequence is explicitly defined or recursively defined:
9.
Let
Show this sequence satisfies the recurrence relation
Hint.
This is a LHS/RHS proof showing the recurrence relation is true when you assume
In particular, you know
and
10.
Let
Show this sequence satisfies the recurrence relation
Hint.
This is a LHS/RHS proof showing the recurrence relation is true when you assume
In particular, you know
and
11.
Let
Show this sequence satisfies the recurrence relation
Hint.
This is a LHS/RHS proof showing the recurrence relation is true when you assume
In particular, you know
and
Exercises Exercises
1.
Find the first 4 terms of the sequence defined by
2.
Find the first 4 terms of the sequence defined by
3.
Let
be the sequence defined by the formula
for all integers
Show that this sequence satisfies the recurrence relation
for all integers
4.
Let
be the sequence defined by the formula
for all integers
Show that this sequence satisfies the recurrence relation
for all integers
5.
Let be the sequence defined by the formula for all integers Show that this sequence satisfies the recurrence relation
6.
Let be the Fibonacci sequence. Prove that
for all integers
7.
It turns out that the Fibonacci sequence satisfies the following explicit formula:
Verify that the sequence defined by this explicit formula satisfies the Fibonacci recurrence relation for all integers
You have attempted
1 of
9 activities on this page.