<s>[INST] Find the value of $\tan^6(\frac{\pi}{7}) + \tan^6(\frac{2\pi}{7}) + \tan^6(\frac{3\pi}{7})$ I wish to find the value of  $\tan^6(\frac{\pi}{7}) + \tan^6(\frac{2\pi}{7}) + \tan^6(\frac{3\pi}{7})$ as part of a larger problem. I can see that the solution will involve De Moivre's theorem somehow, but I cannot see how to apply it. I have looked at solutions of $z^7 - 1 = 0$ but to no avail. Can anyone suggest a method for solving this problem? 
 [/INST] Misha beat me on time, so I will give a slightly different point of view. It is well-known that $\cos\frac{2\pi}{7}$, $\cos\frac{4\pi}{7}$ and $\cos\frac{6\pi}{7}$ are algebraic conjugates, roots of the Chebyshev polynomial 
$$ p(x)=8x^3+4x^2-4x-1.$$
On the other hand
$$ \tan^6\frac{\pi}{7}=\left(\frac{1}{\cos^2\frac{\pi}{7}}-1\right)^3 = \left(\frac{1-\cos\frac{2\pi}{7}}{1+\cos\frac{2\pi}{7}}\right)^2$$
hence $\tan^2\frac{\pi}{7}$, $\tan^2\frac{2\pi}{7}$, $\tan^2\frac{3\pi}{7}$ are algebraic conjugates as well, roots of the polynomial
$$ q(x)=x^3-21x^2+35x-7 $$
with companion matrix
$$ M = \begin{pmatrix} 0 & 0 & 7 \\ 
1 & 0 & -35   \\
0 & 1 & 21    \end{pmatrix}$$
whose third power is
$$ M^3 = \left(
\begin{array}{ccc}
 7 & 147 & 2842 \\
 -35 & -728 & -14063 \\
 21 & 406 & 7798 \\
\end{array}
\right)$$
The wanted sum is just $\text{Tr}(M^3)$, hence it equals $7-728+7798=\color{red}{7077}$.
</s>