Compact or open $\{0\}\cup\{\frac1n + \frac1m | m,n \in N\})$ in R ?
The question is straight forward
There exists no interval about $2\in S$ that has only elements of S. Not open What about compact?
EDIT: Sorry my reasoning for not compact was incorrect
Hint: Let $$S=\{ 0\} \cup \{ \frac{1}{n} \ : \ n\in \mathbb{N}\}$$ and $$ T = \{0\} \cup \{ \frac{1}{m} + \frac{1}{n} \ : \ n, m \in \mathbb{N}\}.$$ Furthermore, let $$f: \mathbb{R} \times \mathbb{R}\rightarrow \mathbb{R}, \ (x, y) \mapsto x+y $$ Then we can proceed the following way:
1.) Show that $S$ is compact.
2.) Conclude that $S\times S$ is compact.
3.) Show that $f$ is continuous.
4.) Show that $f(S\times S)=T$.
5.) Deduce from 2.), 3.), and 4.) that $T$ is compact.