I have encountered a proof regarding dihedral groups we this fact is used:
If $d\mid 2n$ and $d\nmid n$, then $d$ is even and ${d\over 2}\mid n$.
I can't seem to understand why this is true. If $d\nmid n$, then there are $q,r \in \mathbb{Z}$ so that $0 < r < d$ and $n = qd + r$. On the other hand, $d\mid 2n$ means that there is $m \in \mathbb{Z}$ so that $2n = md$. We need to somehow use these two facts.
Also, my second question is how we can naturally generalize this result?
Suppose $d$ is odd. Then $d$ and $2$ are relatively prime and $d\mid 2n$, so by Euclid lemma we have $d\mid n$.
A contradiction. So $d$ must be even.
We could have more general situation.
The proof goes exactly the same as for $p=2$.