# 数列的后续项（Next terms of a sequence，next_terms）

列表之后的项：仅当某条规则能解释它并预测出另外两项时才给出。

## 怎么写

### next_terms(terms)

接下来的五项。

**terms**

最初的几项，整数或分数，第一项为 a(1)。接受一个列表。

### next_terms(terms, count)

接下来的项，数量与询问的一样多。

**terms**

最初的几项，整数或分数，第一项为 a(1)。接受一个列表。

**count**

要给出多少项。接受一个整数。

## 示例

- $\displaystyle 1, 4, 9, 16, 25, \ldots = \left[ 36, 49, 64, 81, 100 \right]$

  `next_terms([1, 4, 9, 16, 25])`

  在求解器中，`next_terms([1, 4, 9, 16, 25])` 的结果是 `[36, 49, 64, 81, 100]`。

  [在求解器中打开](https://zh.hilberon.com/?q=next_terms%28%5B1%2C%204%2C%209%2C%2016%2C%2025%5D%29)
- $\displaystyle 1, 1, 2, 3, 5, 8, \ldots = \left[ 13, 21, 34, 55, 89 \right]$

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

  在求解器中，`next_terms([1, 1, 2, 3, 5, 8])` 的结果是 `[13, 21, 34, 55, 89]`。

  [在求解器中打开](https://zh.hilberon.com/?q=next_terms%28%5B1%2C%201%2C%202%2C%203%2C%205%2C%208%5D%29)
- $\displaystyle 1, 2, 4, 8, 16, 32, \ldots = \left[ 64, 128, 256 \right]$

  `next_terms([1, 2, 4, 8, 16, 32], 3)`

  在求解器中，`next_terms([1, 2, 4, 8, 16, 32], 3)` 的结果是 `[64, 128, 256]`。

  [在求解器中打开](https://zh.hilberon.com/?q=next_terms%28%5B1%2C%202%2C%204%2C%208%2C%2016%2C%2032%5D%2C%203%29)

## 相关函数

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

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

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

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

  一个项列表所满足的递推关系；仅当它在另外两项上也成立时才给出。
- [product](https://zh.hilberon.com/library/product)

  表达式在一个或多个范围上的乘积。
- [differences](https://zh.hilberon.com/library/differences)

  列表中相邻元素之差。

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