I am trying to find a reference for the following proposition:
Let $m$ and $n$ be coprime. Then, $$ \sum_{k=0}^{r-1} \exp\left( i \frac{2\pi}{n} k m \right) = 0 $$ if and only if $r$ is an integer multiple of $n$.
Can anyone point a basic textbook or online material in which this basic fact is proven?