Let $(G,\cdot)$ be a group and $a\in G$.
Let's consider the set $\{a, ... , a^{|G|} \}$. Imagine the elements of that set repeat themselves (say, $4$ times) then this will imply that there are $4$ $i$'s in this set such that $a^i = 1$ (the reason is because $a^r = a^s$ with $s>r \implies a^{r-s}=1$). Let $n= \min \{i | a^i=1\}$.
My question is how can we be sure that there will not be any repetition of elements in the set $\{a, ..., a^n \}$?
The context of this question is to understand why does in this answer it is said that $n$ is the order of the group $\{a, ..., a^n \}$, where $n$ is defined as it was above.
Many thanks!
EDIT: I think I've got it: the corresponding $1$ will always be either on the left or in-between the pair of repeated elements?