Proof (transpositions generate)
We will prove by induction on $n$.
Note that $$ S_{n-1} \isom \mrm{Stab}_{S_n}(n). $$
Base case: for $n=2$, $$ S_2 = \set{e, \pmat{1 & 2}} = \gen{\pmat{1&2}}. $$
Inductive step: suppose $S_{n-1}$ is generated by transpositions. Let $\sigma\in S_n$.
-
If $\sigma(n) = n$, then $\sigma\in\mrm{Stab}_{S_n}(n) \isom S_{n-1}$, so $\sigma$ is a product of transpositions by the inductive hypothesis.
-
If $\sigma(n) \neq n$, let $\tau = \pmat{n&\sigma(n)}$. Then $$ \tau\sigma(n) = n. $$ So $\tau\sigma \in \mrm{Stab}_{S_n}(n)$ so same as above $$ \tau\sigma = \tau_1 \tau_2 \ldots \tau_k $$ where $\tau_1, \ldots, \tau_k$ are transpositions. Therefore $$ \sigma = \tau\inv \tau_1 \ldots \tau_k = \tau \tau_1 \ldots \tau_k $$ as required.