Let $a$ be a permutation of $S_n$ and suppose that $a$ decomposes as a product
$a = \sigma_1 \circ \dots \circ \sigma_r \circ \gamma_1 \circ \dots \circ \gamma_s$
of disjoint cycles where $\sigma_i$ all have odd length and $\gamma_j$ all have even length. Give a necessary and sufficient condition on $r,s$ for $a$ to be an even permutation.
So for $a$ to be an even permutation, it should have odd length. Since $\gamma$ has even length, the product of those will have lcm of an even number. On the other hand, $\sigma$ has odd length so the product of those will have lcm of an odd number. Then the final product of $a$ will be a product between an even and an odd length, but I need to have $a$ as an odd length. And lcm of an even and an odd number is never odd... Did I miss something? Any help is appreciated.
Since $\operatorname{sgn}(a)=(-1)^r$, $a$ is an even permutation if and only if $r$ is even.