Sign of permutation
The set of transpositions in $S_n$ generate $S_n$.
A transposition $\sigma\in S_n$ in the form $$ \sigma = \pmat{i & i+1} $$ for some $i = 1,2,\ldots, n-1$ is called adjacent.
Any transposition is a product of an odd number of adjacent transposition.
The set of all adjacent transpositions in $S_n$ generate $S_n$.
Proof: transpositions generate, and transpositions can be written as adjacent transpositions.
For a permutation $\sigma\in S_n$, a pair $\set{i, j} \subseteq \set{1,2,\ldots,n}$ is called an inversion if $$ i<j \quad\text{but}\quad \sigma(i)>\sigma(j). $$
Suppose $$\sigma = \tau_1\tau_2\ldots\tau_k$$ where $\tau_1, \tau_2, \ldots, \tau_k$ are all transpositions. If $\sigma = e$, then $k$ is even.
The map $$\begin{align*} \sign : && S_n &\to C_2 = \set{-1, 1} \\ &&\tau_1\tau_2\ldots\tau_k &\mapsto (-1)^k \end{align*}$$ where $\tau_1,\ldots,\tau_k$ are transpositions, is a well defined homomorphism.
(Vectors and Matrices use the notation $\epsilon(\sigma)$ instead.)
-
$\sign(\rho\sigma) = \sign(\rho)\sign(\sigma)$;
-
$\sign(\rho\inv) = \sign(\rho)$.
A permutation $\sigma\in S_n$ is even if $\sign(\sigma) = +1$, and it is odd if $\sign(\sigma) = -1$.
The subgroup of all even permutations $$A_n \equiv \ker(\sign) \lhd S_n$$ is the alternating group on $n$ elements.
A $(k_1, k_2, \ldots, k_l)$-cycle is even iff the number of even $k_i$ is even.