Suppose we have a sequence of $a_i$ with some restrictions on it. Which restrictions must be to make set
$$A= \left\{(x_i) \in \ell_2 \mid \sum\limits_{i\geqslant1} |a_i x_i|^2 \leqslant 1 \right\} $$ precompact in $\ell_2$? I have spent a lot of time on solving that task, but I still have got no idea which restrictions I have to choose
In conclusion, necessary conditions are the following: $|a_i|\to +\infty$ and $\inf_{i\geqslant 1}|a_i|\gt 0$.
Assume that $(|a_i|)_{i\geqslant 1}$ diverges to $+\infty$ and that $c:=\inf_{i\geqslant 1}|a_i|\gt 0$. Show that $A$ is bounded and that $$\tag{*}\lim_{n\to \infty}\sup_{x\in A}\sum_{i\geqslant n}|x_i|^2=0.$$ To see this, use the bound $$\sum_{i\geqslant 1}x_i^2\leqslant \sum_{i\geqslant 1}a_i^2x_i^2/c^2\leqslant 1/c^2.$$ For (*), fix $M>0$ and take $n_0$ such that $|a_i|\gt M$ whenever $i\geqslant n_0$. For each $x\in A$, and $n\geqslant n_0$, $$\sum_{i\geqslant n}|x_i|^2 \leqslant \frac 1{M^2}\sum_{i\geqslant n}|Mx_i|^2\leqslant \frac 1{M^2}\sum_{i\geqslant n}|a_ix_i|^2\leqslant \frac 1{M^2}.$$