In the process to compute $\int_0^{+\infty} \frac{t^{m-1}}{1+t^{2n}}{\rm d}t$ (see this thread), I got stuck on this sum : $$S_{m,n} = \sum_{k=0}^{n-1} \sin(m\theta_k)(\pi-\theta_k)$$ where $m$ and $n$ are integers, $1\le m<2n$, and $\theta_k=\dfrac{(2k+1)\pi}{2n}$.
Knowing the result, I tried to multiply this sum by $\sin\frac{m\pi}{2n}$ to get a telescopic form, but I got stuck on something horrible, like this : $$\frac{1}{2n}\left[\pi-\theta_0 -\frac\pi n \sum_{k=1}^{n-1} \cos\frac{mk\pi}{n} + \cos(m\pi)(\pi-\theta_{n-1})\right]$$ and I don't know what to do, because the sum in the middle does only "simplifies" in $$\frac12\frac{(-1)^{m+1}\sin\frac{\pi}{2m}-1}{\sin\frac{m\pi}{2n}}$$ if I'm not mistaken (I should be !).
Do you see anything simpler than what I did ?
Thanks for reading.