Definition 1. Let $\sigma \in \SS_n$ be a permutation ($n \in \N^+$). The parity of $\sigma$ is
\[\par \sigma = (-1)^k,\]where
\[k = \big\lvert \{ % (i, j) \in \llbra n \rrbra \times \llbra n\rrbra : i < j \,\land\, \sigma(i) > \sigma(j) % \}\big\rvert\]is the number of inversions in $\sigma$. $\sigma$ is called an even permutation if $k$ is even and an odd permutation if $k$ is odd.