Let $\mathbb{R}$ have the Euclidean topology (i.e., with Euclidean distance), and let $(X, \tau)$ be a discrete topological space.
Prove that $(X, \tau)$ is homeomorphic to a subspace of $\mathbb{R}$ iff $X$ is countable.
Let $X$ be countable. If $|X|$$=n$, then the subspace $A=\{1,2,3,...,n\}$ with the induced Euclidean topology is homeomorphic to $(X, \tau)$. If X is countably infinite, then the subspace $\mathbb{N} $ is homeomophic to $(X, \tau)$.
Now how we can prove the other direction, i.e., if $(X, \tau)$ is homeomorphic to a subspace of $\mathbb{R}$, then $X$ is countable?