find_linear_recurrence function
The recurrence a list of terms obeys, given only when it also holds on two more.
How to write it
find_linear_recurrence(terms)
An equation a(n + r) = ... in the terms before it, not the list of its coefficients.
- terms
- The first terms, whole numbers or fractions, the first being a(1). Takes a list.
Examples
find_linear_recurrence([1, 1, 2, 3, 5, 8])In the solver,
Open in the solverfind_linear_recurrence([1, 1, 2, 3, 5, 8])givesa(n + 2) = a(n) + a(n + 1).find_linear_recurrence([1, 3, 9, 27, 81, 243])In the solver,
Open in the solverfind_linear_recurrence([1, 3, 9, 27, 81, 243])givesa(n + 1) = 3a(n).
Related functions
- find_sequence_function
The formula of a sequence from its first terms, given only when it also predicts two more.
- differences
The differences between neighbouring elements of a list.
- next_terms
The terms that follow a list, given only when a rule explains it and predicts two more.
- sum_convergence
Test whether the sum of an expression over a variable converges.
- numeric_product
Multiply an expression over a range, as a decimal.
- sum
Sum of an expression over one or more ranges.