Skip to main content
Logo image

Section 2.1 Describing Sequences

Investigate!
You have a large collection of 1×1 squares and 1×2 dominoes. You want to arrange these to make a 1×15 strip. How many ways can you do this?
  1. Start by collecting data. How many length 1×1 strips can you make? How many 1×2 strips? How many 1×3 strips? And so on.
  2. How are the 1×3 and 1×4 strips related to the 1×5 strips?
  3. How many 1×15 strips can you make?
  4. What if I asked you to find the number of 1×1000 strips? Would the method you used to calculate the number fo 1×15 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 N 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:
a0,a1,a2,a3,.
To refer to the entire sequence at once, we will write (an)nN or (an)n0, or sometimes if we are being sloppy, just (an) (in which case we assume we start the sequence with a0).
We might replace the a with another letter, and sometimes we omit a0, starting with a1, in which case we would use (an)n1 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 (an)n0 is a function with domain N where an is the image of the natural number n. 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?
  1. 7,7,7,7,7,
  2. 3,3,3,3,3,
  3. 1,5,2,10,3,15,
  4. 1,2,4,8,16,32,
  5. 1,4,9,16,25,36,
  6. 1,2,3,5,8,13,21,
  7. 1,3,6,10,15,21,
  8. 2,3,5,7,11,13,
  9. 3,2,1,0,1,
  10. 1,1,2,6,
Solution.
No you cannot. You might guess that the next terms are:
  1. 7
  2. 3
  3. 4
  4. 64
  5. 49
  6. 34
  7. 28
  8. 17
  9. 2
  10. 24
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 (an)nN is a formula for an using a fixed finite number of operations on n. This is what you normally think of as a formula in n, just as if you were defining a function in terms of n (because that is exactly what you are doing).

Recursive definition.

A recursive definition (sometimes called an inductive definition) for a sequence (an)nN 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:
  • an=n2.
  • an=n(n+1)2.
  • an=(1+52)n(152)n5.
Note in each formula, if you are given n, you can calculate an directly: just plug in n. For example, to find a3 in the second sequence, just compute a3=3(3+1)2=6.
Here are a few recursive definitions for sequences:
  • an=2an1 with a0=1.
  • an=2an1 with a0=27.
  • an=an1+an2 with a0=0 and a1=1.
In these formulas, if you are given n, you cannot calculate an directly, you first need to find an1 (or an1 and an2). In the second sequence, to find a3 you would take 2a2, but to find a2=2a1 we would need to know a1=2a0. We do know this, so we could trace back through these equations to find a1=54, a2=108 and finally a3=216.
You might wonder why we would bother with recursive definitions for sequences. After all, it is harder to find an 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 an. You can always calculate an given a recursive definition, it might just take a while.

Example 2.1.3.

Find a6 in the sequence defined by an=2an1an2 with a0=3 and a1=4.
Solution.
We know that a6=2a5a4. So to find a6 we need to find a5 and a4. Well
a5=2a4a3anda4=2a3a2,
so if we can only find a3 and a2 we would be set. Of course
a3=2a2a1anda2=2a1a0,
so we only need to find a1 and a0. But we are given these. Thus
a0=3a1=4a2=243=5a3=254=6a4=265=7a5=276=8a6=287=9.
Note that now we can guess a closed formula for the nth term of the sequence: an=n+3. To be sure this will always work, we could plug in this formula into the recurrence relation:
2an1an2=2((n1)+3)((n2)+3)=2n+4n1=n+3=an.
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 a0=0+3=3 and a1=1+3=4 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.

1,4,9,16,25,
The square numbers. The sequence (sn)n1 has closed formula sn=n2
1,3,6,10,15,21,
The triangular numbers. The sequence (Tn)n1 has closed formula Tn=n(n+1)2.
1,2,4,8,16,32,
The powers of 2. The sequence (an)n0 with closed formula an=2n.
1,1,2,3,5,8,13,
The Fibonacci numbers (or Fibonacci sequence), defined recursively by Fn=Fn1+Fn2 with F1=F2=1.

