Skip to main content
\(\newcommand{\identity}{\mathrm{id}} \newcommand{\notdivide}{{\not{\mid}}} \newcommand{\notsubset}{\not\subset} \newcommand{\lcm}{\operatorname{lcm}} \newcommand{\gf}{\operatorname{GF}} \newcommand{\inn}{\operatorname{Inn}} \newcommand{\aut}{\operatorname{Aut}} \newcommand{\Hom}{\operatorname{Hom}} \newcommand{\cis}{\operatorname{cis}} \newcommand{\chr}{\operatorname{char}} \newcommand{\Null}{\operatorname{Null}} \renewcommand{\vec}[1]{\mathbf{#1}} \newcommand{\lt}{<} \newcommand{\gt}{>} \newcommand{\amp}{&} \)

Section8.3Recurrence Relations

In this section we will begin our study of recurrence relations and their solutions. Our primary focus will be on the class of finite order linear recurrence relations with constant coefficients (shortened to finite order linear relations). First, we will examine closed form expressions from which these relations arise. Second, we will present an algorithm for solving them. In later sections we will consider some other common relations (8.4) and introduce two additional tools for studying recurrence relations: generating functions (8.5) and matrix methods (Chapter 12).

Subsection8.3.1Definition and Terminology

Definition8.3.1Recurrence Relation.

Let \(S\) be a sequence of numbers. A recurrence relation on \(S\) is a formula that relates all but a finite number of terms of \(S\) to previous terms of \(S\text{.}\) That is, there is a \(k_0\) in the domain of \(S\) such that if \(k \geq k_0\), then \(S(k)\) is expressed in terms of some (and possibly all) of the terms that precede \(S(k)\text{.}\) If the domain of \(S\) is \(\{0,1,2,\textrm{...}\}\), the terms \(S (0), S(1), . . . , S\left(k_0-1\right)\) are not defined by the recurrence formula.Their values are the initial conditions (or boundary conditions, or basis) that complete the definition of \(S\text{.}\)

Example8.3.2Some Examples of Recurrence Relations

  1. The Fibonacci sequence is defined by the recurrence relation \(F_k= F_{k-2}+ F_{k-1}\), \(k\geq 2,\) with the initial conditions \(F_0=1\) and \(F_1=1\). The recurrence relation is called a second-order relation because \(F_k\) depends on the two previous terms of \(F\text{.}\) Recall that the sequence \(C\) in Section 8.2, 8.2.2, can be defined with the same recurrence relation, but with different initial conditions.

  2. The relation \(T(k) = 2T(k - 1)^2 - k T(k - 3)\) is a third-order recurrence relation. If values of \(T(0)\), \(T(1)\), and \(T(2)\) are specified, then \(T\) is completely defined.

  3. The recurrence relation \(S(n) = S(\lfloor n/2\rfloor ) + 5\), \(n > 0\text{,}\) with \(S(0)=0\) has infinite order. To determine \(S(n)\) when \(n\) is even, you must go back \(n/2\) terms. Since \(n/2\) grows unbounded with \(n\text{,}\) no finite order can be given to \(S\text{.}\)

Subsection8.3.2Solving Recurrence Relations

Sequences are often most easily defined with a recurrence relation; however, the calculation of terms by directly applying a recurrence relation can be time-consuming. The process of determining a closed form expression for the terms of a sequence from its recurrence relation is called solving the relation. There is no single technique or algorithm that can be used to solve all recurrence relations. In fact, some recurrence relations cannot be solved. The relation that defines \(T\) above is one such example. Most of the recurrence relations that you are likely to encounter in the future are classified as finite order linear recurrence relations with constant coefficients. This class is the one that we will spend most of our time with in this chapter.

Definition8.3.3\(n^{th}\) Order Linear Recurrence Relation

Let \(S\) be a sequence of numbers with domain \(k\geq 0\). An \(n^{\textrm{th}}\) order linear recurrence relation on \(S\) with constant coefficients is a recurrence relation that can be written in the form \[S(k) + C_1 S(k - 1) + . . . + C_n S(k - n) = f(k)\textrm{ for }k \geq n\] where \(C_1, C_2, \ldots , C_n\) are constants and \(f\) is a numeric function that is defined for \(k \geq n\).

Note: We will shorten the name of this class of relations to \(n^{\textrm{th}}\) order linear relations. Therefore, in further discussions, \(S(k) + 2k S(k - 1) = 0\) would not be considered a first-order linear relation.

Example8.3.4Some Finite Order Linear Relations

  1. The Fibonacci sequence is defined by the second-order linear relation because \(F_k- F_{k-1}- F_{k-2}=0\)

  2. The relation \(P(j) + 2P(j - 3) = j^2\) is a third-order linear relation. In this case, \(C_1= C_2= 0\).

  3. The relation \(A(k)= 2(A(k - 1) + k)\) can be written as \(A(k) - 2A(k - 1) = 2k\). Therefore, it is a first-order linear relation.

Subsection8.3.3Recurrence relations obtained from “solutions”

Before giving an algorithm for solving finite order linear relations, we will examine recurrence relations that arise from certain closed form expressions. The closed form expressions are selected so that we will obtain finite order linear relations from them. This approach may seem a bit contrived, but if you were to write down a few simple algebraic expressions, chances are that most of them would be similar to the ones we are about to examine.

For our first example, consider \(D\text{,}\) defined by \(D(k) =5\cdot 2^k\), \(k \geq 0\). If \(k \geq 1\), \(\quad\)\(D(k) =5\cdot 2^k = 2\cdot 5\cdot 2^{k-1} = 2 D(k - 1)\). Therefore, \(D\) satisfies the first order linear relation \(D(k) - 2 D(k - 1) = 0\) and the initial condition \(D(0) = 5\) serves as an initial condition for \(D\text{.}\)

As a second example, consider \(C(k) =3^{k-1}+2^{k+1}+k\) , \(k \geq 0\). Quite a bit more algebraic manipulation is required to get our result:

\(C(k) =3^{k-1}+2^{k+1}+k\) \(\textrm{Original equation}\)
\(3C(k-1) =3^{k-1}+3\cdot 2^k+3(k-1)\) \(\textrm{Substitute } k-1 \textrm{ for } k \)
\(\textrm{ and multipy by } 3\)
\(\) \(\textrm{Subtract the second equation}\)
\(\textrm{from the first.}\)
\(C(k)-3C(k-1)=-2^k-2k+3\) \(3^{k-1} \textrm{ term is eliminated.} \)
\(\textrm{ This is a first order relation}\text{.}\)
\(2C(k-1)-6C(k-2)=-2^k-2(2(k-1))+6)\) \(\textrm{Substitute } k-1 \textrm{ for } k \textrm{ in the}\)
\(\textrm{third equation, multiply. by } 2\text{.}\)
\(\) \(\textrm{Subtract the 4th equation from the 3rd.}\)
\(C(k)-5C(k-1)+6C(k-2)=2k-7\) \(2^{k+1}\textrm{term is eliminated.}\)
\(\textrm{This is 2nd order relation.}\)

The recurrence relation that we have just obtained, defined for \(k \geq 2\text{,}\) together with the initial conditions \(C(0) = 7/3\) and \(C(1) = 6\), define \(C\).

Table 8.3.5 summarizes our results together with a few other examples that we will let the reader derive. Based on these results, we might conjecture that any closed form expression for a sequence that combines exponential expressions and polynomial expressions will be solutions of finite order linear relations. Not only is this true, but the converse is true: a finite order linear relation defines a closed form expression that is similar to the ones that were just examined. The only additional information that is needed is a set of initial conditions.

Closed Form Expression Recurrence Relation
\(D(k)=5\cdot 2^k\) \(D(k)-2D(k-1)=0\)
\(C(k)=3^{k-1}+2^{k+1}+k\) \(C(k)-2C(k-1)-6C(k-2)=2k-7\)
\(Q(k)=2k + 9\) \(Q(k)-Q(k-1)=2\)
\(A(k)=k^2-k\) \(A(k)-2A(k-1)+A(k-2)=2\)
\(B(k)=2 k^2+1\) \(B(k)-2B(k-1)+B(k-2)=4\)
\(G(k)=2\cdot 4^k-5(-3)^k\) \(G(k)-G(k-1)+12G(k-2)=0\)
\(J(k)=(3+k) 2^k\) \(J(k)-4J(k-1)+4J(k-2)=0\)
Table8.3.5Recurrence relations obtained from given sequences
Definition8.3.6Homogeneous Recurrence Relation

An \(n^{th}\) order linear relation is homogeneous if \(f(k) = 0\) for all \(k\). For each recurrence relation \(S(k) + C_1S(k - 1) +\ldots + C_n S(k - n) = f(k)\), the associated homogeneous relation is \(S(k) + C_1S(k - 1) +\ldots + C_n S(k - n) =0\)

Example8.3.7First Order Homogeneous Recurrence Relations

\(D(k) - 2D(k - 1) = 0\) is a first-order homogeneous relation. Since it can also be written as \(D(k) = 2D(k - 1)\), it should be no surprise that it arose from an expression that involves powers of 2. More generally, you would expect that the solution of \(L(k) - a L(k - 1)\) would involve \(a^k\). Actually, the solution is \(L(k) = L(0)a^k\), where the value of \(L(0)\) is given by the initial condition.

Example8.3.8A Second Order Example

Consider the second-order homogeneous relation \(S(k) - 7S(k - 1) + 12 S(k- 2) = 0\) together with the initial conditions \(S(0) = 4\) and \(S(1) = 4\). From our discussion above, we can predict that the solution to this relation involves terms of the form \(b a^k\), where \(b\) and \(a\) are nonzero constants that must be determined. If the solution were to equal this quantity exactly, then \[\quad \quad \quad \begin{array}{ccc} S(k)=b a^k & & \\ S(k-1)=b a^{k-1} & \textrm{ } & \textrm{ } \\ S(k-2)=b a^{k-2} & & \\ \end{array}\] Substitute these expressions into the recurrence relation to get \[ b a^k-7 b a^{k-1}+12 b a^{k-2}=0\] Each term on the left-hand side of this equation has a factor of \(b a^{k-2}\), which is nonzero. Dividing through by this common factor yields \begin{gather} a^2 - 7a + 12 = (a - 3) (a - 4) = 0\label{eq-characteristic-example}\tag{8.3.1} \end{gather}

Therefore, the only possible values of \(a\) are 3 and 4. Equation (8.3.1) is called the characteristic equation of the recurrence relation. The fact is that our original recurrence relation is true for any sequence of the form \(S(k) = b_1 3^k + b_24^k\), where \(b_1\) and \(b_2\) are real numbers. This set of sequences is called the general solution of the recurrence relation. If we didn't have initial conditions for \(S\text{,}\) we would stop here. The initial conditions make it possible for us to find definite values for \(b_1\) and \(b_2\). \[\left\{ \begin{array}{c} S(0)=4 \\ S(1)=4 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} b_13^0+b_24^0=4 \\ b_13^1+b_24^1=4 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} b_1+b_2=4 \\ 3b_1+4b_2=4 \\ \end{array} \right\}\textrm{ }\]

The solution of this set of simultaneous equations is \(b_1 = 12\) and \(b_2 = -8\) and so the solution is \(S(k) = 12 \cdot 3^k - 8 \cdot 4^k\).

Definition8.3.9Characteristic Equation

The characteristic equation of the homogeneous \(n^{\textrm{th}}\) order linear relation \(S(k) + C_1 S(k- 1) +\ldots + C_n S(k - n) =0\) is the \(n\)th degree polynomial equation \[a^n+\sum_{j=1}^n C_j a^{n-j}=a^n+ C_1a^{n-1}+\cdots +C_{n-1}a+C_n=0\] The left-hand side of this equation is called the characteristic polynomial. The roots of the characteristic polynomial are called the characteristic roots of the equation.

Example8.3.10Some characteristic equations

  1. The characteristic equation of \(F(k) - F(k - 1) - F(k - 2) = 0\) is \(a^2-a-1=0\).

  2. The characteristic equation of \(Q(k) + 2Q(k - 1) - 3Q(k - 2) - 6 Q(k- 4) = 0\) is \(a^4+ 2a^3 - 3a^2 - 6 = 0.\) Note that the absence of a \(Q(k - 3)\) term means that there is not an \(x^{4-3}=x\) term appearing in the characteristic equation.

Although this algorithm is valid for all values of \(n\text{,}\) there are limits to the size of \(n\) for which the algorithm is feasible. Using just a pencil and paper, we can always solve second-order equations. The quadratic formula for the roots of \(a x^2 + b x + c = 0\) is \[x=\frac{-b\pm \sqrt{b^2-4 a c}}{2 a}\] The solutions of \(a^2+ C_1a + C_2 = 0\) are then \[\frac{1}{2}\left(-C_1+\sqrt{C_1{}^2-4 C_2}\right)\textrm{ and }\frac{1}{2}\left(-C_1-\sqrt{C_1{}^2-4 C_2}\right)\]

Although cubic and quartic formulas exist, they are too lengthy to introduce here. For this reason, the only higher-order relations (\(n\geq 3\)) that you could be expected to solve by hand are ones for which there is an easy factorization of the characteristic polynomial.

Example8.3.12A solution using the algorithm

Suppose that \(T\) is defined by \(T(k) =7T(k-1)-10T(k-2)\), with \(T(0) = 4\) and \(T(1) = 17\). We can solve this recurrence relation with Algorithm 8.3.11:

  1. Note that we have written the recurrence relation in “nonstandard” form. To avoid errors in this easy step, you might consider a rearrangement of the equation to, in this case, \(T(k) -7T(k-1)+10T(k-2)=0\). Therefore, the characteristic equation is \(a^2 -7a + 10 = 0\).

  2. The characteristic roots are \(\frac{1}{2}\left(7+\sqrt{49-40}\right)=5\) and \(\frac{1}{2}\left(7-\sqrt{49-40}\right)=2\). These roots can be just as easily obtained by factoring the characteristic polynomial into \((a - 5)(a - 2)\).

  3. The general solution of the recurrence relation is \(T(k) =b_12^k+ b_25^k\) ,

  4. \(\quad\) \(\left\{ \begin{array}{c} T(0)=4 \\ T(1)=17 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} b_12^0+b_25^0=4 \\ b_12^1+b_25^1=17 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} b_1+b_2=4 \\ 2b_1+5b_2=17 \\ \end{array} \right\}\textrm{ }\) The simultaneous equations have the solution \(b_1=1\) and \(b_2=3\), Therefore, \(T(k)=2^{k }+3\cdot 5^k\).

