The sum can be rewritten as an integral, by means of $$\frac{1}{\sin (\pi j/n)}=\frac{n}{\pi}\int_0^\infty\frac{s^{j-1}}{ s^n+1}\,ds$$ $$\Rightarrow \sum_{j=1}^{n-1}\frac{1}{\sin (\pi j/n)}=-\frac{n}{\pi}\int_0^\infty \frac{(-s)^n+s}{s (s+1)(s^n+1)}\,ds.$$ The integral does not seem to have a closed-form answer for arbitrary (even) $n$.
Carlo Beenakker
- 188.2k
- 18
- 448
- 651