I imagine that, due to the fact that the average value of $\sin x$ in the interval $[0,\pi]$ is $\frac{1}{\pi-0}\displaystyle\int_{0}^{\pi} \sin x dx = \frac{2}{\pi},$ that the sequence
$$ a_n:= \sum_{k=1}^{n} \vert \sin k \vert - \left(\frac{2}{\pi}\right) n$$
is bounded, and that this can be proved by equidistributional theorems, and/or by utilising Riemann integration. I think the true statement, $\left\{n\bmod \pi: n\in\mathbb{N} \right\}$ is equidistributed modulo $\pi,$ is not strong enough to help in the proof (although I might be wrong about this).
Also, note that $\frac{a_n}{n}\to0,$ which may (or may not) be the case, but even if true, it $ \not\implies a_n$ is bounded.
So, is the sequence $(a_n)$ bounded, and if so, how can it be proved formally?
Maybe Birkhoff means? Although I am not that familiar with this.
I have calculated the first $11$ terms of $a_n$ and the absolute value of all terms are less than $\frac{1}{2},$ with no illuminating patterns yet. Edit: Calvin Khor has kindly posted an image of the graph of $a_n$ against $n$ in the comments. Indeed, it appears to be bounded.
The generalised version of this question:
If $f:[0,1]\to\mathbb{R}$ is continuous and has average value $M:=\frac{1}{1-0}\displaystyle\int_{0}^{1} f(x) dx,\ $ and $\alpha$ is irrational, then is the sequence
$$ a_n:= \sum_{k=1}^{n} f(\alpha k\pmod 1) - M n$$
bounded?
Obviously if you can prove the generalised version, then that would affirm the above instance where $f=\sin.$
bmodinstead ofpmodfor a better display. – Martin R Nov 06 '24 at 23:08