Here is one rule that might come in handy: If the coefficients of the characteristic polynomial are all integers, with the constant term equal to \(m\text{,}\) then the only possible rational characteristic roots are divisors of \(m\) (both positive and negative).

With the aid of a computer (or possibly only a calculator), we can increase \(n\text{.}\) Approximations of the characteristic roots can be obtained by any of several well-known methods, some of which are part of standard software packages. There is no general rule that specifies the values of \(n\) for which numerical approximations will be feasible. The accuracy that you get will depend on the relation that you try to solve. (See Exercise 17 of this section.)

Example8.3.13Solution of a Third Order Recurrence Relation.

Solve \(S(k) - 7S(k - 2) + 6S(k - 3) = 0\), where \(S(0) =8\), \(S(1) = 6\), and \(S(2) = 22\).

  1. The characteristic equation is \(a^3 - 7a + 6 = 0\).

  2. The only rational roots that we can attempt are \(\pm 1, \pm 2, \pm 3, \textrm{and} \pm 6\). By checking these, we obtain the three roots 1, 2, and \(-3\).

  3. The general solution is \(S(k) =b_11^k+b_22^k+b_3(-3){}^k\). The first term can simply be written \(b_1\) .

  4. \(\left\{ \begin{array}{c} S(0)=8 \\ S(1)=6 \\ S(2)=22 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} b_1+b_2+b_3=8 \\ b_1+2b_2-3b_3=6 \\ b_1+4b_2+9b_3=22 \\ \end{array} \right\}\textrm{ }\) You can solve this system by elimination to obtain \(b_1=5\), \(b_2=2\), and \(b_3=1\). Therefore, \(\quad\)\(S(k) = 5 + 2\cdot 2^k + (-3)^k = 5 + 2^{k+1} + (-3)^k\)

