Ramanujan found the following trigonometric identity \begin{equation} \sqrt[3]{\cos\bigl(\tfrac{2\pi}7\bigr)}+ \sqrt[3]{\cos\bigl(\tfrac{4\pi}7\bigr)}+ \sqrt[3]{\cos\bigl(\tfrac{8\pi}7\bigr)}= \sqrt[3]{\tfrac{5-3\sqrt[3]7}2} \end{equation} (see e.g. Ramanujan — For Lowbrows, (3.7) and around, for details and an analogue for 9 instead of 7).
Are there analogous identities for all primes $p$ of the form $3k+1$ instead of 7?
Let me try to explain what I mean. As I've learned from S. Markelov, for $p=13$ \begin{multline} \sqrt[3]{\cos\bigl(\tfrac{2\pi}{13}\bigr)+\cos\bigl(\tfrac{10\pi}{13}\bigr)}+ \sqrt[3]{\cos\bigl(\tfrac{4\pi}{13}\bigr)+\cos\bigl(\tfrac{6\pi}{13}\bigr)}+ \sqrt[3]{\cos\bigl(\tfrac{8\pi}{13}\bigr)+\cos\bigl(\tfrac{12\pi}{13}\bigr)}=\\ \sqrt[3]{\tfrac{3\sqrt[3]{13}-7}2} \end{multline} and there are close analogues for all $p$ of the form $n^2+n+1$. For example, for $p=43=6^2+6+1$ three groups of numerators are {2, 4, 8, 16, 22, 32, 42}, {6, 10, 12, 20, 24, 38, 40}, {14, 18, 26, 28, 30, 34, 36} and the sum is $\sqrt[3]{\frac{3\sqrt[3]{86}-13}2}$.
So it looks like there is some pattern reminding of... quadratic Gauss sums, perhaps.
For any $p=3k+1$ one can partition $\mathbb F_p^\times$ into three groups, corresponding to $\mathbb F_p^\times/\mathbb F_p^{\times3}\cong\mathbb Z/3$ — and this is precisely the partitions from the last paragraph. This explains what LHS should look like. And indeed, at least for $p=19$ there is an identity \begin{multline} \sqrt[3]{\cos\bigl(\tfrac{\pi}{19}\bigr)+\cos\bigl(\tfrac{7\pi}{19}\bigr)+\cos\bigl(\tfrac{11\pi}{19}\bigr)}+ \sqrt[3]{\cos\bigl(\tfrac{3\pi}{19}\bigr)+\cos\bigl(\tfrac{5\pi}{19}\bigr)+\cos\bigl(\tfrac{17\pi}{19}\bigr)}+\\ \sqrt[3]{\cos\bigl(\tfrac{9\pi}{19}\bigr)+\cos\bigl(\tfrac{13\pi}{19}\bigr)+\cos\bigl(\tfrac{15\pi}{19}\bigr)}=\\ \sqrt[3]{\tfrac12-3\sqrt[3]7+\tfrac32\sqrt[3]{3\sqrt[3]{49}+18\sqrt[3]7-25}+\tfrac32\sqrt[3]{3\sqrt[3]{49}+18\sqrt[3]7-44}} \end{multline} which is closely related to the fact that $2 \left( \cos \frac{4\pi}{19} + \cos \frac{6\pi}{19}+\cos \frac{10\pi}{19} \right)$ is a root of the equation $\sqrt{ 4+ \sqrt{ 4 + \sqrt{ 4-x}}}=x$.
So,
more precisely: is it true, that for any $p=3k+1$ the sum of 3 cubic roots of sum of cosines (described above) can be expressed in real radicals?
what can be said about RHS in this case (say, about the number of nested radicals)?
just what's going on here?
would also be appreciated.) $\endgroup$