I hope you're all doing well.
I'm trying to prove the following identity: $$\frac{1}{N} \sum_{j=1}^{N} e^ {\frac{2i\pi(n-n')j}{N}} = \delta_{nn'}$$
but I'm having some troubles.
This is what I tried:
We know that for a finite geometric series, the entire sum is equal to $$\sum_{j=1}^{N} ar^{bj} = \frac{ar^b(r^{bN} - 1)}{r^b - 1}$$
In your case we have: $$r = e$$ $$a = \frac{1}{N}$$ $$b = \frac{2i\pi(n-n')}{N}$$
Using this I found
$$\frac{1}{N} \sum_{j=1}^{N} e^ {\frac{2i\pi(n-n')j}{N}} = \frac{1}{N} \frac{e^{\frac{2i\pi(n-n')}{N}}(e^{{2i\pi(n-n')}} - 1)}{e^{\frac{2i\pi(n-n')}{N}} - 1}$$
but after this I'm not able to see how these exponentials are gonna to result in the Kronecker's delta.