Example8.3.14Solution with a Double Characteristic Root

Solve \(D(k) - 8D(k - 1) + 16D(k - 2) = 0\), where \(D(2) = 16\) and \(D(3) = 80\).

  1. Characteristic equation: \(a^2- 8a + 16 = 0\).

  2. \(a^2- 8a + 16 = (a - 4)^2\). Therefore, there is a double characteristic root, 4.

  3. General solution: \(D(k) = \left(b_{10}+b_{11}k\right)4^k\).

  4. \(\left\{ \begin{array}{c} D(2)=16 \\ D(3)=80 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} \left(b_{10}+b_{11}2\right)4^2=16 \\ \left(b_{10}+b_{11}3\right)4^3=80 \\ \end{array} \right\}\textrm{ } \\ \Rightarrow \left\{ \begin{array}{c} 16b_{10}+32b_{11}=16 \\ 64b_{10}+192b_{11}=80 \\ \end{array} \right\} \Rightarrow \left\{ \begin{array}{c} b_{10}=\frac{1}{2} \\ b_{11}=\frac{1}{4} \\ \end{array} \right\}\)

    Therefore \(D (k) = (1/2 + (1/4) k) 4^k= (2 + k)4^{k-1}\).

Subsection8.3.4Solution of Nonhomogeneous Finite Order Linear Relations

