I have been reading Dummit & Foote, and I got stuck on exercise 1 in ch 1.1, where the authors asked to show that a group with general dihedral group presentation has order exactly $2n$.
To be specific, by general dihedral group presentation, it means $$ D_{2n} = \langle r,s ~\vert~ r^n = s^2 = 1 ,~ rs = sr^{-1} \rangle $$
and the exercise asks to show $\lvert D_{2n} \rvert = 2n$
It's clear that any element in $D_{2n}$ can be uniquely represented by $s^br^m$, where $b \in \{0, 1\}$ and $m \in [0,n-1] \cap \mathbb{N}$. I try to find contradiction. That assuming $s=1$ seems dumb - it doesn't seem to contradict anything, though - so I started by assuming $\lvert r \rvert = m < n$. Here's what I tried:
$$ \begin{align*} r^m &= 1 && \text{ Assumption} \\ s^2 r^m &= 1 && \text{ Multiply }s^2=1\text{ from left} \\ s r^{n-m} s &= 1 && \text{ Apply "commute" law} \\ s r^{n-m} &= s && \text{ Multiply }s\text{ from right} \\ r^{n-m} &= 1 &&\text{ Cancellation law} \end{align*} $$
I find no contradictions here; it seems to suggest $\lvert r \rvert$ can be any factor of $n$. For example, both assuming that $\lvert r \rvert = 5$ in $D_{20}$ or assuming that $\lvert r \rvert = 2$ in $D_{16}$ seem to violate nothing. But from these we have $\lvert D_{20} \rvert \leq 10$ and $\lvert D_{16} \rvert \leq 4$, which is absurd.
I've read this, this, and this, but they don't seem to answer my question. The first one, with my intro-level algebra knowledge, provided an alternative way to see the presentation of $D_{2n}$, besides the 2D polygon example in Dummit & Foote. The second one illustrated that why a presentation like this leads to a group with order $\leq 2n$ (which I agree with), but give no reason to why there's lower bound on order of such presentation. The third seem to be wrong, because it seems the case when the remainder is $0$ is not considered, which is why I'm stuck in the beginning.