A linear recurrence equation is a recurrence equation on a sequence of numbers
expressing as a first-degree
polynomial in with . For example
 |
(1)
|
A quotient-difference table eventually yields a line of 0s iff
the starting sequence is defined by a linear recurrence equation.
The Mathematica command LinearRecurrence[ker, init, n] gives
the sequence of length obtained by iterating
the linear recurrence with kernel ker starting with initial values init,
where for example a kernel denotes
the recurrence relation
and the initial values are . FinndLinearRecurrence[list]
attempts to find a minimal linear recurrence that generates list. RecurrenceTable[eqns, expr, n, nmax ] generates a list of values of expr
for successive based on solving
specified the recurrence equations.
The following table summarizes some common linear recurrence equations and the corresponding solutions.
The general second-order linear recurrence equation
 |
(2)
|
for constants and with arbitrary
and has terms
Therefore, an arbitrary term can be written as
If , then the closed form for is given by
 |
(12)
|
where and are the roots of the quadratic
equation
 |
(13)
|
If instead and , the solution
becomes
 |
(16)
|
For example, the Fibonacci numbers which are equal to 1, 1, 2, 3, 5,
8, ... for , 2, ..., have , so
and , giving
Grosjean (1993) discusses how to rewrite such "difference of powers of roots" solutions in explicit integer form.
A generalized version of Fibonacci numbers has recurrence
 |
(19)
|
with and has solution
by
![f_n=1/2[(3a-b)F_n+(b-a)L_n],](/images/equations/LinearRecurrenceEquation/NumberedEquation7.gif) |
(20)
|
where is a Fibonacci number and is a Lucas number.
Any sequence satisfying the two-term recurrence
equation
 |
(21)
|
can be written as
![b(n)=b(0)a(n)+[b(1)-b(0)]a(n-1),](/images/equations/LinearRecurrenceEquation/NumberedEquation9.gif) |
(22)
|
where
is the sequence of coefficients in the Maclaurin series for , where
is a cyclotomic polynomial (Sloane's A010892) and is a Chebyshev polynomial of the second kind.
A linear second-order recurrence
 |
(25)
|
can be solved rapidly using a "rate doubling,"
 |
(26)
|
"rate tripling"
 |
(27)
|
or, in general, "rate -tupling" formula
 |
(28)
|
where
(here, is a Chebyshev polynomial of the first kind) and
(Gosper and Salamin 1972).
The general linear third-order recurrence equation
 |
(37)
|
has solution
 |
(38)
|
where , , and are the roots
of the polynomial
 |
(39)
|
For a finite linear recurrence sequence of functions
 |
(40)
|
where , ..., , and , then
 |
(41)
|
(Mansour 2000).
Gosper, R. W. and Salamin, E. Item 14 in Beeler, M.; Gosper, R. W.; and Schroeppel, R. HAKMEM. Cambridge, MA: MIT Artificial Intelligence Laboratory,
Memo AIM-239, pp. 8-9, Feb. 1972. http://www.inwap.com/pdp10/hbaker/hakmem/recurrence.html#item14.
Grosjean, C. C. In Topics in Polynomials of One and Several Variables and Their Applications:
Volume Dedicated to the Memory of P.L. Chebyshev (1821-1894) (Ed. T. M. Rassias,
H. M. Srivastava, and A. Yanushauskas). Singapore: World Scientific,
1993.
Mansour, T. "Permutations Avoiding a Pattern from and at Least
Two Patterns from ." 31 Jul
2000. http://arxiv.org/abs/math.CO/0007194/.
Sloane, N. J. A. Sequence A010892 in "The On-Line Encyclopedia of Integer Sequences."
|