Our algorithm for nonhomogeneous relations will not be as complete as for the homogeneous case. This is due to the fact that different right-hand sides (\(f(k)\)'s) call for different rules in obtaining a particular solution.

Right Hand Side, \(f(k)\) Form of Particular Solution, \(S^{(p)}(k)\)
Constant, \(q\) Constant, \(d\)
Linear Function, \(q_0+q_1 k\) Linear Function, \(d_0+d_1 k\)
\(m^{th}\) degree polynomial, \(q_0+q_1k+\cdots +q_m k^m\) \(m^{th}\) degree polynomial, \(d_0+d_1k+\cdots +d_m k^m\)
exponential function, \(q a^k\) exponential function, \(d a^k\)
Table8.3.16Particular solutions for given right-hand sides
Example8.3.17Solution of a Nonhomogeneous First Order Recurrence Relation

Solve \(S(k) + 5S(k - 1) = 9\), with \(S(0) = 6\).

  1. The associated homogeneous relation,\(S(k) + 5S(k - 1) = 0\) has the characteristic equation \(a + 5 = 0\); therefore, \(a = -5\). The homogeneous solution is \(S^{(h)}(k) =b (-5)^k\).

  2. Since the right-hand side is a constant, we guess that the particular solution will be a constant, \(d\text{.}\)

  3. If we substitute \(S^{(p)}(k) = d\) into the recurrence relation, we get \(d + 5d = 9\), or \(6d = 9\). Therefore, \(S^{(p)}(k)=1.5\).

  4. The general solution of the recurrence relation is \(\quad\)\(S(k)= S^{(h)}(k)+S^{(p)}(k) =b (-5)^k+1.5\) The initial condition will give us one equation to solve in order to determine \(b\text{.}\) \(\quad\)\(S(0) = 6 \Rightarrow \textrm{ }b(-5)^0+ 1.5 = 6\textrm{ }\Rightarrow \textrm{ }b\textrm{ }+ 1.5 = 6\) Therefore, \(b = 4.5\) and \(S(k) = 4.5(-5)^k + 1.5\).

Example8.3.18Solution of a Nonhomogeneous Second Order Recurrence Relation

Consider \(T(k) - 7T(k - 1) + 10T(k - 2) = 6 + 8k\) with \(T(0) = 1\) and \(T(1) = 2\).

  1. From Example 8.3.7, we know that \(T^{(h)}(k)=b_12^k+ b_25^k\). Caution:Don't apply the initial conditions to \(T^{(h)}\) until you add \(T^{(p)}\)!

  2. Since the right-hand side is a linear polynomial, \(T^{(p)}\) is linear; that is, \(T^{(p)}(k)=d_0+d_1k\).

  3. Substitution into the recurrence relation yields: \(\left(d_0+d_1k\right)-7\left(d_0+d_1(k-1)\right)+10\left(d_0+d_1(k-2)\right)=6+8k\) \(\quad\)\(\Rightarrow \left(4d_0-13d_1\right)+ \left(4d_1\right)k = 6 + 8 k\) Two polynomials are equal only if their coefficients are equal. Therefore, \(\quad\) \(\left\{ \begin{array}{c} 4d_0-13d_1=6 \\ 4d_1=8 \\ \end{array} \right\}\Rightarrow \left\{ \begin{array}{c} d_0=8 \\ d_1=2 \\ \end{array} \right\}\)

  4. Use the general solution \(T(k) =b_12^k+ b_25^k+8+2k\) and the initial conditions to get a final solution: \(\quad\) \(\left\{ \begin{array}{c} T(0)=1 \\ T(1)=2 \\ \end{array} \right\}\textrm{ }\Rightarrow \left\{ \begin{array}{c} b_1+ b_2+8=1 \\ 2b_1+5b_2+10=2 \\ \end{array} \right\}\textrm{ }\\ \\ \quad \quad \Rightarrow \left\{ \begin{array}{c} b_1+b_2=-7 \\ 2b_1+5b_2=-8 \\ \end{array} \right\}\\ \\ \quad \quad \Rightarrow \left\{ \begin{array}{c} b_1=-9 \\ b_2=2 \\ \end{array} \right\}\textrm{ }\)

    Therefore, \(T(k) =-9\cdot 2^k+ 2\cdot 5^k+8+2k\).

Note8.3.19A quick note on interest rates

When a quantity, such as a savings account balance, is increased by some fixed percent, it is most easily computed with a multiplier. In the case of an \(8\%\) increase, the multiplier is 1.08 because any original amount \(A\text{,}\) has \(0.08A\) added to it, so that the new balance is \(A+0.08A = (1+0.08)A = 1.08 A\).

Another example is that if the interest rate is \(3.5\%\text{,}\) the multiplier would be 1.035. This presumes that the interest is applied at the end of year for \(3.5\%\) annual interest, often called simple interest. If the interest is applied monthly, and we assume a simplifed case where each month has the same length, the multiplier after every month would be \(\left(1+\frac{0.035}{12}\right) \approx 1.00292\).After a year passes, this multiplier would be applied 12 times, which is the same as multiplying by\(1.00292^{12}\approx 1.03557\). That increase from 1.035 to 1.03557 is the effect of compound interest.

Example8.3.20A Sort of Annuity

Suppose you open a savings account that pays an annual interest rate of \(8\%\text{.}\) In addition, suppose you decide to deposit one dollar when you open the account, and you intend to double your deposit each year. Let \(B(k)\) be your balance after \(k\) years. \(B\) can be described by the relation \(B(k) = 1.08 B(k - 1) + 2^k\), with \(S(0) = 1\). If, instead of doubling the deposit each year, you deposited a constant amount, \(q\text{,}\) the \(2^k\) term would be replaced with \(q\text{.}\) A sequence of regular deposits such as this is called a simple annuity.

Returning to the original situation,

  1. \(B^{(h)}(k)=b_1(1.08){}^k\)

  2. \(B^{(p)}(k)\) should be of the form \(d 2^k\).

  3. \begin{equation*} \begin{split} d 2^k = 1.08d 2^{k-1}+2^k & \Rightarrow (2d) 2^{k-1} = 1.08d 2^{k-1}+ 2\cdot 2^{k-1}\\ & \Rightarrow 2d = 1.08 d + 2\\ &\Rightarrow .92d = 2 \\ &\Rightarrow d= 2.174 \textrm{ to the nearest thousandth}) \end{split} \end{equation*} Therefore \(B^{(p)}(k)=2.174\cdot 2^k\).

  4. \(B(0) = 1 \Rightarrow \textrm{ }b_1+2.174 = 1\\ \\ \textrm{\(\quad\) }\Rightarrow \textrm{ }b_1= -1.174\)

    Therefore, \(B(k) = -1.174\cdot 1.08^k+ 2.174\cdot 2^k\).

