$$\sum_{k=0}^{N-1} e^{-j\frac{2\pi}{N}(i + n)k} = \begin{cases} N & \text{for } (i + n) = 0,N,2N,3N, \ldots \\ 0 & \text{otherwise} \end{cases} = N\delta[(i + n)\text{ mod }N]$$
Can someone provide an explanation why the sum is equal to zero if (i+n) mod N is not equal to zero?