# Convergent series

In mathematics, a series is the sum of the terms of an infinite sequence of numbers. More precisely, an infinite sequence $(a_{1},a_{2},a_{3},\ldots )$ defines a series S that is denoted
    $S=a_{1}+a_{2}+a_{3}+\cdots =\sum _{k=1}^{\infty }a_{k}.$
The nth partial sum S$_n$ is the sum of the first n terms of the sequence; that is,
    $S_{n}=a_{1}+a_{2}+\cdots +a_{n}=\sum _{k=1}^{n}a_{k}.$
A series is convergent (or converges) if and only if the sequence $(S_{1},S_{2},S_{3},\dots )$ of its partial sums tends to a limit; that means that, when adding one $a_{k}$ after the other in the order given by the indices, one gets partial sums that become closer and closer to a given number. More precisely, a series converges, if and only if there exists a number $\ell$ such that for every arbitrarily small positive number $\varepsilon$, there is a (sufficiently large) integer $N$ such that for all $n\geq N$,
    $\left|S_{n}-\ell \right|<\varepsilon .$
If the series is convergent, the (necessarily unique) number $\ell$ is called the sum of the series.
The same notation
    $\sum _{k=1}^{\infty }a_{k}$
is used for the series, and, if it is convergent, to its sum. This convention is similar to that which is used for addition: a + b denotes the operation of adding a and b as well as the result of this addition, which is called the sum of a and b.
Any series that is not convergent is said to be divergent or to diverge.

## Examples of convergent and divergent series

* The reciprocals of the positive integers produce a divergent series (harmonic series):
    ${1 \over 1}+{1 \over 2}+{1 \over 3}+{1 \over 4}+{1 \over 5}+{1 \over 6}+\cdots \rightarrow \infty .$
* Alternating the signs of the reciprocals of positive integers produces a convergent series (alternating harmonic series):
    ${1 \over 1}-{1 \over 2}+{1 \over 3}-{1 \over 4}+{1 \over 5}-\cdots =\ln(2)$
* The reciprocals of prime numbers produce a divergent series (so the set of primes is "large"; see divergence of the sum of the reciprocals of the primes):
    ${1 \over 2}+{1 \over 3}+{1 \over 5}+{1 \over 7}+{1 \over 11}+{1 \over 13}+\cdots \rightarrow \infty .$
* The reciprocals of triangular numbers produce a convergent series:
    ${1 \over 1}+{1 \over 3}+{1 \over 6}+{1 \over 10}+{1 \over 15}+{1 \over 21}+\cdots =2.$
* The reciprocals of factorials produce a convergent series (see e):
    ${\frac {1}{1}}+{\frac {1}{1}}+{\frac {1}{2}}+{\frac {1}{6}}+{\frac {1}{24}}+{\frac {1}{120}}+\cdots =e.$
* The reciprocals of square numbers produce a convergent series (the Basel problem):
    ${1 \over 1}+{1 \over 4}+{1 \over 9}+{1 \over 16}+{1 \over 25}+{1 \over 36}+\cdots ={\pi ^{2} \over 6}.$
* The reciprocals of powers of 2 produce a convergent series (so the set of powers of 2 is "small"):
    ${1 \over 1}+{1 \over 2}+{1 \over 4}+{1 \over 8}+{1 \over 16}+{1 \over 32}+\cdots =2.$
* The reciprocals of powers of any n>1 produce a convergent series:
    ${1 \over 1}+{1 \over n}+{1 \over n^{2}}+{1 \over n^{3}}+{1 \over n^{4}}+{1 \over n^{5}}+\cdots ={n \over n-1}.$
* Alternating the signs of reciprocals of powers of 2 also produces a convergent series:
    ${1 \over 1}-{1 \over 2}+{1 \over 4}-{1 \over 8}+{1 \over 16}-{1 \over 32}+\cdots ={2 \over 3}.$
* Alternating the signs of reciprocals of powers of any n>1 produces a convergent series:
    ${1 \over 1}-{1 \over n}+{1 \over n^{2}}-{1 \over n^{3}}+{1 \over n^{4}}-{1 \over n^{5}}+\cdots ={n \over n+1}.$
* The reciprocals of Fibonacci numbers produce a convergent series (see ψ):
    ${\frac {1}{1}}+{\frac {1}{1}}+{\frac {1}{2}}+{\frac {1}{3}}+{\frac {1}{5}}+{\frac {1}{8}}+\cdots =\psi .$

## Convergence tests

There are a number of methods of determining whether a series converges or diverges.
Comparison test. The terms of the sequence $\left\{a_{n}\right\}$ are compared to those of another sequence $\left\{b_{n}\right\}$. If, for all n, $0\leq \ a_{n}\leq \ b_{n}$, and ∑$_{n=1}$$^∞$b$_n${\textstyle \sum _{n=1}^{\infty }b_{n}} converges, then so does ∑$_{n=1}$$^∞$a$_n$.{\textstyle \sum _{n=1}^{\infty }a_{n}.}
However, if, for all n, $0\leq \ b_{n}\leq \ a_{n}$, and ∑$_{n=1}$$^∞$b$_n${\textstyle \sum _{n=1}^{\infty }b_{n}} diverges, then so does ∑$_{n=1}$$^∞$a$_n$.{\textstyle \sum _{n=1}^{\infty }a_{n}.}
Ratio test. Assume that for all n, $a_{n}$ is not zero. Suppose that there exists $r$ such that
    $\lim _{n\to \infty }\left|{\frac {a_{n+1}}{a_{n}}}\right|=r.$
