TITLE: How to determine the parity of a permutation by its cycle decomposition
QUESTION [5 upvotes]: If one is given the length of a permutation and the number of cycles, is it possible to determine the parity of the permutation?

Oddly enough, there's no definition in the text I'm reading for cycle decomposition. I'm assuming it means the permutation $\sigma$ written as a product of disjoint cycles.
I also know a permutation is odd if and only if there are an odd number of even length cycles. (But I know this because of Wikipedia.)
So how does one determine the parity of a permutation?

REPLY [3 votes]: A transposition is odd, so is any cycle of even length. A cycle of odd length is even, as it can be written as a product of even number of transpositions: it's good to know that
$$(1234..n)=(12)(23)(34)..((n-1)n)\,.$$
 So, if the disjoint cycle decomposition of a permutation $\sigma$ has even number of cycles of even length, then it is even (${\rm sgn\,}\sigma=+1$), else it is odd (${\rm sgn\,}\sigma=-1$).