# Cauchy sequence

In mathematics, a Cauchy sequence is a sequence in a metric space with the property that elements in that sequence cluster together more and more as the sequence progresses. Another way of thinking of the clustering is that the distance between any two elements diminishes as their indexes grow larger and larger.

## Formal definition

Let ${\displaystyle (X,d)}$ be a metric space. Then a sequence ${\displaystyle x_{1},x_{2},\ldots }$ of elements in X is a Cauchy sequence if for any real number ${\displaystyle \epsilon >0}$ there exists a positive integer ${\displaystyle N(\epsilon )}$, dependent on ${\displaystyle \epsilon }$, such that ${\displaystyle d(x_{n},x_{m})<\epsilon }$ for all ${\displaystyle m,n>N(\epsilon )}$. In limit notation this is written as ${\displaystyle \mathop {\lim } _{n,m\rightarrow \infty }d(x_{m},x_{n})=0}$.