# Stolz–Cesàro theorem

In mathematics, the Stolz–Cesàro theorem is a criterion for proving the convergence of a sequence. It is named after mathematicians Otto Stolz and Ernesto Cesàro, who stated and proved it for the first time.
The Stolz–Cesàro theorem can be viewed as a generalization of the Cesàro mean, but also as a l'Hôpital's rule for sequences.

## Statement of the theorem for the */∞ case

Let $(a_{n})_{n\geq 1}$ and $(b_{n})_{n\geq 1}$ be two sequences of real numbers. Assume that $(b_{n})_{n\geq 1}$ is a strictly monotone and divergent sequence (i.e. strictly increasing and approaching $+\infty$, or strictly decreasing and approaching $-\infty$) and the following limit exists:
    $\lim _{n\to \infty }{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}=l.\$
Then, the limit
    $\lim _{n\to \infty }{\frac {a_{n}}{b_{n}}}=l.\$

## Statement of the theorem for the 0/0 case

Let $(a_{n})_{n\geq 1}$ and $(b_{n})_{n\geq 1}$ be two sequences of real numbers. Assume now that $(a_{n})\to 0$ and $(b_{n})\to 0$ while $(b_{n})_{n\geq 1}$ is strictly decreasing. If
    $\lim _{n\to \infty }{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}=l,\$
then
    $\lim _{n\to \infty }{\frac {a_{n}}{b_{n}}}=l.\$

## Proofs
### Proof of the theorem for the */∞ case

Case 1: suppose $(b_{n})$ strictly increasing and divergent to $+\infty$, and $-\infty <l<\infty$. By hypothesis, we have that for all $\epsilon /2>0$ there exists $\nu >0$ such that $\forall n>\nu$
    $\left|\,{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}-l\,\right|<{\frac {\epsilon }{2}},$
which is to say
    $l-\epsilon /2<{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}<l+\epsilon /2,\quad \forall n>\nu .$
Since $(b_{n})$ is strictly increasing, $b_{n+1}-b_{n}>0$, and the following holds
    $(l-\epsilon /2)(b_{n+1}-b_{n})<a_{n+1}-a_{n}<(l+\epsilon /2)(b_{n+1}-b_{n}),\quad \forall n>\nu$.
Next we notice that
    $a_{n}=[(a_{n}-a_{n-1})+\dots +(a_{\nu +2}-a_{\nu +1})]+a_{\nu +1}$
thus, by applying the above inequality to each of the terms in the square brackets, we obtain
    ${\begin{aligned}&(l-\epsilon /2)(b_{n}-b_{\nu +1})+a_{\nu +1}=(l-\epsilon /2)[(b_{n}-b_{n-1})+\dots +(b_{\nu +2}-b_{\nu +1})]+a_{\nu +1}<a_{n}\\&a_{n}<(l+\epsilon /2)[(b_{n}-b_{n-1})+\dots +(b_{\nu +2}-b_{\nu +1})]+a_{\nu +1}=(l+\epsilon /2)(b_{n}-b_{\nu +1})+a_{\nu +1}.\end{aligned}}$
Now, since $b_{n}\to +\infty$ as $n\to \infty$, there is an $n_{0}>0$ such that $b_{n}>0$ for all $n>n_{0}$, and we can divide the two inequalities by $b_{n}$ for all $n>\max\{\nu ,n_{0}\}$
    $(l-\epsilon /2)+{\frac {a_{\nu +1}-b_{\nu +1}(l-\epsilon /2)}{b_{n}}}<{\frac {a_{n}}{b_{n}}}<(l+\epsilon /2)+{\frac {a_{\nu +1}-b_{\nu +1}(l+\epsilon /2)}{b_{n}}}.$
The two sequences (which are only defined for $n>n_{0}$ as there could be an $N\leq n_{0}$ such that $b_{N}=0$)
    $c_{n}^{\pm }:={\frac {a_{\nu +1}-b_{\nu +1}(l\pm \epsilon /2)}{b_{n}}}$
are infinitesimal since $b_{n}\to +\infty$ and the numerator is a constant number, hence for all $\epsilon /2>0$ there exists $n_{\pm }>n_{0}>0$, such that
    ${\begin{aligned}&|c_{n}^{+}|<\epsilon /2,\quad \forall n>n_{+},\\&|c_{n}^{-}|<\epsilon /2,\quad \forall n>n_{-},\end{aligned}}$
therefore
    $l-\epsilon <l-\epsilon /2+c_{n}^{-}<{\frac {a_{n}}{b_{n}}}<l+\epsilon /2+c_{n}^{+}<l+\epsilon ,\quad \forall n>\max \lbrace \nu ,n_{\pm }\rbrace =:N>0,$
