Let $m$ and $n$ be coprime. By doing a few concrete examples, I see that the numbers $0,m,2m,3m,\dots,(n-1)m$ get mapped to the numbers $0,1,2,\dots,(n-1)$ in $\operatorname{mod}(n)$. How do I show that when going from $0$ to $(n-1)m \operatorname{mod}(n)$ we trace out the numbers $0\dots(n-1)$ (albeit likely by jumping about) without repeating?
Example: $m=4,n=9$, we get $0,4,8,3,7,2,6,1,5,$
Example $m=10,n=7$, we get $0,3,6,2,5,1,4$.