# Convergence of a series (sum_convergence)

Test whether the sum of an expression over a variable converges.

## How to write it

### sum_convergence(expr, n)

**expr**

Any expression: a number, a formula, a list or a matrix. Takes an expression.

**n**

The index of the sum. Takes a variable.

## Examples

- $\displaystyle \sum_{n} \frac{1}{n^{2}} = \operatorname{true}$

  `sum_convergence(1/n^2, n)`

  In the solver, `sum_convergence(1/n^2, n)` gives `true`.

  [Open in the solver](https://hilberon.com/?q=sum_convergence%281%2Fn%5E2%2C%20n%29)

## Related functions

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

  Sum of an expression over one or more ranges.
- [numeric_sum](https://hilberon.com/library/numeric_sum)

  Add up an expression over a range, as a decimal.
- [differences](https://hilberon.com/library/differences)

  The differences between neighbouring elements of a list.
- [find_linear_recurrence](https://hilberon.com/library/find_linear_recurrence)

  The recurrence a list of terms obeys, given only when it also holds on two more.
- [series_coefficient](https://hilberon.com/library/series_coefficient)

  The coefficient of the term of a given order in the series of an expression.
- [find_sequence_function](https://hilberon.com/library/find_sequence_function)

  The formula of a sequence from its first terms, given only when it also predicts two more.

---
Source: https://hilberon.com/library/sum_convergence
