A problem posed in the 1988 Irish Mathematical Olympiad asks for a proof of the following
$$\sum\limits_{k=1}^{n} \cos^{4}\Big(\frac{k\pi}{2n+1}\big) = \frac{6n-5}{16}$$
Can anyone give me a heads-up on how to proceed to prove this very interesting result ?
Let $z=e^{i\pi/(2n+1)}$, and we have $$\left(\frac{z+z^{-1}}2\right)^4=\frac{z^4+4z^2+6+4z^{-2}+z^{-4}}{16}.$$
Now, summing for $z^k$ with $k$ in $[0,n]$ and using the geometric summation formula,
$$16S:=\frac{z^{4n+1}-1}{z-1}+4\frac{z^{2n+1}-1}{z-1}+6n+4\frac{z^{-2n-1}-1}{z^{-1}-1}+\frac{z^{-4n-1}-1}{z^{-1}-1}.$$
As $z^{2n+1}=-1$, this simplifies to
$$16S:=\frac{z^{-1}-1}{z-1}+4\frac{-1-1}{z-1}+6n-4z\frac{-1-1}{z-1}-\frac{z^{-1}-1}{z-1}=6n-4,$$ from which we deduct $1$ because of the term for $k=0$.
Finally,
$$S=\frac{6n-5}{16}.$$