With these two sums: $$A=\cos(\pi/7)+\cos(3\pi/7)+\cos(5\pi/7)$$ $$B=\sin(\pi/7)+\sin(3\pi/7)+\sin(5\pi/7)$$
How to find the explicit value of $A$ using:
- $u=A+iB$
- the sum of $n$ terms in a geometric sequence: $u_0*\frac{1-q^{n+1}}{1-q}$
I know the answer is $\frac 12$ from this post, but there is no mention of this method.