Example 2.1.4.

Use the formulas Tn=n(n+1)2 and an=2n to find closed formulas that agree with the following sequences. Assume each first term corresponds to n=0.
  1. (bn): 1,2,4,7,11,16,22,.
  2. (cn): 3,5,9,17,33,.
  3. (dn): 0,2,6,12,20,30,42,.
  4. (en): 3,6,10,15,21,28,.
  5. (fn): 0,1,3,7,15,31,.
  6. (gn) 3,6,12,24,48,.
  7. (hn): 6,10,18,34,66,.
  8. (jn): 15,33,57,87,123,.
Solution.
We wish to compare these sequences to the triangular numbers (0,1,3,6,10,15,21,), when we start with n=0, and the powers of 2: (1,2,4,8,16,).
  1. (1,2,4,7,11,16,22,). Note that if subtract 1 from each term, we get the sequence (Tn). So we have bn=Tn+1. Therefore a closed formula is bn=n(n+1)2+1. A quick check of the first few n confirms we have it right.
  2. (3,5,9,17,33,). Each term in this sequence is one more than a power of 2, so we might guess the closed formula is cn=an+1=2n+1. If we try this though, we get c0=20+1=2 and c1=21+1=3. We are off because the indices are shifted. What we really want is cn=an+1+1 giving cn=2n+1+1.
  3. (0,2,6,12,20,30,42,). Notice that all these terms are even. What happens if we factor out a 2? We get (Tn)! More precisely, we find that dn/2=Tn, so this sequence has closed formula dn=n(n+1).
  4. (3,6,10,15,21,28,). 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 Tn, we would be set. Therefore the closed formula is en=(n+2)(n+3)2 (where n+3 came from (n+2)+1). Thinking about sequences as functions, we are doing a horizontal shift by 2: en=Tn+2 which would cause the graph to shift 2 units to the left.
  5. (0,1,3,7,15,31,). 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: fn=2n1.
  6. (3,6,12,24,48,). 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 gn=32n.
  7. (6,10,18,34,66,). To get from one term to the next, we almost double each term. So maybe we can relate this back to 2n. Yes, each term is 2 more than a power of 2. So we get hn=2n+2+2 (the n+2 is because the first term is 2 more than 22, not 20). 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 cn=2n+1+1. Our sequence here would be twice this, so hn=2(2n+1), which is the same as we got before.
  8. (15,33,57,87,123,). Try dividing each term by 3. That gives the sequence 5,11,19,29,41,. Now add 1 to each term: 6,12,20,30,42,, which is (dn) in this example, except starting with 6 instead of 0. So let’s start with the formula dn=n(n+1). To start with the 6, we shift: (n+2)(n+3). But this is one too many, so subtract 1: (n+2)(n+3)1. That gives us our sequence, but divided by 3. So we want jn=3((n+2)(n+3)1).

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 (an)n1 be the sequence that describes the number of push-ups done on the nth day of the challenge. The sequence starts
3,5,6,10,9,0,12,.
Describe a sequence (bn)n1 that describes the total number of push-ups done by Sam after the nth day.
Solution.
We can find the terms of this sequence easily enough.
3,8,14,24,33,33,45,.
Here b1 is just a1, but then
b2=3+5=a1+a2,
b3=3+5+6=a1+a2+a3,
and so on.
There are a few ways we might describe bn in general. We could do so recursively as,
bn=bn1+an,
since the total number of push-ups done after n days will be the number done after n1 days, plus the number done on day n.
For something closer to a closed formula, we could write
bn=a1+a2+a3++an,
or the same thing using summation notation:
bn=i=1nai.
However, note that these are not really closed formulas since even if we had a formula for an, we would still have an increasing number of computations to do as n increases.
Given any sequence (an)nN, we can always form a new sequence (bn)nN by
bn=a0+a1+a2++an.
Since the terms of (bn) are the sums of the initial part of the sequence (an) ways call (bn) the sequence of partial sums of (an). Soon we will see that it is sometimes possible to find a closed formula for (bn) from the closed formula for (an).
To simplify writing out these sums, we will often use notation like k=1nak. This means add up the ak’s where k changes from 1 to n.

