In this section we examine the definition and multiple applications of recursion, and encounter many examples. We also solve one type of linear recurrence relation to give a general closed-form solution.
A recursive definition is one in which
In this section we encounter examples of several different objects which are defined recursively (See Table 2.5, p. 131):
Note: Examples #31 and #32 illustrate why you want to stop and think before you attempt the proof!
Vocabulary:
The relation is called homogeneous if g(n)=0. (Both Fibonacci and factorial are examples of homogeneous linear recurrence relations.)
The author suggests an ``expand, guess, verify'' method for solving recurrence relations.
Examples:
Example: general linear first-order recurrence relations with constant coefficients.
``Expand, guess, verify'' (then prove by induction!):