Section 2.1 Describing Sequences
Investigate!
You have a large collection of squares and dominoes. You want to arrange these to make a strip. How many ways can you do this?
-
Start by collecting data. How many length
strips can you make? How many
strips? How many
strips? And so on.
-
How are the
and
strips related to the
strips?
-
How many
strips can you make?
-
What if I asked you to find the number of
strips? Would the method you used to calculate the number fo
strips be helpful?
A sequence is simply an ordered list of numbers. For example, here is a sequence: 0, 1, 2, 3, 4, 5, …. This is different from the set because, while the sequence is a complete list of every element in the set of natural numbers, in the sequence we very much care what order the numbers come in. For this reason, when we use variables to represent terms in a sequence they will look like this:
To refer to the entire sequence at once, we will write or or sometimes if we are being sloppy, just (in which case we assume we start the sequence with ).
We might replace the
with another letter, and sometimes we omit
starting with
in which case we would use
to refer to the sequence as a whole. The numbers in the subscripts are called
indices (the plural of
index).
While we often just think of a sequence as an ordered list of numbers, it is really a type of function. Specifically, the sequence
is a function with domain
where
is the image of the natural number
Later we will manipulate sequences in much the same way you have manipulated functions in algebra or calculus. We can shift a sequence up or down, add two sequences, or ask for the rate of change of a sequence. These are done exactly as you would for functions.
That said, while keeping the rigorous mathematical definition in mind is helpful, we often describe sequences by writing out the first few terms.
Example 2.1.1.
Can you find the next term in the following sequences?
Solution.
No you cannot. You might guess that the next terms are:
In fact, those are the next terms of the sequences I had in mind when I made up the example, but there is no way to be sure they are correct.
Still, we will often do this. Given the first few terms of a sequence, we can ask what the pattern in the sequence suggests the next terms are.
Given that no number of initial terms in a sequence is enough to say for certain which sequence we are dealing with, we need to find another way to specify a sequence. We consider two ways to do this:
Closed formula.
A
closed formula for a sequence
is a formula for
using a fixed finite number of operations on
This is what you normally think of as a formula in
just as if you were defining a function in terms of
(because that is exactly what you are doing).
Recursive definition.
A
recursive definition (sometimes called an
inductive definition) for a sequence
consists of a
recurrence relation : an equation relating a term of the sequence to previous terms (terms with smaller index) and an
initial condition: a list of a few terms of the sequence (one less than the number of terms in the recurrence relation).
It is easier to understand what is going on here with an example:
Example 2.1.2.
Here are a few closed formulas for sequences:
Note in each formula, if you are given
you can calculate
directly: just plug in
For example, to find
in the second sequence, just compute
Here are a few recursive definitions for sequences:
In these formulas, if you are given
you cannot calculate
directly, you first need to find
(or
and
). In the second sequence, to find
you would take
but to find
we would need to know
We do know this, so we could trace back through these equations to find
and finally
You might wonder why we would bother with recursive definitions for sequences. After all, it is harder to find
with a recursive definition than with a closed formula. This is true, but it is also harder to find a closed formula for a sequence than it is to find a recursive definition. So to find a useful closed formula, we might first find the recursive definition, then use that to find the closed formula.
This is not to say that recursive definitions aren’t useful in finding
You can always calculate
given a recursive definition, it might just take a while.
Example 2.1.3.
Find
in the sequence defined by
with
and
Solution.
We know that So to find we need to find and Well
so if we can only find and we would be set. Of course
so we only need to find and But we are given these. Thus
Note that now we can guess a closed formula for the th term of the sequence: To be sure this will always work, we could plug in this formula into the recurrence relation:
That is not quite enough though, since there can be multiple closed formulas that satisfy the same recurrence relation; we must also check that our closed formula agrees on the initial terms of the sequence. Since
and
are the correct initial conditions, we can now conclude we have the correct closed formula.
Finding closed formulas, or even recursive definitions, for sequences is not trivial. There is no one method for doing this. Just as in evaluating integrals or solving differential equations, it is useful to have a bag of tricks you can apply, but sometimes there is no easy answer.
One useful method is to relate a given sequence to another sequence for which we already know the closed formula. To do this, we need a few “known sequences” to compare mystery sequences to. Here are a few that are good to know. We will verify the formulas for these in the coming sections.
Common Sequences.
-
The
square numbers. The sequence
has closed formula
-
The
triangular numbers. The sequence
has closed formula
-
The
powers of 2. The sequence
with closed formula
-
The
Fibonacci numbers (or Fibonacci sequence), defined recursively by
with
Example 2.1.4.
Use the formulas and to find closed formulas that agree with the following sequences. Assume each first term corresponds to
-
-
-
-
-
-
-
-
Solution.
We wish to compare these sequences to the triangular numbers when we start with and the powers of 2:
-
Note that if subtract 1 from each term, we get the sequence
So we have
Therefore a closed formula is
A quick check of the first few
confirms we have it right.
-
Each term in this sequence is one more than a power of 2, so we might guess the closed formula is
If we try this though, we get
and
We are off because the indices are shifted. What we really want is
giving
-
(
). Notice that all these terms are even. What happens if we factor out a 2? We get
More precisely, we find that
so this sequence has closed formula
-
These are all triangular numbers. However, we are starting with 3 as our initial term instead of as our third term. So if we could plug in 2 instead of 0 into the formula for
we would be set. Therefore the closed formula is
(where
came from
). Thinking about sequences as functions, we are doing a horizontal shift by 2:
which would cause the graph to shift 2 units to the left.
-
Try adding 1 to each term and we get powers of 2. You might guess this because each term is a little more than twice the previous term (the powers of 2 are
exactly twice the previous term). Closed formula:
-
These numbers are also doubling each time, but are also all multiples of 3. Dividing each by 3 gives 1, 2, 4, 8, …. Aha. We get the closed formula
-
To get from one term to the next, we almost double each term. So maybe we can relate this back to
Yes, each term is 2 more than a power of 2. So we get
(the
is because the first term is 2 more than
not
). Alternatively, we could have related this sequence to the second sequence in this example: starting with 3, 5, 9, 17, … we see that this sequence is twice the terms from that sequence. That sequence had closed formula
Our sequence here would be twice this, so
which is the same as we got before.
-
Try dividing each term by 3. That gives the sequence
Now add 1 to each term:
which is
in this example, except starting with 6 instead of 0. So let’s start with the formula
To start with the 6, we shift:
But this is one too many, so subtract 1:
That gives us our sequence, but divided by 3. So we want
Partial sums.
Some sequences naturally arise as the sum of terms of another sequence.
Example 2.1.5.
Sam keeps track of how many push-ups she does each day of her “do lots of push-ups challenge.” Let be the sequence that describes the number of push-ups done on the th day of the challenge. The sequence starts
Describe a sequence that describes the total number of push-ups done by Sam after the th day.
Solution.
We can find the terms of this sequence easily enough.
Here is just but then
and so on.
There are a few ways we might describe in general. We could do so recursively as,
since the total number of push-ups done after days will be the number done after days, plus the number done on day
For something closer to a closed formula, we could write
or the same thing using summation notation:
However, note that these are not really closed formulas since even if we had a formula for we would still have an increasing number of computations to do as increases.
Given any sequence we can always form a new sequence by
Since the terms of are the sums of the initial part of the sequence ways call the sequence of partial sums of . Soon we will see that it is sometimes possible to find a closed formula for from the closed formula for
To simplify writing out these sums, we will often use notation like
This means add up the
’s where
changes from 1 to
Example 2.1.6.
Use
notation to rewrite the sums:
If we want to multiply the
instead, we could write
For example,
Exercises Exercises
1.
2.
3.
Consider the sequence that starts (i.e., the odd numbers in order).
-
Give a recursive definition and closed formula for the sequence.
-
Write out the sequence
of partial sums of
Write down the recursive definition for
and guess at the closed formula.
4.
The Fibonacci sequence is (where ).
-
Write out the first few terms of the sequence of partial sums:
…
-
Guess a formula for the sequence of partial sums expressed in terms of a single Fibonacci number. For example, you might say
although that is definitely not correct.
5.
Consider the three sequences below. For each, find a recursive definition. How are these sequences related?
-
-
-
6.
Write out the first few terms of the sequence given by
Then find a recursive definition for the sequence
7.
Write out the first few terms of the sequence given by
Then find a closed formula for the sequence (starting with
)
8.
Show that
is a solution to the recurrence relation
What would the initial conditions need to be for this to be the closed formula for the sequence?
9.
Show that
is also a solution to the recurrence relation
What would the initial conditions need to be for this to be the closed formula for the sequence?
10.
Find a closed formula for the sequence with recursive definition
with
and
11.
Give two different recursive definitions for the sequence with closed formula
Prove you are correct. At least one of the recursive definitions should makes use of two previous terms and no constants.
12.
Use summation () or product () notation to rewrite the following.
-
-
-
-
-
13.
Expand the following sums and products. That is, write them out the long way.
-
-
-
-
-
14.
Suppose you draw
lines in the plane so that every pair of lines cross (no lines are parallel) and no three lines cross at the same point. This will create some number of regions in the plane, including some unbounded regions. Call the number of regions
Find a recursive formula for the number of regions created by
lines, and justify why your recursion is correct.
15.
A
ternary string is a sequence of 0’s, 1’s and 2’s. Just like a bit string, but with three symbols.
Let’s call a ternary string
good provided it never contains a 2 followed immediately by a 0. Let
be the number of good strings of length
For example,
and
(since of the 9 ternary strings of length 2, only one is not good).
Find, with justification, a recursive formula for
and use it to compute
16.
Consider bit strings with length and weight (so strings of 0’s and 1’s, including 1’s). We know how to count the number of these for a fixed and Now, we will count the number of strings for which the sum of the length and the weight is fixed. For example, let’s count all the bit strings for which
-
Find examples of these strings of different lengths. What is the longest string possible? What is the shortest?
-
How many strings are there of each of these lengths. Use this to count the total number of strings (with sum 11).
-
The other approach: Let
vary. How many strings have sum
How many have sum
And so on. Find and explain a recurrence relation for the sequence
which gives the number of strings with sum
-
Describe what you have found above in terms of Pascal’s Triangle. What pattern have you discovered?
17.
When bees play chess, they use a hexagonal board like the one shown below. The queen bee can move one space at a time either directly to the right or angled up-right or down-right (but can never move leftwards). How many different paths can the queen take from the top left hexagon to the bottom right hexagon? Explain your answer, and this relates to the previous question. (As an example, there are three paths to get to the second hexagon on the bottom row.)
18.
Let
denote the number of ways to tile a
chessboard using
dominoes. Write out the first few terms of the sequence
and then give a recursive definition. Explain why your recursive formula is correct.
You have attempted
of
activities on this page.