Verify that $S=\{0\}\cup\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ is compact subset of $\mathbb{R}$ while $\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ is not.
If I take the sequences $\{\frac{1}{i}:i\in\mathbb{N}\}$ there is no convergent subsequnce once $\{0\}\notin \bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ . So $\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$ is not compact.
However when I examine $S=\{0\}\cup\bigcup_\limits{i=1}^{\infty}\{\frac{1}{n}\}$. I do not know how can I address all the coverings in order to prove it is compact.
Questions:
Is my proof right insofar? How should I prove $S$ is not compact? What is the strategy for that sort of cases?
Thanks in advance!
You proved correctly that the set $\left\{\frac1n\,\middle|\,n\in\mathbb{N}\right\}$ is not compact. If you add $\{0\}$, then it becomes compat because for any open cover $(A_\lambda)_{\lambda\in\Lambda}$ of that set, $0\in A_{\lambda_0}$, for some $\lambda_0\in\Lambda$. And, since $\lim_{n\to\infty}\frac1n=0$, there is some $p\in\mathbb N$ such that $n\geqslant p\implies\frac1n\in A_{\lambda_0}$. And if $n<p$, take some $\lambda_n\in\Lambda$ such that $\frac1n\in A_{\lambda_n}$. So$$\{0\}\cup\left\{\frac1n\,\middle|\,n\in\mathbb{N}\right\}\subset A_{\lambda_0}\cup A_{\lambda_1}\cup\cdots\cup A_{\lambda_{p-1}}.$$