I had a problem with a proof on group and a poster aided me with the proof. But I had problems understanding the final implication relates to GCD and Euclid's lemma:
$$(a^k)^r=e \Rightarrow a^{kr} = e \Rightarrow n | kr \Rightarrow \frac n d | r \cdot \frac k d \Rightarrow \frac n d | r .$$
The last implication is due to the fact that $\gcd \Big( \frac n d, \frac k d \Big) = 1$ and Euclid's lemma.
Thanks in advance.