How is the number of subsets of an n-element set related to the number of subsets of an ()-element set? Prove that you are correct. (Hint).
Exercise
Explain why it is that the number of bijections from an -element set to an -element set is equal to times the number of bijections from an ()-element subset to an ()-element set. What does this have to do with Problem 27?
We can summarize these observations as follows. If stands for the number of subsets of an -element set, then
and if stands for the number of bijections from an n-element set to an -element set, then
Equations and are examples of recurrence equations or recurrence relations. A recurrence relation or simply a recurrence is an equation that expresses the term of a sequence in terms of values of for . Thus Equations and are examples of recurrences.
2.2.1: Examples of Recurrence Relations
Other examples of recurrences are
A solution to a recurrence relation is a sequence that satisfies the recurrence relation. Thus a solution to Recurrence is the sequence given by . Note that and 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 . Notice this is the only solution we have mentioned that satisfies .
Exercise
Show that there is only one solution to Recurrence that satisfies .
Exercise
A first-order recurrence relation is one which expresses an in terms of and other functions of , but which does not include any of the terms for in the equation.
Which of the recurrences through are first order recurrences?
Show that there is one and only one sequence that is defined for every nonnegative integer , satisfies a given first order recurrence, and satisfies for some fixed constant . (Hint).
Figure : The Towers of Hanoi Puzzle (Copyright; author via source)
Exercise
The “Towers of Hanoi” puzzle has three rods rising from a rectangular base with 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 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 . (Hint).
Exercise
We draw 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 of regions into which the plane is divided by circles. (One circle divides the plane into two regions, the inside and the outside.) Find the number of regions with circles. For what values of can you draw a Venn diagram showing all the possible intersections of sets using circles to represent each of the sets? (Hint).
2.2.2: Arithmetic Series (optional)
Exercise
A child puts away two dollars from her allowance each week. If she starts with twenty dollars, give a recurrence for the amount of money she has after weeks and find out how much money she has at the end of weeks.
Exercise
A sequence that satisfies a recurrence of the form is called an arithmetic progression. Find a formula in terms of the initial value and the common difference for the term an in an arithmetic progression and prove you are right.
Exercise
A person who is earning per year gets a raise of a year for years in a row. Find a recurrence for the amount of money the person earns over years. What is the total amount of money that the person earns over a period of years? (In years, there are raises.)
Exercise
An arithmetic series is a sequence equal to the sum of the terms through of an arithmetic progression. Find a recurrence for the sum of an arithmetic progression with initial value and common difference (using the language of Problem 94). Find a formula for general term of 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 times values of (some of the terms) for plus (perhaps) another function (called the driving function) of . 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 terms are all constants (but the driving function need not be constant).
Exercise
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
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 and for the general term an of a sequence that satisfies a constant coefficient first order linear recurrence 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 is called a geometric progression. Thus the sequence satisfying Equation , the recurrence for the number of subsets of an -element set, is an example of a geometric progression. From your solution to Problem 98, a geometric progression has the form . 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 . A sum of this form is called a (finite) geometric series.
Exercise
Do this problem only if your final answer (so far) to Problem 98 contained the sum .
Expand . Expand . Expand .
What do you expect to be? What formula for 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.