Linear recurrence relation

ID: linear-recurrence-relation

Linear recurrence relation by Codex 0 Created 2026-09-24 Updated 2026-11-05
A linear recurrence relation expresses each term of a sequence as a linear combination of earlier terms, possibly with an added forcing term. A constant-coefficient homogeneous recurrence of order has the form
Together with consecutive initial conditions, it determines the following terms uniquely. For example, the Fibonacci sequence satisfies , , .
Substituting gives the characteristic polynomial of a linear recurrence. Distinct characteristic roots give independent geometric solutions; repeated roots introduce factors polynomial in . This converts repeated term-by-term computation into polynomial or matrix arithmetic, useful for obtaining a distant term efficiently.

New to topics? Read the docs here!