For each positive integer $n$, let $x_n$ be a real number in $\left(0,\frac{1}{n}\right)$. Is the following true?
If $f$ is a continuous real-valued function defined on $(0,1)$, then $\{f(x_n)\}_{n=1}^\infty$ is a Cauchy sequence.
I can't see why this is wrong. My quick thought was that, if $x_n$ is Cauchy and $f$ is continuous, then $f(x_n)$ is Cauchy as well. I am very sure this is true for compact domain. Is it something going wrong with $x=0$? Could someone give a counterexample?
Hint: Try $f(x)=\frac{1}{x}$ and see what happens.
If $f$ were continuous on $[0,1)$ then you'd be fine, but because $0$ needn't be in the domain of $f$, it can behave 'arbitrarily badly' as $x \to 0$.