Lably
Skip to content

Recurrence relation

Pattern defining an infinite sequence of numbers

  • 10 min read
  • 7 chapters
  • 1 lab on Lably

Learn it on Lably

In linear recurrences, the nth term is equated to a linear function of the k previous terms. A famous example is the recurrence for the Fibonacci numbers, Fn=Fn−1+Fn−2 where the order k is two and the linear function merely adds the two previous terms.

The sequences that satisfy a recurrence relation are exactly the same as the sequences that satisfy a difference equation. More precisely, a difference equation can be associated to every recurrence relation, and, conversely, a recurrence relation can be associated to every difference equation such that the two processes are inverse one to the other, and the sequences that satisfy one of the equations satisfies the other. Because of the similarity of difference equations with differential equations, the methods of resolution of differential equations may often be applied to difference equations and thus to recurrence relations.

The above example is a linear recurrence with constant coefficients. For these recurrences, one can express the general term of the sequence as a closed-form expression of n. As well, linear recurrences with polynomial coefficients are also important, since many common elementary functions and special functions have a Taylor series whose coefficients satisfy such a recurrence relation (see holonomic function).

Solving a recurrence relation means obtaining a closed-form solution: a non-recursive function of n.

The concept of a recurrence relation can be extended to multidimensional arrays, that is, indexed families that are indexed by tuples of natural numbers.

Definition

A recurrence relation is an equation that expresses each element of a sequence as a function of the preceding ones. More precisely, in the case where only the immediately preceding element is involved, a recurrence relation has the form

un=φ(n,un−1)forn>0,

where

φ:N×X→X

is a function, where X is a set to which the elements of a sequence must belong. For any u0∈X, this defines a unique sequence with u0 as its first element, called the initial value.

It is easy to modify the definition for getting sequences starting from the term of index 1 or higher.

This defines recurrence relation of first order. A recurrence relation of order k has the form

un=φ(n,un−1,un−2,…,un−k)forn≥k,

where φ:N×Xk→X is a function that involves k consecutive elements of the sequence. In this case, k initial values are needed for defining a sequence.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Number theory