Let $\{e_k\}_{k=1}^\infty$ be an orthonormal set in a Hilbert space $H$. If $\{c_k\}_{k=1}^\infty$ is a sequence of positive real numbers such that $\sum c_k^2<\infty$, then the set: $$A=\left\{\sum_{k=1}^{\infty} a_ke_k :|a_k|\leq c_k\right\}$$ is compact in $H$.
My effort: We need to prove that every sequence $\{f_n\}$ has a subsequence $\{{f_n}_k\}$ so that $\{{f_n}_k\}$ converges to a limit in $A$.I'm trying to build such a sequence:
First, for each $n$ look at $|\langle f_n,e_1\rangle|=|a_{n1}|\leq c_1$ then the sequence $\{a_{n1}\}$ is bounded thus there must be a subsequence that converges and we define the limit as $l_1$. So we continue for all the vectors in the given set and define the limit of these subsets as $f=\sum_{k=1}^{\infty} l_ke_k \in H$.
But something must be wrong with the proof since I havent used $\sum c_k^2<\infty$.
Thanks.