I have the following question, whose inverse question can be done by the well-known Cauchy–Schwarz inequality. But I do not know how to solve this question:
Suppose that $\{a_n\}_{n=1}^\infty$ is a sequence of real numbers such that \begin{equation} \sum_{n=1}^\infty a_n b_n \quad \text{is a convergent series whenever}\quad\sum_{n=1}^\infty b_n^2<\infty. \end{equation} Show that $\sum_{n=1}^\infty a_n^2<\infty$.