What is the value of $$\textrm{cosec}^2\left(\frac\pi7\right) +\textrm{cosec}^2\left(\frac{2\pi}7\right)+\textrm{cosec}^2\left(\frac{4\pi}7\right) \qquad\qquad ? $$
I tried to write $\textrm{cosec}^2\left(\frac{4\pi}7\right)$ as $\textrm{cosec}^2\left(\frac{3\pi}7\right)$. Then converted in $\sin$... But in vain.. Is there any other approach?
When in doubt, convert trig functions to complex exponentials.
If $w = e^{i\pi/7}$, $\csc^2(\pi/7) = \dfrac{-4}{(w-1/w)^2}$ and similarly for the others with $w$ replaced by $w^2$ and $w^4$. Simplifying, $$ \csc^2(\pi/7) + \csc^2(2\pi/7) + \csc^2(4\pi/7) - 8 \\= -4\,{\frac {2\,{w}^{16}+{w}^{14}+3\,{w}^{12}+3\,{w}^{10}+3\,{w}^{8}+3 \,{w}^{6}+3\,{w}^{4}+{w}^{2}+2}{ \left( {w}^{8}-1 \right) ^{2}}} $$ and the numerator is divisible by $w^6+w^5+w^4+w^3+w^2+w+1 = 0$
EDIT: This cries out for generalization. We also have $$\csc^2(\pi/3)+ \csc^2(2\pi/3) = 8/3$$ $$\csc^2(\pi/15) + \csc^2(2\pi/15) + \csc^4(4\pi/15) + \csc^2(8\pi/15) = 32$$ but unfortunately $$\csc^2(\pi/31) + \csc^2(2\pi/31) + \csc^2(4\pi/31) + \csc^2(8\pi/31) + \csc^2(16\pi/31)$$ is irrational (it seems to be a root of $z^3-160 z^2+3904 z-23552 = 0$)
EDIT: Instead we have $$ \sum_{j=1}^{15} \csc^2(j \pi/31) = 160$$
Actually it seems $$ \sum_{j=1}^n \csc^2(j \pi/(2n+1)) = \dfrac{2n(n+1)}{3}$$ for all positive integers $n$. In the case $n=3$, since $\csc(4\pi/7) = \csc(3\pi/7)$, $$\csc^2(\pi/7) + \csc^2(2\pi/7) + \csc^2(4\pi/7) = \csc^2(\pi/7) + \csc^2(2\pi/7)\csc^2(3\pi/7) = 8$$ In the case $n=7$, there are actually four "basic" equations involving $\csc^2(j \pi/15)$: $$\eqalign{\csc^2(5\pi/15) &= 4/3\cr \csc^2(3\pi/15) + \csc^2(6\pi/15) &= 4\cr 10 \csc^2(\pi/15) + \csc^2(2\pi/15)+\csc^2(7\pi/15) &= 36\cr \csc^2(\pi/15) - 10 \csc^2(3 \pi/15) + \csc^2(4\pi/15) &= -4\cr}$$ and $\csc^2(\pi/15) + \csc^2(2\pi/15) + \csc^4(4\pi/15) + \csc^2(8\pi/15) = 32$ is the sum of the last two (using the fact that $\csc(8 \pi/15) = \csc(7 \pi/15)$).