Let $f:(0,1] \rightarrow \mathbb{R}$ be differentiable on $(0,1]$, with $|f'(x)| \leq 1$ for all $x$ in $(0,1].$ For each $n$ in $\mathbb{N}$, let $a_n=f(1/n)$ Show that $(a_n)_{n \in \mathbb{N}}$ converges.
This is what I have so far:
Since $f$ has a bounded derivative on $(0,1]$, $f$ is uniformly continuous on $(0,1]$.
so the definition to be uniformly continuous is $\forall \epsilon >0, \exists \delta >0$ such that if $x,y \in (0,1]$ and $|x-y|<\delta$ then $|f(x)-f(y)|<\epsilon$.
Now I have to apply the mean value theorem to show $a_n$ is cauchy, thus convergers.
This is where i am stuck. I know the definition of a cauchy sequence is $\forall \epsilon >0,$ $\exists n_0 \in \mathbb{N}$ such that if $n,m \geq n_0$ then $|x_n-x_m|<\epsilon$. How do i put this all together. Thanks for the help!