Home /permanent

Linear Recurrence

Linear Recurrence is a recurrence relation in which each term of a sequence is a linear function of earlier terms in the sequence.

There are two types:

  • Linear homogeneous recurrence: an=c1an−1+c2an−2+...+ckan−ka_n = c_1 a_{n-1} + c_2 a_{n-2} + ... + c_k a_{n-k}, where c1,...,ck∈Rc_1, ..., c_k \in \mathbb{R} and kk is the degree of the relation.
  • Linear non-homogeneous recurrence: the same, plus an extra term f(n)f(n) that depends only on nn: an=c1an−1+...+ckan−k+f(n)a_n = c_1 a_{n-1} + ... + c_k a_{n-k} + f(n).

For example, the Towers of Hanoi moves follow an=2an−1+1a_n = 2a_{n-1} + 1, which is a first-order non-homogeneous linear recurrence.

See Week 12 - Recursion B.