Consider the sum : $$\displaystyle \sum_{n=1}^m \sin n$$ For which value of $m,$ we will obtain the maximum sum?
Here's my approach : $\displaystyle \sum_{n=1}^m \sin n=\dfrac{\sin 1}{4 \sin^2 \dfrac{1}{2}} - \dfrac{2\cos \left( m+\dfrac{1}{2} \right)}{4 \sin \left( \dfrac{1}{2}\right)}$
If we can minimize $2 \cos \left(m+\dfrac{1}{2} \right)$ then this will result in maximizing the sum.
But the problem is I can't quite figure out what the minimum value of $\cos \left(m+\dfrac{1}{2}\right)$ is.
Hint: $\cos(m+1/2)$ is close to $1$ if $m+1/2$ is close to a multiple of $2\pi$.
Can you see why the values of $m+1/2$ get close to $2\pi$ using rational approximations?