Example8.3.21Matching Roots

Find the general solution to \(S(k) - 3 S(k - 1) - 4 S(k - 2) = 4^k\).

  1. The characteristic roots of the associated homogeneous relation are \(-1\) and 4. Therefore, \(S^{(h)}(k)=b_1(-1){}^k+ b_2 4^k\).

  2. A function of the form \(d 4^k\) will not be a particular solution of the nonhomogeneous relation since it solves the associated homogeneous relation. When the right-hand side involves an exponential function with a base that equals a characteristic root,you should multiply your guess at a particular solution by \(k\text{.}\) Our guess at \(S^{(p)}(k)\) would then be \(d k 4^k\) . See 8.3.22 for a more complete description of this rule.

  3. Substitute \(d k 4^k\) into the recurrence relation for \(S(k)\): \begin{equation*} \begin{array}{c} d k 4^k-3d (k-1) 4^{k-1}-4d (k-2) 4^{k-2}=4^k\\ 16d k 4^{k-2}-12d (k-1) 4^{k-2}-4d (k-2) 4^{k-2}=4^k\\ \end{array} \end{equation*} Each term on the left-hand side has a factor of \(4^{k-2}\) \begin{equation*} 16 d k - 12d(k - 1) - 4d(k - 2) = 4^220 d = 16 \Rightarrow d=0.8 \end{equation*} Therefore, \(S^{(p)}(k) = 0.8 k 4^k\).

  4. The general solution to the recurrence relation is \[S(k) =b_1(-1){}^k+ b_2 4^k +0.8 k 4^k\]

