Could you give me, please, some counterexamples to the following statement:
$$ \lim_{n \to \infty} |X_n|= |a| \Rightarrow \lim_{n \to \infty} X_n = a $$
I know, that $$ \lim_{n \to \infty} X_n = a \Rightarrow \lim_{n \to \infty}|X_n|= |a|$$ because $|.|$ is a continuous function. However, despite I know, that the converse should be false, I can not construct any explicit counterexamples. Please, help me.
Let $(x_n) = (-1)^n$. Then $\lim_{n\rightarrow\infty} |x_n| = 1$, but $\lim_{n\rightarrow\infty} x_n $ does not exist.