← back to combinatorics

Recurrence Relations

Applied Combinatorics (CC BY-SA) · appliedcombinatorics.org

A recurrence defines each term from earlier ones. Fibonacci is the archetype: f(n) = f(n−1) + f(n−2). Linear recurrences with constant coefficients always have a closed form built from the roots of a characteristic polynomial.

1 1 2 3 5 8 13 21 each term = sum of the two before it

Iterate forward, or solve in closed form

Computing a recurrence forward is linear and exact. But a linear recurrence also has a closed form: guess f(n) = rn, get a polynomial in r, and the roots give the basis. For Fibonacci the roots are the golden ratio and its conjugate, yielding Binet's formula.

Scheme
Neighbors