Observation8.3.22When the base of right-hand side is equal to a characteristic root

If the right-hand side of a nonhomogeneous relation involves an exponential with base \(a\text{,}\) and \(a\) is also a characteristic root of multiplicity \(p\text{,}\) then multiply your guess at a particular solution as prescribed in Table 8.3.16 by \(k^p\), where \(k\) is the index of the sequence.

Example8.3.23Examples of matching bases

  1. If \(S(k) - 9S(k - 1) + 20 S(k - 2) = 2\cdot 5^k\), the characteristic roots are 4 and 5. Since 5 matches the base of the right side, \(S^{(p)}(k)\) will take the form \(d k 5^k\).

  2. If \(S(n)- 6S(n - 1) + 9 S(n - 2) = 3^{n+1}\) the only characteristic root is 3, but it is a double root (multiplicity 2). Therefore, the form of the particular solution is \(d n^2 3^n\).

  3. If \(Q(j)-Q(j-1)-12Q(j-2)=(-3)^j+ 6\cdot 4^j\), the characteristic roots are \(-3\) and 4. The form of the particular solution will be \(d_1j (-3)^j+ d_2j\cdot 4^j\).

  4. If \(S(k) - 9S(k - 1) + 8S(k- 2) = 9k + 1 = (9k + 1)1^k\), the characteristic roots are 1 and 8. If the right-hand side is a polynomial, as it is in this case, then the exponential factor \(1^k\) can be introduced. The particular solution will take the form \(k\left(d_0+ d_1k\right)\).

