Let $f:(0,1)\rightarrow (0,1)$. Prove or disprove :
if $\{f(a_n)\}_{n=1}^{\infty}$ is a Cauchy sequence whenever $\{a_n\}_{n=1}^{\infty}$ is then $f$ is continuous.
Suggested solution from the book is the following:
If $f$ is not continuous there is in $(0,1)$ an $x_0$ and a sequence $\{x_n\}_{n=1}^{\infty}$ such that $x_n\rightarrow x_0$ and $f(x_n)\not\rightarrow f(x_0)$. If $y_{2n}=x_n$, $y_{2n-1}=x_0$ for $n=1,2,3...$ then $\{y_n\}_{n=1}^{\infty}$ is a Cauchy sequence and $\{f(y_n)\}_{n=1}^{\infty}$ is not!
I am really confused why $(y_n)$ is Cauchy and $\{f(y_n)\}$ is not. We do not even know how $f$ looks like, so how can we justify that $\{f(y_n)\}$? Thank you for all explanation in advance!
Using this and the sequence $y_n$ you defined ,you can reach a contradiction.