Let $n \ge 3$. Prove that there are $n!$ different one-to-one homomorphisms from $D_n$ to $S_n$.
I know there are $n!$ elements in $S_n$, but this fact didn't get me anywhere.
I tried many things but nothing seems to be the right way for solving this question. Any help or hint will be appreciated.
Let $D_n$ be the group generated by $x$ and $y$ with the relations $x^n=e$, $y^2=e$, $yx=x^{-1}y$.
Beware that the question is (hopefully) only asking you to prove that there are at least $n!$ injective homomorphisms $D_n\to S_n$. In most cases there will be more than that.
For example for $n=15$, @orangeskid's construction gives you $15!$ different homomorphisms, but there are ones that don't arise in that way; for example the one given by $$ \begin{align} x \mapsto {} & (1\;2\;3)(4\;5\;6\;7\;8) \\ y \mapsto {} & (2\;3)(5\;8)(6\;7) \end{align} $$
As noted by the answer by orangeskid, considering the actions of $D_n$ on the corners of a regular $n$-gon will give you $n!$ different homomorphisms given by different labellings of the corners provided that $n$ is odd.
For the case of even $n$, note that $D_n$ acts both on the corners of the $n$-gon and on its sides. And the action of $y$ on the sides is clearly distinguishable from the action on the corners.
(Bonus exercise: Prove that there are exactly $n!$ injective homomorphisms if and only if $n$ is a prime power.)