We conclude this section with a comment on the situation in which the characteristic equation gives rise to complex roots. If we restrict the coefficients of our finite order linear relations to real numbers, or even to integers, we can still encounter characteristic equations whose roots are complex. Here, we will simply take the time to point out that our algorithms are still valid with complex characteristic roots, but the customary method for expressing the solutions of these relations is different. Since an understanding of these representations requires some background in complex numbers, we will simply suggest that an interested reader can refer to a more advanced treatment of recurrence relations (see also difference equations).

Subsection8.3.5Exercises for Section 8.3

Solve the following sets of recurrence relations and initial conditions:

1

\(S(k) - 10S(k - 1) + 9S(k - 2) = 0\), \(S(0) = 3\), \(S(1) = 11\)

Answer
2

\(S(k) - 9S(k - 1) + 18S(k - 2) = 0\), \(S(0) = 0\), \(S(1) = 3\)

3

\(S(k) - 0.25S(k - 1) = 0\), \(S(0) = 6\)

Answer
4

\(S(k) - 20S(k - 1) + 100S(k - 2) = 0\), \(S(0) = 2\), \(S(1) = 50\)

5

\(S(k) - 2S(k - 1) + S(k - 2) = 2 \textrm{, }S(0) = 25,\textrm{ }S(1) = 16\)

