8 Recurrence Relations and Generating Functions
The Fibonacci numbers satisfy the formula:
The sums of the binomial coefficients along the diagonals of Pascal’s triangle running upward from the left are Fibonacci numbers. More precisely, the \(n\)th Fibonacci number \(f_n\) satisfies
where \(t = \left\lfloor \frac{n+1}{2} \right\rfloor \) is the floor of \(\frac{n+1}{2}\).
Let \(n\) be a positive integer. Then
Let \(S\) be the multiset \(\{ n_1 \cdot a_1, n_2 \cdot a_2, \dots , n_k \cdot a_k\} \), where \(n_1, n_2, \dots , n_k\) are nonnegative integers. Let \(h_n\) be the number of \(n\)-permutations of \(S\). Then the exponential generating function \(g^{(e)}(x)\) for the sequence \(h_0, h_1, h_2, \dots , h_n, \dots \) is given by
where, for \(i = 1, 2, \dots , k\),
Let \(q\) be a nonzero number. Then \(h_n = q^n\) is a solution of the linear homogeneous recurrence relation
with constant coefficients if and only if \(q\) is a root of the polynomial equation
If the polynomial equation has \(k\) distinct roots \(q_1, q_2, \dots , q_k\), then
is the general solution of (7.29) in the following sense: No matter what initial values for \(h_0, h_1, \dots , h_{k-1}\) are given, there are constants \(c_1, c_2, \dots , c_k\) so that (7.31) is the unique sequence which satisfies both the recurrence relation (7.29) and the initial values.
Let \(q_1, q_2, \dots , q_t\) be the distinct roots of the following characteristic equation of the linear homogeneous recurrence relation with constant coefficients:
If \(q_i\) is an \(s_i\)-fold root of the characteristic equation of (7.39), the part of the general solution of this recurrence relation corresponding to \(q_i\) is
The general solution of the recurrence relation is
Let
be a sequence of numbers that satisfies the linear homogeneous recurrence relation
of order \(k\) with constant coefficients. Then its generating function \(g(x)\) is of the form
Let \(h_n\) denote the number of ways of dividing a convex polygonal region with \(n+1\) sides into triangular regions by inserting diagonals that do not intersect in the interior. Define \(h_1 = 1\). Then \(h_n\) satisfies the recurrence relation
The solution of this recurrence relation is