let $S=\{ \frac{1}{m}+\frac{1}{n}:m,n\in \mathbb{N}\} \cup \{0\}$.
then $S$ is compact set in $\mathbb{R}$. True or False.
since derived set of $S=\{\frac{1}{n}:n\in \mathbb{N}\} \cup\{0\}$ . and this is not a subset of $S$. Hence $S$ is not closed set and not compact set in $\mathbb{R}$
But in my book it is given to compact .Is my argument valid ?
What makes you think so? Note that every (nonzero) element of the derived set can be written as $\frac{1}{n}=\frac{1}{2n}+\frac{1}{2n}$ and hence it belongs to $S$.
So $S$ actually is closed. And so it is compact because it is bounded.