Prove that $$\sum_{r=0}^{n-1} (-1)^r \cos^n{\left(\dfrac{r\pi}{n}\right)}=\dfrac{n}{2^{n-1}}$$
I proved the result using induction, however am more interested in finding the sum using complex numbers. Any hint?
The statement above seems to be erroneous. It can be shown that
$$S=\sum_{r=0}^{n-1}(-1)^r\cos^n(\frac{r\pi}{n})=\frac{n}{2^{n-1}}$$
On the LHS, rewrite $\cos x=\frac{e^{ix}+e^{-ix}}{2}$ and expand using the binomial theorem to get
$$S=\frac{1}{2^n}\sum_{k=0}^n{n\choose k}\sum_{r=0}^{n-1}(-1)^re^{\frac{i\pi r}{n}(2k-n)}$$
However,
$$\sum_{r=0}^{n-1}(-1)^re^{\frac{i\pi r}{n}(2k-n)}=\sum_{r=0}^{n-1}(e^{i2k\pi/n})^r=\frac{(e^{i2k\pi/n})^n-1}{e^{i2k\pi/n}-1}=n\sum_{m=-\infty}^{\infty}\delta_{k,mn}$$
and thus
$$S=\frac{n}{2^n}\Big({n\choose 0}+{n\choose n}\Big)=\frac{n}{2^{n-1}}$$