I was thinking about Proving that the function $f(N)=\sum_{n=1}^N \cos(n^2)$ is unbounded and it is linked to the distribution of $n^2 \,\%\, 2 \pi$ where $\%$ is thought of as the "real modulo" i.e. $a \% b = a - n b$ where $n$ is chosen such that $a \% b$ is positive and smaller than $b$.
Now the question is for which $\alpha$ the distribution $\alpha n^2 \% 2 \pi$ is balanced in the sense that the difference between points in the interval $[0;\pi)$ and the points in the interval $[\pi; 2 \pi)$ stays finite.
This should be equivalent to the question in the title
For which $\alpha,\beta$ is $\sum_n \text{sign} \sin(\alpha n^2 + \beta)$ bounded?