Problem Statement
Let $j=0,...,N-1$. I want to evaluate
$$ S_N=\sum_{j=0}^{N-1}e^{i2\pi\frac{j}{N}} $$
I think that $S_N=0$ for all $N\ge 2$.
Attempt 1: Series method
I tried using the formula for a finite geometric series, namely $S_N=a\left(\frac{1-r^{N}}{1-r}\right)$ where $a=1$ and $r=e^{i2\pi\frac{1}{N}}$.
$$ S_N=\frac{1-e^{i2\pi\frac{N}{N}}}{1-e^{i2\pi\frac{1}{N}}} = 0 $$
To be honest this seems a little too easy, so I'm looking for a sanity check on my application of this formula.
Attempt 2: Trigonometry method
I also tried expanding the sum. I know that all the sines from $e^{i\theta}=\cos\theta+i\sin\theta$ will cancel nicely, by symmetry of the following figure (figure drawn for $N=7$)
Like the figure, assume that $N$ is odd. Cancelling the sines, we have
\begin{align} S_N&=\sum_{j=0}^{N-1}e^{i2\pi\frac{j}{N}}\\ &=\sum_{j=0}^{N-1}\cos\left(2\pi\frac{j}{N}\right)\\ &=1+2\sum_{j=1}^{\frac{N-1}{2}}\cos\left(2\pi\frac{j}{N}\right) \end{align}
where the last equality follows from $\cos(\theta)=\cos(2\pi-\theta)$. But this is where I get stuck.
Questions
- Is my series method attempt correct? It seems too easy.
- Is there a way to complete my trigonometry method?
Related question:
Why is such sum of cosines always zero?
- This is where I got the idea to try the geometric series formula.