which concludes the proof. The case with $(b_{n})$ strictly decreasing and divergent to $-\infty$, and $l<\infty$ is similar.
Case 2: we assume $(b_{n})$ strictly increasing and divergent to $+\infty$, and $l=+\infty$. Proceeding as before, for all $2M>0$ there exists $\nu >0$ such that for all $n>\nu$
    ${\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}>2M.$
Again, by applying the above inequality to each of the terms inside the square brackets we obtain
    $a_{n}>2M(b_{n}-b_{\nu +1})+a_{\nu +1},\quad \forall n>\nu ,$
and
    ${\frac {a_{n}}{b_{n}}}>2M+{\frac {a_{\nu +1}-2Mb_{\nu +1}}{b_{n}}},\quad \forall n>\max\{\nu ,n_{0}\}.$
The sequence $(c_{n})_{n>n_{0}}$ defined by
    $c_{n}:={\frac {a_{\nu +1}-2Mb_{\nu +1}}{b_{n}}}$
is infinitesimal, thus
    $\forall M>0\,\exists {\bar {n}}>n_{0}>0{\text{ such that }}-M<c_{n}<M,\,\forall n>{\bar {n}},$
combining this inequality with the previous one we conclude
    ${\frac {a_{n}}{b_{n}}}>2M+c_{n}>M,\quad \forall n>\max\{\nu ,{\bar {n}}\}=:N.$
The proofs of the other cases with $(b_{n})$ strictly increasing or decreasing and approaching $+\infty$ or $-\infty$ respectively and $l=\pm \infty$ all proceed in this same way.

### Proof of the theorem for the 0/0 case

Case 1: we first consider the case with $l<\infty$ and $(b_{n})$ strictly decreasing. This time, for each $\nu >0$, we can write
    $a_{n}=(a_{n}-a_{n+1})+\dots +(a_{n+\nu -1}-a_{n+\nu })+a_{n+\nu },$
and for any $\epsilon /2>0,$ $\exists n_{0}$ such that for all $n>n_{0}$ we have
    ${\begin{aligned}&(l-\epsilon /2)(b_{n}-b_{n+\nu })+a_{n+\nu }=(l-\epsilon /2)[(b_{n}-b_{n+1})+\dots +(b_{n+\nu -1}-b_{n+\nu })]+a_{n+\nu }<a_{n}\\&a_{n}<(l+\epsilon /2)[(b_{n}-b_{n+1})+\dots +(b_{n+\nu -1}-b_{n+\nu })]+a_{n+\nu }=(l+\epsilon /2)(b_{n}-b_{n+\nu })+a_{n+\nu }.\end{aligned}}$
The two sequences
    $c_{\nu }^{\pm }:={\frac {a_{n+\nu }-b_{n+\nu }(l\pm \epsilon /2)}{b_{n}}}$
are infinitesimal since by hypothesis $a_{n+\nu },b_{n+\nu }\to 0$ as $\nu \to \infty$, thus for all $\epsilon /2>0$ there are $\nu _{\pm }>0$ such that
    ${\begin{aligned}&|c_{\nu }^{+}|<\epsilon /2,\quad \forall \nu >\nu _{+},\\&|c_{\nu }^{-}|<\epsilon /2,\quad \forall \nu >\nu _{-},\end{aligned}}$
thus, choosing $\nu$ appropriately (which is to say, taking the limit with respect to $\nu$) we obtain
    $l-\epsilon <l-\epsilon /2+c_{\nu }^{-}<{\frac {a_{n}}{b_{n}}}<l+\epsilon /2+c_{\nu }^{+}<l+\epsilon ,\quad \forall n>n_{0}$
which concludes the proof.
Case 2: we assume $l=+\infty$ and $(b_{n})$ strictly decreasing. For all $2M>0$ there exists $n_{0}>0$ such that for all $n>n_{0},$
    ${\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}>2M\implies a_{n}-a_{n+1}>2M(b_{n}-b_{n+1}).$
Therefore, for each $\nu >0,$
    ${\frac {a_{n}}{b_{n}}}>2M+{\frac {a_{n+\nu }-2Mb_{n+\nu }}{b_{n}}},\quad \forall n>n_{0}.$
The sequence
    $c_{\nu }:={\frac {a_{n+\nu }-2Mb_{n+\nu }}{b_{n}}}$
converges to $0$ (keeping $n$ fixed). Hence
    $\forall M>0\,~\exists {\bar {\nu }}>0$ such that $-M<c_{\nu }<M,\,\forall \nu >{\bar {\nu }},$
and, choosing $\nu$ conveniently, we conclude the proof
    ${\frac {a_{n}}{b_{n}}}>2M+c_{\nu }>M,\quad \forall n>n_{0}.$

## Applications and examples

