Let $\lim_{n \to \infty} f(x_n) = f(x)$ for all sequences $\{ x_n \}$ such that $\lim_{n \to \infty} x_n = x$. I am trying to prove that $f$ is continuous.
I know that for all $\varepsilon > 0$ there exists $N \in \mathbb{N}$ such that $|f(x) - f(x_n)| < \varepsilon$ for all $n \ge N$. I also know that there exists $\delta > 0$ such that $|x - x_n| < \delta$ for all $n \in \mathbb{N}$, since a convergent sequence is bounded.
But I need to find a number $\delta > 0$ such that $|f(x) - f(x_0)| < \varepsilon$, if $|x - x_0| < \delta$. For any sequence $\{ x_n \}$ there will be an $x_0 \notin \{ x_n \}$ such that $|x - x_0| < \delta$, since the reals are not countable. I guess I need to show that any $x_0$ belongs to some sequence that converges to $x$ and that satisfies $|x - x_0| < \delta$. Is this the correct approach or am I missing something?
HINT: you can use the contrapositive statement to prove the result, that is, showing that $A\implies B$ is equivalent to show that $\lnot B\implies\lnot A$.
Let $S:=\{(x_n):x_n\in{\rm dom}(f)\text{ and }\lim x_n=x\}$. In this case it means that showing that
$$\forall(x_n)\in S: \lim f(x_n)=f(x)\implies f\text{ is continuous at }x$$
is equivalent to show that
$$f\text{ is not continuous at }x\implies\exists(x_n)\in S:\lim f(x_n)\neq f(x)$$