Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

2.2: Recurrence Relations

( \newcommand{\kernel}{\mathrm{null}\,}\)

Exercise 87

How is the number of subsets of an n-element set related to the number of subsets of an (n1)-element set? Prove that you are correct. (Hint).

Exercise 88

Explain why it is that the number of bijections from an n-element set to an n-element set is equal to n times the number of bijections from an (n1)-element subset to an (n1)-element set. What does this have to do with Problem 27?

We can summarize these observations as follows. If sn stands for the number of subsets of an n-element set, then

sn=2sn1

and if bn stands for the number of bijections from an n-element set to an n-element set, then

bn=nbn1

Equations ??? and ??? are examples of recurrence equations or recurrence relations. A recurrence relation or simply a recurrence is an equation that expresses the nth term of a sequence an in terms of values of ai for i<n. Thus Equations ??? and ??? are examples of recurrences.

2.2.1: Examples of Recurrence Relations

Other examples of recurrences are

an=an1+7,

an=3an1+2n,

an=an1+3an2, and

an=a1an1+a2an2++an1a1.

A solution to a recurrence relation is a sequence that satisfies the recurrence relation. Thus a solution to Recurrence ??? is the sequence given by sn=2n. Note that sn=172n and sn=132n are also solutions to Recurrence ???. What this shows is that a recurrence can have infinitely many solutions. In a given problem, there is generally one solution that is of interest to us. For example, if we are interested in the number of subsets of a set, then the solution to Recurrence ??? that we care about is sn=2n. Notice this is the only solution we have mentioned that satisfies s0=1.

Exercise 89

Show that there is only one solution to Recurrence ??? that satisfies s0=1.

Exercise 90

A first-order recurrence relation is one which expresses an in terms of an1 and other functions of n, but which does not include any of the terms ai for i<n1 in the equation.

  1. Which of the recurrences ??? through ??? are first order recurrences?
  2. Show that there is one and only one sequence an that is defined for every nonnegative integer n, satisfies a given first order recurrence, and satisfies a0=a for some fixed constant a. (Hint).
clipboard_e81d99e84078678748d266ab27946e9a8.png
Figure 2.2.1: The Towers of Hanoi Puzzle (Copyright; author via source)

Exercise 91

The “Towers of Hanoi” puzzle has three rods rising from a rectangular base with n rings of different sizes stacked in decreasing order of size on one rod. A legal move consists of moving a ring from one rod to another so that it does not land on top of a smaller ring. If mn is the number of moves required to move all the rings from the initial rod to another rod that you choose, give a recurrence for mn. (Hint).

Exercise 92

We draw n mutually intersecting circles in the plane so that each one crosses each other one exactly twice and no three intersect in the same point. (As examples, think of Venn diagrams with two or three mutually intersecting sets.) Find a recurrence for the number rn of regions into which the plane is divided by n circles. (One circle divides the plane into two regions, the inside and the outside.) Find the number of regions with n circles. For what values of n can you draw a Venn diagram showing all the possible intersections of n sets using circles to represent each of the sets? (Hint).

2.2.2: Arithmetic Series (optional)

Exercise 93

A child puts away two dollars from her allowance each week. If she starts with twenty dollars, give a recurrence for the amount an of money she has after n weeks and find out how much money she has at the end of n weeks.

Exercise 94

A sequence that satisfies a recurrence of the form an=an1+c is called an arithmetic progression. Find a formula in terms of the initial value a0 and the common difference c for the term an in an arithmetic progression and prove you are right.

Exercise 95

A person who is earning $50,000 per year gets a raise of $3000 a year for n years in a row. Find a recurrence for the amount an of money the person earns over n+1 years. What is the total amount of money that the person earns over a period of n+1 years? (In n+1 years, there are n raises.)

Exercise 96

An arithmetic series is a sequence sn equal to the sum of the terms a0 through an of an arithmetic progression. Find a recurrence for the sum sn of an arithmetic progression with initial value a0 and common difference c (using the language of Problem 94). Find a formula for general term sn of an arithmetic series.

2.2.3: First Order Linear Recurrences

Recurrences such as those in Equations ??? through ??? are called linear recurrences, as are the recurrences of Problems 91 and 92. A linear recurrence is one in which an is expressed as a sum of functions of n times values of (some of the terms) ai for i<n plus (perhaps) another function (called the driving function) of n. A linear equation is called homogeneous if the driving function is zero (or, in other words, there is no driving function). It is called a constant coefficient linear recurrence if the functions that are multiplied by the ai terms are all constants (but the driving function need not be constant).

Exercise 97

Classify the recurrences in Equations ??? through ??? and Problems 91 and 92 according to whether or not they are constant coefficient, and whether or not they are homogeneous.

Exercise 98

As you can see from Problem 97 some interesting sequences satisfy first order linear recurrences, including many that have constant coefficients, have constant driving term, or are homogeneous. Find a formula in terms of b,d,a0 and n for the general term an of a sequence that satisfies a constant coefficient first order linear recurrence an=ban1+d and prove you are correct. If your formula involves a summation, try to replace the summation by a more compact expression. (Hint).

2.2.4: Geometric Series

A sequence that satisfies a recurrence of the form an=ban1 is called a geometric progression. Thus the sequence satisfying Equation ???, the recurrence for the number of subsets of an n-element set, is an example of a geometric progression. From your solution to Problem 98, a geometric progression has the form an=a0bn. In your solution to Problem 98 you may have had to deal with the sum of a geometric progression in just slightly different notation, namely n1i=0dbi. A sum of this form is called a (finite) geometric series.

Exercise 99

Do this problem only if your final answer (so far) to Problem 98 contained the sum n1i=0dbi.

  1. Expand (1x)(1+x). Expand (1x)(1+x+x2). Expand (1x)(1+x+x2+x3).
  2. What do you expect (1b)n1i=0dbi to be? What formula for n1i=0dbi does this give you? Prove that you are correct.

In Problem 98 and perhaps 99 you proved an important theorem. While the theorem does not have a name, the formula it states is called the sum of a finite geometric series.

Theorem 2.2.1

If b1 and an=ban1+d, then an=a0bn+d1bn1b, then an=a0+nd.

Corollary 2.2.1

If b1, then n1i=0bi=1bn1b. If b=1, n1i=0bi=n.


This page titled 2.2: Recurrence Relations is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Kenneth P. Bogart.

Support Center

How can we help?