The theorem concerning the ∞/∞ case has a few notable consequences which are useful in the computation of limits.

### Arithmetic mean

Let $(x_{n})$ be a sequence of real numbers which converges to $l$, define
    $a_{n}:=\sum _{m=1}^{n}x_{m}=x_{1}+\dots +x_{n},\quad b_{n}:=n$
then $(b_{n})$ is strictly increasing and diverges to $+\infty$. We compute
    $\lim _{n\to \infty }{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}=\lim _{n\to \infty }x_{n+1}=\lim _{n\to \infty }x_{n}=l$
therefore
    $\lim _{n\to \infty }{\frac {x_{1}+\dots +x_{n}}{n}}=\lim _{n\to \infty }x_{n}.$
   Given any sequence $(x_{n})_{n\geq 1}$ of real numbers, suppose that
          $\lim _{n\to \infty }x_{n}$
   exists (finite or infinite), then
          $\lim _{n\to \infty }{\frac {x_{1}+\dots +x_{n}}{n}}=\lim _{n\to \infty }x_{n}.$

### Geometric mean

Let $(x_{n})$ be a sequence of positive real numbers converging to $l$ and define
    $a_{n}:=\log(x_{1}\cdots x_{n}),\quad b_{n}:=n,$
again we compute
    $\lim _{n\to \infty }{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}=\lim _{n\to \infty }\log {\Big{\frac {x_{1}\cdots x_{n+1}}{x_{1}\cdots x_{n}}}{\Big )}=\lim _{n\to \infty }\log(x_{n+1})=\lim _{n\to \infty }\log(x_{n})=\log(l),$
where we used the fact that the logarithm is continuous. Thus
    $\lim _{n\to \infty }{\frac {\log(x_{1}\cdots x_{n})}{n}}=\lim _{n\to \infty }\log {\Big(x_{1}\cdots x_{n})^{\frac {1}{n}}{\Big )}=\log(l),$
since the logarithm is both continuous and injective we can conclude that
    $\lim _{n\to \infty }{\sqrt[{n}]{x_{1}\cdots x_{n}}}=\lim _{n\to \infty }x_{n}$.
   Given any sequence $(x_{n})_{n\geq 1}$ of (strictly) positive real numbers, suppose that
          $\lim _{n\to \infty }x_{n}$
   exists (finite or infinite), then
          $\lim _{n\to \infty }{\sqrt[{n}]{x_{1}\cdots x_{n}}}=\lim _{n\to \infty }x_{n}.$
Suppose we are given a sequence $(y_{n})_{n\geq 1}$ and we are asked to compute
    $\lim _{n\to \infty }{\sqrt[{n}]{y_{n}}},$
defining $y_{0}=1$ and $x_{n}=y_{n}/y_{n-1}$ we obtain
    $\lim _{n\to \infty }{\sqrt[{n}]{x_{1}\dots x_{n}}}=\lim _{n\to \infty }{\sqrt[{n}]{\frac {y_{1}\dots y_{n}}{y_{0}\cdot y_{1}\dots y_{n-1}}}}=\lim _{n\to \infty }{\sqrt[{n}]{y_{n}}},$
if we apply the property above
    $\lim _{n\to \infty }{\sqrt[{n}]{y_{n}}}=\lim _{n\to \infty }x_{n}=\lim _{n\to \infty }{\frac {y_{n}}{y_{n-1}}}.$
This last form is usually the most useful to compute limits
   Given any sequence $(y_{n})_{n\geq 1}$ of (strictly) positive real numbers, suppose that
          $\lim _{n\to \infty }{\frac {y_{n+1}}{y_{n}}}$
   exists (finite or infinite), then
          $\lim _{n\to \infty }{\sqrt[{n}]{y_{n}}}=\lim _{n\to \infty }{\frac {y_{n+1}}{y_{n}}}.$

### Examples
#### Example 1

    $\lim _{n\to \infty }{\sqrt[{n}]{n}}=\lim _{n\to \infty }{\frac {n+1}{n}}=1.$

#### Example 2

    ${\begin{aligned}\lim _{n\to \infty }{\frac {\sqrt[{n}]{n!}}{n}}&=\lim _{n\to \infty }{\frac {(n+1)!(n^{n})}{n!(n+1)^{n+1}}}\\&=\lim _{n\to \infty }{\frac {n^{n}}{(n+1)^{n}}}=\lim _{n\to \infty }{\frac {1}{(1+{\frac {1}{n}})^{n}}}={\frac {1}{e}}\end{aligned}}$
where we used the representation of $e$ as the limit of a sequence.

## History

The ∞/∞ case is stated and proved on pages 173—175 of Stolz's 1885 book and also on page 54 of Cesàro's 1888 article.
It appears as Problem 70 in Pólya and Szegő (1925).

