Search the documentation

Type to search. Use ↑ and ↓ to move, Enter to open.

Linear recurrences

Sequences such as Fibonacci defined by linear rules, computed quickly by matrix exponentiation.

1
projects
1
run in the browser
Defining formula
an=c1an−1+c2an−2+⋯+ckan−ka_n = c_1 a_{n-1} + c_2 a_{n-2} + \dots + c_k a_{n-k}

Each term is a fixed combination of the previous k; the Fibonacci numbers have c₁ = c₂ = 1.

On this page

Projects that use it

Neighbourhood in the knowledge graph

Linear recurrencesNumber theory and algebraNumber Theory ExplorerEuclidean algorithmModular arithmeticModular exponentiationPrime sievesPrimality testingEuler's totient functionArithmetic functionsCryptography in CCryptography Performance AnalysisSorting Algorithms Visualization
ProjectsConceptsDomainsShow in graph →