Let $C_n$ be the circle defined as $x^2 + y^2 = \frac{1}{n^2}$. Let $$X = \{(0,0)\}\cup\bigcup_{n\in\mathbb{N}} C_n $$
Show that $X$ is compact.
$X$ is obviously bounded, but how should I show that it is closed? It seems clear that it is, but I'm not sure how I can prove it? Maybe I should consider a continuous function from some compact set that maps to $X$? One possible map would be from $(r,\theta)$ where $r\in\mathbb{N}$ and $\theta\in [0,2\pi]$ but it's not clear that the map is continuous...
Take any sequence $x_k$ in $X$. Then either infinitely many of the $x_k's$ are in one of the $C_n's$ or not. If so, then there is a subsequence of $x_k$ that converges to a point in $C_n$. Otherwise, there is a subsequence $x_{n_k}$ such that $x_{n_k}\in C_{\phi(k)}$ for some monotone increasing function $\phi$. In this case, $x_{n_k}\rightarrow 0\in X$.