Is there a problem on basic complex analysis, i need to find an expression for the result of the finite sum
$ \sum \limits_{n=0}^{M-1} e^a$, where $a=(i \frac{2\pi}{M{}}nk)$, this result must depend on $k$, i have thought to use Euler identity to expand the Euler constant in the sum, but it is a good strategy?