I have a question regarding this proof:
If $a$ and $m$ are coprime, then $a^{t} ≡ 1 $ (mod m) for some t, $1 ≤ t < m$. Since $a$ and $m$ are coprime, $m$ does not divide as for any $s$, and so the $m$ numbers $1,a,a^{2}, . . . ,a^{m-1}$ all belong to the $m−1$ congruence classes other than the congruence class of $[0]$.
So two of the numbers must be in the same congruence class: that is, there exist numbers $s$ and $t$ with $s ≥ 0$ and $0 <t ≤ m−1$ so that $a^{s} ≡ a^{t+s}$ (mod m). Now since $a$ and $m$ are coprime, we can cancel the common factor as from both sides of the congruence to get $1 ≡ a^{t}$ (mod m).
I can not really justify this line: "$a^{s} ≡ a^{t+s}$ (mod m)"
My guess is that for $a^{t+s}$ I can obtain all possible residues, so $a^{t+s}$ gives residues in one "periode" and since $a^{t}$ does not reside in this periode but in another, $a^{s} ≡ a^{t+s}$ is gonna be true at some point. But for that I have to proof that if I take powers of $a:1,a,a^{2}, . . . ,a^{m-1}$, there is a repetition after a maximum of m-1 steps. And I am not sure how to show that, if that is even the reason behind the congruence "$a^{s} ≡ a^{t+s}$ (mod m)".
Thanks for your help