I met the following equations when I was trying to solve a complex line integral (W.Rudin, RCA, p.228 ex.13). My question is how to prove them:
We have to show that for $n>2$ even
$$ 2^{n/2}\prod^{\left(n - 2\right)/2}_{k = 1} \left[1 - \cos\left(2k\pi \over n\right)\right] = n, $$
and for $n>1$ odd,
$$ 2^{\left(n - 1\right)/2}\prod_{k = 1}^{\left(n - 1\right)/2} \left[1 - \cos\left(2k\pi \over n\right)\right] =n\text{ ?}$$
-This can be rewritten as a curious identity after the below hint of Greg Martin-
Thx.