If r < 1, then the series is absolutely convergent. If r > 1, then the series diverges. If r = 1, the ratio test is inconclusive, and the series may converge or diverge.
Root test or nth root test. Suppose that the terms of the sequence in question are non-negative. Define r as follows:
    $r=\limsup _{n\to \infty }{\sqrt[{n}]{|a_{n}|}},$
    where "lim sup" denotes the limit superior (possibly ∞; if the limit exists it is the same value).
If r < 1, then the series converges. If r > 1, then the series diverges. If r = 1, the root test is inconclusive, and the series may converge or diverge.
The ratio test and the root test are both based on comparison with a geometric series, and as such they work in similar situations. In fact, if the ratio test works (meaning that the limit exists and is not equal to 1) then so does the root test; the converse, however, is not true. The root test is therefore more generally applicable, but as a practical matter the limit is often difficult to compute for commonly seen types of series.
Integral test. The series can be compared to an integral to establish convergence or divergence. Let $f(n)=a_{n}$ be a positive and monotonically decreasing function. If
    $\int _{1}^{\infty }f(x)\,dx=\lim _{t\to \infty }\int _{1}^{t}f(x)\,dx<\infty ,$
then the series converges. But if the integral diverges, then the series does so as well.
Limit comparison test. If $\left\{a_{n}\right\},\left\{b_{n}\right\}>0$, and the limit $\lim _{n\to \infty }{\frac {a_{n}}{b_{n}}}$ exists and is not zero, then ∑$_{n=1}$$^∞$a$_n${\textstyle \sum _{n=1}^{\infty }a_{n}} converges if and only if ∑$_{n=1}$$^∞$b$_n${\textstyle \sum _{n=1}^{\infty }b_{n}} converges.
Alternating series test. Also known as the Leibniz criterion, the alternating series test states that for an alternating series of the form ∑$_{n=1}$$^∞$a$_n$(−1)$^n${\textstyle \sum _{n=1}^{\infty }a_{n}(-1)^{n}}, if $\left\{a_{n}\right\}$ is monotonically decreasing, and has a limit of 0 at infinity, then the series converges.
Cauchy condensation test. If $\left\{a_{n}\right\}$ is a positive monotone decreasing sequence, then ∑$_{n=1}$$^∞$a$_n${\textstyle \sum _{n=1}^{\infty }a_{n}} converges if and only if ∑$_{k=1}$$^∞$2$^k$a$_{2k}${\textstyle \sum _{k=1}^{\infty }2^{k}a_{2^{k}}} converges.
Dirichlet's test
Abel's test

## Conditional and absolute convergence

If the series ∑$_{n=1}$$^∞$|a$_n$|{\textstyle \sum _{n=1}^{\infty }\left|a_{n}\right|} converges, then the series ∑$_{n=1}$$^∞$a$_n${\textstyle \sum _{n=1}^{\infty }a_{n}} is said to be absolutely convergent. Every absolute convergent series (real or complex) is also convergent, but the converse is not true. The Maclaurin series of the exponential function is absolutely convergent for every complex value of the variable.
If the series ∑$_{n=1}$$^∞$a$_n${\textstyle \sum _{n=1}^{\infty }a_{n}} converges but the series ∑$_{n=1}$$^∞$|a$_n$|{\textstyle \sum _{n=1}^{\infty }\left|a_{n}\right|} diverges, then the series ∑$_{n=1}$$^∞$a$_n${\textstyle \sum _{n=1}^{\infty }a_{n}} is conditionally convergent. The Maclaurin series of the logarithm function $\ln(1+x)$ is conditionally convergent for x = 1 (see the Mercator series).
The Riemann series theorem states that if a series converges conditionally, it is possible to rearrange the terms of the series in such a way that the series converges to any value, or even diverges. Agnew's theorem characterizes rearrangements that preserve convergence for all series.

## Uniform convergence

Let $\left\{f_{1},\ f_{2},\ f_{3},\dots \right\}$ be a sequence of functions.
The series ∑$_{n=1}$$^∞$f$_n${\textstyle \sum _{n=1}^{\infty }f_{n}} is said to converge uniformly to f if the sequence $\{s_{n}\}$ of partial sums defined by
    $s_{n}(x)=\sum _{k=1}^{n}f_{k}(x)$
converges uniformly to f.
There is an analogue of the comparison test for infinite series of functions called the Weierstrass M-test.

## Cauchy convergence criterion

The Cauchy convergence criterion states that a series
    $\sum _{n=1}^{\infty }a_{n}$
converges if and only if the sequence of partial sums is a Cauchy sequence. This means that for every $\varepsilon >0,$ there is a positive integer $N$ such that for all $n\geq m\geq N$ we have
    $\left|\sum _{k=m}^{n}a_{k}\right|<\varepsilon .$
This is equivalent to
$\lim _{m\to \infty }\left(\sup _{n>m}\left|\sum _{k=m}^{n}a_{k}\right|\right)=0.$