An idea which generalizes to other contexts aswell but uses a little machinery from algebra. In your particular case, probably just using binomial expansion is better.
We know that $\cos(2\pi/n)=(e^{2\pi i/n}+e^{-2\pi i /n})/2$ and both $e^{2\pi i/n}$ and $e^{-2\pi i/n}$ are complex numbers which are roots of $x^n-1$, so these are algebraic integers. It is also clear that $x^n-1=(x-1)(1+x+...+x^{n-1})$ which implies (using Eisenstein maybe) that $1+x+...+x^{n-1}$ is the irreducible polynomial. Using the first isomorphism theorem:
$$\mathbb{Z}[x]/(1+x+...+x^{n-1})\approx Im(eval(e^{2\pi i/n}))\subseteq\mathbb{Z}[e^{2\pi i/n}]$$
Actually the containment is an equality (and this follows from the fact we have a monic irreducible polynomial). This is the case because $\mathbb{Z}[e^{2\pi i/n}]$ has a natural basis given by $\{1,\alpha,...\alpha^{n-2}\}$. Indeed, these generate any element because we may divide by $1+\alpha+...+\alpha^{n-1}$ in order to lower the degree. Also, they are linearly independent, otherwise it would contradict the minimality of degree of $1+x+...+x^{n-1}$ the irreducible annihilator.
Now comes the nice trick. Let me call $\beta=\alpha^{n-1}$. We may consider the multiplication ring homomorphism given by multiplication $m_{\alpha+\beta}(x)=(\alpha+\beta)x$. This is of course linear transformation in our module and we may represent it as a matrix in the basis $\{1,\alpha,...,\alpha^{n-1}\}$. By Cayley-Hamilton, which holds over any module, we find that $p(\lambda)=\det(M-\lambda I)$ annihilates $m_{\alpha+\beta}$, that is $p(m_{\alpha+\beta})(x)=0$ for any $x\in \mathbb{Z}[\alpha]$. Taking $x=1$ yields that $p(\alpha+\beta)=0$.
This teaches us that there is a monic polynomial that annihilates $\alpha+\beta$, explicitly something like $x^m+a_{m-1}x^m+...a_1x+a_o$. Now it is clear that:
$$\tilde{p}(x)=2^mx^m+2^{m-1}a_{m-1}x^m+...2a_1 x+a_o$$
is such that $\tilde{p}(\cos(2\pi/n))=\tilde{p}((\alpha+\beta)/2)=p(\alpha+\beta)=0$.