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: , where and is the degree of the relation.
- Linear non-homogeneous recurrence: the same, plus an extra term that depends only on : .
For example, the Towers of Hanoi moves follow , which is a first-order non-homogeneous linear recurrence.