WolphramAlpha gives the following identities for the cosines of $\frac{\pi}{2^n}$:
$$ \cos\left(\frac{\pi}{8}\right)=\frac{1}{2}\sqrt{2+\sqrt{2}} $$ $$ \cos\left(\frac{\pi}{16}\right)=\frac{1}{2}\sqrt{2+\sqrt{2+\sqrt{2}}} $$ $$ \cos\left(\frac{\pi}{32}\right)=\frac{1}{2}\sqrt{2+\sqrt{2+\sqrt{2+\sqrt{2}}}} $$ and in general the following identity seems to be true $\forall n\in\mathbb{N}$:
$$ \cos\left(\frac{\pi}{2^n}\right)=\frac{1}{2}\sqrt{2+\sqrt{2+\ldots\sqrt{2}}} $$ With $n-1$ nested roots. Obviously for $n=2$ we have $\cos{\frac{\pi}{4}}$.
I have no idea where to start to prove this. Do you have any suggestions?