I am going through Carothers Real Analysis to study for quals, and came across this question.
Show that the set $A = \{x \in \ell_2 : \lvert x_n \rvert \leq \frac{1}{n}, n \in \mathbb{N}\}$ is compact in $\ell_2$. Hint: first show that $A$ is closed. Next, use the fact that $\sum_{n=1}^{\infty} \frac{1}{n^2} < \infty$ to show that $A$ is "within $\epsilon$" of the set $A \cap \{x \in \ell_2 : \lvert x_n \rvert = 0, n \geq N\}$ for some $N \in \mathbb{N}$.
Now I can prove what the hint says to prove. What I do not understand is how on earth this shows that $A$ is compact. This question comes at the beginning of the compactness chapter and all I have at my disposal is that a set is compact iff it is totally bounded and complete iff every sequence has a convergent subsequence, and that if $A \subset M$ and $A$ is compact, then $A$ is closed in $M$, and that if $M$ is compact and $A$ is closed, then $A$ is compact.