I want to prove "Every separable metric space has cardinality less than or equal to the cardinality of the continuum".
$\textbf{I want to approach by sequences.}$
My attempt: Let $S$ be a countable dense subset of a metric space $X$. By density property for each $x\in X$ there is a sequence $\{x_n\}$ in $S$ such that $x_n \rightarrow x$.
I want to define a injection from $X$ into $\mathbb{R}^S$. How can I?
If I can then we get easily that cardinality of $X$ is atmost that of continuum.
Please help.