Answer
6

\(S(k) - S(k - 1) - 6S(k - 2) = -30\), \(S(0) = 7\), \(S(1) = 10\)

7

\(S(k) - 5S (k - 1) = 5^k,\textrm{ }S(0) = 3\)

Answer
8

\(S(k) - 5S(k - 1) + 6S(k - 2) = 2,\textrm{ }S(0) = -1,\textrm{ }S(1) = 0\)

9

\(S(k) - 4S(k - 1) + 4S(k - 2) = 3k + 2^k \textrm{, }S(0) = 1, S(1) = 1\)

Answer
10

\(S(k) = r S(k - 1) + a\), \(S(0) = 0\), \(r, a \geq 0, r \neq 1\)

11

\(S(k) - 4S(k - 1) - 11S(k- 2)+ 30S(k - 3) = 0\), \(S(0) = 0\),\(S(1) = -35,\textrm{ }S(2) = -85\)

Answer
12

Find a closed form expression for \(P(k)\) in Exercise 3 of Section 8.2.

13

  1. Find a closed form expression for the terms of the Fibonacci sequence (see Example 8.1.4).

  2. The sequence \(C\) was defined by \(C_r\) = the number of strings of zeros and ones with length \(r\) having no consecutive zeros (Example 8.2.1(c)). Its recurrence relation is the same as that of the Fibonacci sequence. Determine a closed form expression for \(C_r\), \(r \geq 1\).

Answer
14

If \(S(n)=\sum_{j=1}^n g(j)\),\(n\geq 1\), then \(S\) can be described with the recurrence relation \(S(n) = S(n-1) + g(n)\). For each of the following sequences that are defined using a summation, find a closed form expression:

  1. \(S(n) =\sum_{j=1}^n j\), \(n\geq 1\)

  2. \(Q(n) = \sum_{j=1}^n j^2\), \(n\geq 1\)

  3. \(P(n) =\)\(\sum_{j=1}^n \left(\frac{1}{2}\right)^j\), \(n\geq 0\)

  4. \(T(n)= \sum_{j=1}^n j^3\), \(n\geq 1\)

15

Let \(D(n)\) be the number of ways that the set \(\{1, 2, . . . , n\}\), \(n \geq 1\), can be partitioned into two nonempty subsets.

  1. Find a recurrence relation for \(D\text{.}\) (Hint: It will be a first-order linear relation.)

  2. Solve the recurrence relation.

Answer
16

If you were to deposit a certain amount of money at the end of each year for a number of years, this sequence of payment would be called an annuity (see Example 8.3.20).

  1. Find a closed form expression for the balance or value of an annuity that consists of payments of \(q\) dollars at a rate of interest of \(i\text{.}\) Note that for a normal annuity, the first payment is made after one year.

  2. With an interest rate of 5.5 percent, how much would you need to deposit into an annuity to have a value of one million dollars after 18 years?

  3. The payment of a loan is a form of annuity in which the initial value is some negative amount (the amount of the loan) and the annuity ends when the value is raised to zero. How much could you borrow if you can afford to pay \textrm{$}5,000 per year for 25 years at 11 percent interest?

17

Suppose that \(C\) is a small positive number. Consider the recurrence relation \(B(k) - 2B(k - 1) + \left(1 - C ^2\right)B(k - 2) = C^2\), with initial conditions \(B(0) = 1\) and \(B(1) = 1\). If \(C\) is small enough, we might consider approximating the relation by replacing \(1 - C^2\) with 1 and \(C^2\) with 0. Solve the original relation and its approximation. Let \(B_a\) a be the solution of the approximation. Compare closed form expressions for \(B(k)\) and \(B_a(k)\). Their forms are very different because the characteristic roots of the original relation were close together and the approximation resulted in one double characteristic root.If characteristic roots of a relation are relatively far apart, this problem will not occur. For example, compare the general solutions of \(S(k) + 1.001S(k - 1) - 2.004002S(k - 2) = 0.0001\) and \(S_a(k) + S_a(k - 1) - 2S_a(k - 2) = 0\).