## The general form
### Statement

The general form of the Stolz–Cesàro theorem is the following: If $(a_{n})_{n\geq 1}$ and $(b_{n})_{n\geq 1}$ are two sequences such that $(b_{n})_{n\geq 1}$ is monotone and unbounded, then:
    $\liminf _{n\to \infty }{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}\leq \liminf _{n\to \infty }{\frac {a_{n}}{b_{n}}}\leq \limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}}\leq \limsup _{n\to \infty }{\frac {a_{n+1}-a_{n}}{b_{n+1}-b_{n}}}.$

### Proof

Instead of proving the previous statement, we shall prove a slightly different one; first we introduce a notation: let $(a_{n})_{n\geq 1}$ be any sequence, its partial sum will be denoted by $A_{n}:=\sum _{m\geq 1}^{n}a_{m}$. The equivalent statement we shall prove is:
   Let $(a_{n})_{n\geq 1},(b_{n})_{\geq 1}$ be any two sequences of real numbers such that
   * $b_{n}>0,\quad \forall n\in {\mathbb {Z} }_{>0}$,
   * $\lim _{n\to \infty }B_{n}=+\infty$,
   then
       $\liminf _{n\to \infty }{\frac {a_{n}}{b_{n}}}\leq \liminf _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq \limsup _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq \limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}}.$

#### Proof of the equivalent statement

First we notice that:
* $\liminf _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq \limsup _{n\to \infty }{\frac {A_{n}}{B_{n}}}$ holds by definition of limit superior and limit inferior;
* $\liminf _{n\to \infty }{\frac {a_{n}}{b_{n}}}\leq \liminf _{n\to \infty }{\frac {A_{n}}{B_{n}}}$ holds if and only if $\limsup _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq \limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}}$ because $\liminf _{n\to \infty }x_{n}=-\limsup _{n\to \infty }(-x_{n})$ for any sequence $(x_{n})_{n\geq 1}$.
Therefore we need only to show that $\limsup _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq \limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}}$. If $L:=\limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}}=+\infty$ there is nothing to prove, hence we can assume $L<+\infty$ (it can be either finite or $-\infty$). By definition of $\limsup$, for all $l>L$ there is a natural number $\nu >0$ such that
    ${\frac {a_{n}}{b_{n}}}<l,\quad \forall n>\nu .$
We can use this inequality so as to write
    $A_{n}=A_{\nu }+a_{\nu +1}+\dots +a_{n}<A_{\nu }+l(B_{n}-B_{\nu }),\quad \forall n>\nu ,$
Because $b_{n}>0$, we also have $B_{n}>0$ and we can divide by $B_{n}$ to get
    ${\frac {A_{n}}{B_{n}}}<{\frac {A_{\nu }-lB_{\nu }}{B_{n}}}+l,\quad \forall n>\nu .$
Since $B_{n}\to +\infty$ as $n\to +\infty$, the sequence
    ${\frac {A_{\nu }-lB_{\nu }}{B_{n}}}\to 0{\text{ as }}n\to +\infty {\text{ (keeping }}\nu {\text{ fixed)}},$
and we obtain
    $\limsup _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq l,\quad \forall l>L,$
By definition of least upper bound, this precisely means that
    $\limsup _{n\to \infty }{\frac {A_{n}}{B_{n}}}\leq L=\limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}},$
and we are done.

#### Proof of the original statement

Now, take $(a_{n}),(b_{n})$ as in the statement of the general form of the Stolz-Cesàro theorem and define
    $\alpha _{1}=a_{1},\alpha _{k}=a_{k}-a_{k-1},\,\forall k>1\quad \beta _{1}=b_{1},\beta _{k}=b_{k}-b_{k-1}\,\forall k>1$
since $(b_{n})$ is strictly monotone (we can assume strictly increasing for example), $\beta _{n}>0$ for all $n$ and since $b_{n}\to +\infty$ also $\mathrm {B} _{n}=b_{1}+(b_{2}-b_{1})+\dots +(b_{n}-b_{n-1})=b_{n}\to +\infty$, thus we can apply the theorem we have just proved to $(\alpha _{n}),(\beta _{n})$ (and their partial sums $(\mathrm {A} _{n}),(\mathrm {B} _{n})$)
    $\limsup _{n\to \infty }{\frac {a_{n}}{b_{n}}}=\limsup _{n\to \infty }{\frac {\mathrm {A} _{n}}{\mathrm {B} _{n}}}\leq \limsup _{n\to \infty }{\frac {\alpha _{n}}{\beta _{n}}}=\limsup _{n\to \infty }{\frac {a_{n}-a_{n-1}}{b_{n}-b_{n-1}}},$
which is exactly what we wanted to prove.