Recurrence Equation

DOWNLOAD Mathematica Notebook

A recurrence equation (also called a difference equation) is the discrete analog of a differential equation. A difference equation involves an integer function f(n) in a form like

 f(n)-f(n-1)=g(n),
(1)

where g is some integer function. The above equation is the discrete analog of the first-order ordinary differential equation

 f^'(x)=g(x).
(2)

Examples of difference equations often arise in dynamical systems. Examples include the iteration involved in the Mandelbrot and Julia set definitions,

 f(n+1)=f(n)^2+c,
(3)

with c a constant, as well as the logistic equation

 f(n+1)=rf(n)[1-f(n)],
(4)

with r a constant. Perhaps the most famous example of a recurrence relation is the one defining the Fibonacci numbers,

 F_n=F_(n-2)+F_(n-1)
(5)

for n>=3 and with F_1=F_2=1.

Recurrence equations can be solved using RSolve[eqn, a[n], n]. The solutions to a linear recurrence equation can be computed straightforwardly, but quadratic recurrence equations are not so well understood.

The sequence generated by a recurrence relation is called a recurrence sequence.

Let

 s(X)=product_(i=1)^m(1-alpha_iX)^(n_i)=1-s_1X-...-s_nX^n,
(6)

where the generalized power sum a(h) for h=0, 1, ... is given by

 a(h)=sum_(i=1)^mA_i(h)alpha_i^h,
(7)

with distinct nonzero roots alpha_i, coefficients A_i(h) which are polynomials of degree n_i-1 for positive integers n_i, and i in [1,m]. Then the sequence {a_h} with a_h=a(h) satisfies the recurrence relation

 a_(h+n)=s_1a_(h+n-1)+...+s_na_h
(8)

(Myerson and van der Poorten 1995).

The terms in a general recurrence sequence belong to a finitely generated ring over the integers, so it is impossible for every rational number to occur in any finitely generated recurrence sequence. If a recurrence sequence vanishes infinitely often, then it vanishes on an arithmetic progression with a common difference 1 that depends only on the roots. The number of values that a recurrence sequence can take on infinitely often is bounded by some integer l that depends only on the roots. There is no recurrence sequence in which each integer occurs infinitely often, or in which every Gaussian integer occurs (Myerson and van der Poorten 1995).

Let mu(n) be a bound so that a nondegenerate integer recurrence sequence of order n takes the value zero at least mu(n) times. Then mu(2)=1, mu(3)=6, and mu(4)>=9 (Myerson and van der Poorten 1995). The maximal case for mu(3) is

 a_(n+3)=2a_(n+2)-4a_(n+1)+4a_n
(9)

with

 a_0=a_1=0
(10)
 a_2=1.
(11)

The zeros are

 a_0=a_1=a_4=a_6=a_(13)=a_(52)=0
(12)

(Beukers 1991).

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.