# find_linear_recurrence 函数

一个项列表所满足的递推关系；仅当它在另外两项上也成立时才给出。

## 怎么写

### find_linear_recurrence(terms)

形如 a(n + r) = ... 的方程，用前面的项表示，而不是它的系数列表。

**terms**

开头的若干项，整数或分数，第一项为 a(1)。接受一个列表。

## 示例

- $\displaystyle 1, 1, 2, 3, 5, 8, \ldots \Rightarrow a(n+2) = a(n)+a(n+1)$

  `find_linear_recurrence([1, 1, 2, 3, 5, 8])`

  在求解器中，`find_linear_recurrence([1, 1, 2, 3, 5, 8])` 的结果是 `a(n + 2) = a(n) + a(n + 1)`。

  [在求解器中打开](https://zh.hilberon.com/?q=find_linear_recurrence%28%5B1%2C%201%2C%202%2C%203%2C%205%2C%208%5D%29)
- $\displaystyle 1, 3, 9, 27, 81, 243, \ldots \Rightarrow a(n+1) = 3 a(n)$

  `find_linear_recurrence([1, 3, 9, 27, 81, 243])`

  在求解器中，`find_linear_recurrence([1, 3, 9, 27, 81, 243])` 的结果是 `a(n + 1) = 3a(n)`。

  [在求解器中打开](https://zh.hilberon.com/?q=find_linear_recurrence%28%5B1%2C%203%2C%209%2C%2027%2C%2081%2C%20243%5D%29)

## 相关函数

- [find_sequence_function](https://zh.hilberon.com/library/find_sequence_function)

  由开头若干项求数列的公式；仅当它还能预测另外两项时才给出。
- [differences](https://zh.hilberon.com/library/differences)

  列表中相邻元素之差。
- [next_terms](https://zh.hilberon.com/library/next_terms)

  列表之后的项：仅当某条规则能解释它并预测出另外两项时才给出。
- [sum_convergence](https://zh.hilberon.com/library/sum_convergence)

  检验表达式关于某个变量的和是否收敛。
- [numeric_product](https://zh.hilberon.com/library/numeric_product)

  在某个范围内对表达式求乘积，以小数表示。
- [sum](https://zh.hilberon.com/library/sum)

  表达式在一个或多个范围上的和。

---
Source: https://zh.hilberon.com/library/find_linear_recurrence
