Let $(a_n)_n$ be an increasing real sequence with $a_n=O(\sqrt n)$.
Is it true that there exists an increasing function $\phi:\mathbb N\to\mathbb N$ such that $$\lim \left|\sum\limits_{k=1}^{\phi(n)}\cos(a_k)\right|+\left|\sum\limits_{k=1}^{\phi(n)}\sin(a_k)\right|=\infty?$$
https://artofproblemsolving.com/community/c7h3080371_majoration_of_cosinus_and_sinus_addition