I can't figure out what to do. I am supposed to prove that $\displaystyle \cos{\frac{2\pi}{n}$ is algebraic for non-zero integers $\displaystyle n$

This is what I have done so far. I don't know if I'm even on the right track.

The question marks are there because the upper limit will depend on whether $\displaystyle n$ is even or odd.