Example of a countable compact set in the real numbers [closed]
What about if we define $H = \{ \frac{1}{n} : n\in \mathbb{N}\} \cup \{0\}$, a sort of standard countable compact set with 0 at its sole limit point, then define your countable compact set to be:
$$S = \{ x + y \mid x, y \in H\}.$$
To unpack the thought behind this definition:
- This set $S$ is countable.
- This set $S$ is bounded, because its smallest member is 0 and its largest member is 1+1 = 2.
- Each $x \in H$ is a limit point of $S$. If we fix $x$ and vary $y\in H$ in the definition of $S$, we can see that $x$ is a limit point of $S$.
- This set $S$ is closed (and therefore compact, because it is a bounded subset of the real line.) ($S$ is closed because it is the sum of two compact subsets of $\mathbb{R}$ and is therefore closed in $\mathbb{R}$.)
HINT: Start with $\{0\}\cup\left\{\frac1n:n\in\Bbb Z^+\right\}$, and figure out how to add for each $n\in\Bbb Z^+$ a sequence between $\frac1{n+1}$ and $\frac1n$ converging downwards to $\frac1{n+1}$.