Is there nice radical expression for $$\cos\left(\frac{\pi}{2^k+1}\right)?$$
Example: $\cos\left(\dfrac{\pi}{5}\right)=\dfrac{\sqrt{5}+1}{4}$.
Please provide some concrete examples.
Also please provide a general procedure.
I would like to handle $$\cos\left(\frac{a\pi}{2^k+1}\right)$$ as well for $a\in\{0,1,2,\dots,k-1\}$.
You can use the multiple angle formulas. For example you can compute sin5$\theta$ which will give you a polynomial p of the 5th degree in sin$\theta$ and cos$\theta$, or perhaps in cos$\theta$ alone if you are lucky. If you let $\theta = \pi/5$ then sin5$\theta$ = 0= p(cos$\theta$). If you can solve it, you've got an expression for sin($\pi/5$). From that you can deduce an expression for cos($\pi/5$) and it will be what you have above.
To create the multiple angle forumlas start with sinx = $\frac{e^{ix}-e^{-ix)}}{2i}$. For example sin5x =$\frac{e^{5ix}-e^{-5ix)}}{2i}$ . If d = $e^{ix}$ then this expression can be written as $ \frac {d^5-d^{-5}}{2i}$ = 1/2i$(cosx + isinx)^5$ - 1/2i$(cosx - isinx)^5$ Expand these with the binomial theorem and you will have your polynomial.
You can save some trouble by looking up the multiple angle formulas; and most likely someone has solved the polynomials up to some value of n.