Example 2.1.6.

Use notation to rewrite the sums:
  1. 1+2+3+4++100
  2. 1+2+4+8++250
  3. 6+10+14++(4n2).
Solution.
  1. k=1100k
  2. k=0502k
  3. k=2n(4k2)
If we want to multiply the ak instead, we could write k=1nak. For example, k=1nk=n!.

Exercises Exercises

2.

For each sequence given below, find a closed formula for an, the nth term of the sequence (assume the first terms here are always a0) by relating it to another sequence for which you already know the formula.
  1. 2,1,6,25,62,123,
    an=
  2. 0,10,30,60,100,150,
    an=
  3. 1,0,2,6,14,30,
    an=
  4. 0,2,12,36,80,150,
    an=

3.

Consider the sequence (an)n1 that starts 1,3,5,7,9, (i.e., the odd numbers in order).
  1. Give a recursive definition and closed formula for the sequence.
  2. Write out the sequence (bn)n2 of partial sums of (an). Write down the recursive definition for (bn) and guess at the closed formula.

4.

The Fibonacci sequence is 0,1,1,2,3,5,8,13, (where F0=0).
  1. Write out the first few terms of the sequence of partial sums: 0, 0+1, 0+1+1,
  2. Guess a formula for the sequence of partial sums expressed in terms of a single Fibonacci number. For example, you might say F0+F1++Fn=3Fn12+n, although that is definitely not correct.

5.

Consider the three sequences below. For each, find a recursive definition. How are these sequences related?
  1. 2,4,6,10,16,26,42,.
  2. 5,6,11,17,28,45,73,.
  3. 0,0,0,0,0,0,0,.

6.

Write out the first few terms of the sequence given by a1=3; an=2an1+4. Then find a recursive definition for the sequence 10,24,52,108,.

7.

Write out the first few terms of the sequence given by an=n23n+1. Then find a closed formula for the sequence (starting with a1) 0,2,6,12,20,.

8.

Show that an=32n+75n is a solution to the recurrence relation an=7an110an2. What would the initial conditions need to be for this to be the closed formula for the sequence?

9.

Show that an=2n5n is also a solution to the recurrence relation an=7an110an2. 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 an=2an1an2 with a1=1 and a2=2.

11.

Give two different recursive definitions for the sequence with closed formula an=3+2n. 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.
  1. 2+4+6+8++2n.
  2. 1+5+9+13++425.
  3. 1+12+13+14++150.
  4. 2462n.
  5. (12)(23)(34)(100101).

13.

Expand the following sums and products. That is, write them out the long way.
  1. k=1100(3+4k).
  2. k=0n2k.
  3. k=2501(k21).
  4. k=2100k2(k21).
  5. k=0n(2+3k).

14.

Suppose you draw n 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 Rn. Find a recursive formula for the number of regions created by n 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 Gn be the number of good strings of length n. For example, G1=3, and G2=8 (since of the 9 ternary strings of length 2, only one is not good).
Find, with justification, a recursive formula for Gn, and use it to compute G5.

16.

Consider bit strings with length l and weight k (so strings of l 0’s and 1’s, including k 1’s). We know how to count the number of these for a fixed l and k. 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 l+k=11.
  1. Find examples of these strings of different lengths. What is the longest string possible? What is the shortest?
  2. How many strings are there of each of these lengths. Use this to count the total number of strings (with sum 11).
  3. The other approach: Let n=l+k vary. How many strings have sum n=1? How many have sum n=2? And so on. Find and explain a recurrence relation for the sequence (an) which gives the number of strings with sum n.
  4. 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 tn denote the number of ways to tile a 2×n chessboard using 1×2 dominoes. Write out the first few terms of the sequence (tn)n1 and then give a recursive definition. Explain why your recursive formula is correct.
You have attempted of activities on this page.