be given. If the characteristic equation
has k distinct solutions r1, r2, . . . , rk, then the only solutions to the recurrence are
where the ci terms are arbitrary constants. (The value of these ci can be determined by the initial/base-case conditions, but we generally can stop here to find the theta-notation.)
1) For the recurrence:
tn = 6 tn-1 - 11 tn-2 + 6 tn-3 for n > 2
t0 = 2
t1 = 5
t2 = 15
a) Obtain the characteristic equation
b) Factor the characteristic equation to find the roots
Theorem B.2 Let r be a root of multiplicity m of the characteristic equation for a homogeneous linear recurrence equation with constant coefficients. Then, the general solution includes the terms
where the ci terms are arbitrary constants.
2) For the recurrence:
tn = 7 tn-1 - 15 tn-2 + 9 tn-3 for n > 2
t0 = 0
t1 = 1
t2 = 2
a) Obtain the characteristic equation
b) Factor the characteristic equation to find the roots
Theorem B.3 A nonhomogeneous linear recurrence equation of the form
can be transformed into a homogeneous linear recurrence that has the characteristic equation
where b is a constant and p(n) is a polynomial of degree d. If there is more than one term like bnp(n) on the right-hand side, each one contributes a term to the characteristic equation.
3) For the recurrence:
tn = 2 tn-1 + 2n - 1 for n > 0
t0 = 0
a) Obtain the characteristic equation
b) Factor the characteristic equation to find the roots
c) Use the base cases to get values for the ci constants.