Let $$S = \{m + n\sqrt 2 : m, n \in\mathbb Z\}$$ Prove that $S$ is dense in $\Bbb R.$
My definition/knowledge of density is limited to only these two statements:
A set $G$ is dense in $\Bbb R,$ iff for every $x,y\in \Bbb R$ , there exists a $g$ in $G,$ such that $x<g<y.$
A set $G$ is dense in $\Bbb R,$ iff every $x\in\Bbb R$ is a limit point of $G.$
With these two definitions, I made countless number of futile attempts and ultimately, I gave up. To be honest, I know that there are former posts relating to this particular topic such as :
Proving that $m+n\sqrt{2}$ is dense in $\mathbb R$.
But the point is, I noticed the user there asks in the title, to prove that $S$ is dense in $\Bbb R.$ However, in the post the user wants to prove:
Let $$S = \{m + n\sqrt 2 : m, n \in\mathbb Z\}$$ Prove that for every $\epsilon > 0$, the intersection of $S$ and $(0, \epsilon)$ is nonempty.
It seems that proving this fact, is equivalent to proving that $S$ is dense in $\Bbb R.$ This implies, that the definition of a dense set is:
A set $G$ is dense in $\Bbb R$ iff for every $\epsilon > 0$, the intersection of $G$ and $(0, \epsilon)$ is nonempty.
I don't understand if this is an alternative definition of dense sets, but all in all, I seem to have no idea about what is veing done in the post. For example, "Why is showing "for every $\epsilon > 0$, the intersection of $S$ and $(0, \epsilon)$ is nonempty" is sufficient to prove that $S$ is dense in $\Bbb R$ ?"
Any help with this problem will be appreciated. I want to know, what are the strategies to solve these sort of questions. This would be very much helpful. To be noted, that I am familiar with "Basic Topology of $\Bbb R$".