Cycle Decomposition and Parity
Can a permutation be both even and odd at the same time? This question sounds trivial. It becomes harder once you try to prove it cannot happen. Every permutation of a finite set can be written as a product of transpositions in infinitely many ways. These ways can use different numbers of factors. Yet a remarkable fact rescues us. The parity of the number of transpositions used is always the same. This invariant is called the sign of a permutation. It is one of the first deep structural facts a student meets in group theory. It is far from obvious from the definitions alone. The idea matters because it is the hinge on which an enormous amount of mathematics turns. The sign of a permutation is what makes the determinant of a matrix well-defined. It is what separates solvable polynomial equations from unsolvable ones in Galois theory. It also splits the symmetric group into two halves. The even permutations form the Alternating Group. This is the first nontrivial example of a normal subgroup of index 2 in a non-abelian group. Without a rigorous proof that parity is well-defined, none of these downstream facts would even make sense. The big picture is that every permutation has a canonical structural description. It can be written as a product of disjoint cycles. This decomposition is essentially unique. From this uniqueness we can extract a length function. From a separate combinatorial argument involving how transpositions interact with cycle structure, we extract a sign function. This sign function turns out to agree with the naive parity count. This article builds the whole chain. It covers cycle notation, the disjoint cycle decomposition theorem, transpositions as generators, and finally the sign homomorphism. Everything is proved rigorously and without appeal to determinants or any other borrowed machinery. By the end you will have a complete, self-contained proof. It shows that the parity of a permutation is well-defined. You will also gain the tools that make computations in routine. These tools are cycle type, transposition length, and the sign function. This sets up the alternating group. It previews how sign behaves as a group homomorphism. These themes are picked up in dedicated treatments of those topics.
- Every permutation in factors uniquely (up to order and cyclic rotation of each cycle) into disjoint cycles.
- Every cycle, and hence every permutation, can be written as a product of transpositions, but not uniquely.
- The number of transpositions used to write a fixed permutation always has the same parity — this is the deep theorem.
- The sign , where is the number of cycles (including fixed points) in the disjoint decomposition, computes this parity.
- Sign is multiplicative: , foreshadowing that is a group homomorphism to .
- Key idea: parity is a genuine invariant of a permutation, not an artifact of how you happen to write it as transpositions.
Where this lives today
The sign function underlies the definition of the determinant of an matrix, , which is meaningless unless sign is well-defined — this article's theorem is exactly the fact that makes determinants consistent objects rather than notation-dependent accidents. In Galois theory, the alternating group (the kernel of ) governs the unsolvability of the general quintic and higher-degree polynomials by radicals, since is simple and non-abelian. In physics, the sign of permutations of identical particles distinguishes bosons (symmetric wavefunctions) from fermions (antisymmetric wavefunctions), directly invoking in the transformation law of many-body wavefunctions under particle exchange. In computer science, parity of a permutation appears in sorting algorithm analysis (minimum number of adjacent transpositions needed relates to inversion counts) and in the theory of the 15-puzzle, where solvability of a configuration is exactly determined by whether the corresponding permutation is even. In combinatorics and representation theory, cycle type (the multiset of cycle lengths) indexes conjugacy classes of and controls the character theory of the symmetric group, feeding into the study of symmetric groups at a deeper structural level.
Ask the tutor: How does the sign homomorphism let us prove that the alternating group has index exactly in ?
Let and let denote the symmetric group on , whose elements are the bijections under composition.
Cycle. For distinct elements with , the -cycle is the permutation sending for , sending , and fixing every element not among . A -cycle is the identity; we adopt the convention that the identity permutation, when we speak of "the disjoint cycle decomposition," is written as a product of trivial -cycles , one for each point, unless stated otherwise. Two cycles are disjoint if the sets of elements they move (i.e. do not fix) are disjoint as subsets of .
Disjoint cycle decomposition. A disjoint cycle decomposition of is an expression
where are pairwise disjoint cycles (including possibly -cycles for fixed points) whose supports partition , and whose product (composed in any order, since disjoint cycles commute) equals .
Transposition. A transposition is a -cycle with .
Sign. For with disjoint cycle decomposition into cycles (counting fixed points as -cycles, so that the cycles partition all of into blocks), define
Equivalently, if can be written as a product of transpositions, we will prove always, and call even if and odd if .
Intuition
Think of a permutation as a set of instructions for rearranging labeled tokens sitting on positions. Chase any starting position through repeated application of : position goes to , which goes to , and so on. Because is finite and is a bijection, this chase must eventually return to , tracing out a closed loop — a cycle. Removing that loop's points and repeating on what remains, you partition the whole set into disjoint closed loops. This is the cycle decomposition, and it is as natural as tracing the orbits of a finite dynamical system. Transpositions are the atoms of rearrangement: swap exactly two tokens, leave everything else alone. Any cycle can be dismantled into a sequence of swaps — slide the last element into place, then the next, and so on — but there are many ways to do this, using different numbers of swaps. The surprising, load-bearing fact is that no matter how cleverly (or wastefully) you dismantle a fixed permutation into swaps, the parity — even or odd number of swaps — never changes. This is not obvious from staring at examples; it requires an actual argument, which we give below via a careful induction tracking how a single transposition affects the cycle count.
The central theorem
Let . Then can be written as a product of pairwise disjoint cycles whose supports partition (allowing -cycles for fixed points), and this decomposition is unique up to the order of the factors and up to the cyclic rotation of the listed elements within each cycle.
Existence. Define a relation on by if for some integer (positive, negative, or zero, using that is a bijection so exists). This is an equivalence relation: reflexive via ; symmetric since ; transitive since . Let the equivalence classes (orbits of ) be , partitioning . Fix an orbit and pick . Since is finite, the elements cannot all be distinct; let be minimal with for some . Applying (valid since is a bijection) gives with ; by minimality of we must have , so and are pairwise distinct (any earlier coincidence would contradict minimality of by the same argument). Since every element of is for some , and forces , the orbit is exactly , of size . Define , an -cycle. By construction agrees with on and fixes everything outside (as a cycle by definition). Since partition , the cycles are pairwise disjoint (disjoint supports), disjoint cycles commute (an element in one support is fixed by all other 's, so composing in any order gives the same map), and for any , lies in exactly one , on which the product acts exactly as does, which is exactly as does. Hence .
Uniqueness. Suppose is another expression as pairwise disjoint cycles with supports partitioning . Fix in the support of some of length , say — note that because the are disjoint and their product is , for in the support of , the action of on equals the action of alone (all other disjoint factors fix ). Iterating, for all , so the support of is precisely the orbit of under , and is the cycle for where is that orbit. This is exactly the cycle constructed above (possibly written starting at a different element of the same orbit, which is a cyclic rotation of the same cycle notation). Since every support of a must therefore be a full -orbit, and the orbits are exactly , the multiset equals up to reordering and rotation.
∎Every can be written as a product of transpositions.
By the Lemma it suffices to write an arbitrary cycle as a product of transpositions. For an -cycle with ,
which is verified directly: apply the right side to — only moves it, sending , and no further transposition in the product (reading right to left) touches since none of them contain , so the whole product sends , matching the cycle. Apply it to for : reading right to left, all fix (their supports are with ), then sends , then sends , and the remaining factors fix ; so the total effect is , matching the cycle. Finally apply it to : all factors except the leftmost, , fix , and that one sends , matching the cycle. Every point outside is fixed by every factor, hence by the product. A -cycle (identity on a point) is the empty product of transpositions. This proves the corollary, with transpositions used for an -cycle.
∎Let . Suppose
are two expressions of as products of transpositions (of any lengths , where means is the identity). Then
Consequently is a well-defined function , and it satisfies where is the number of cycles (including -cycles) in the disjoint cycle decomposition of .
We use the technique of tracking the change in cycle count under multiplication by a single transposition, which is the combinatorial heart of the argument.
Key Lemma. Let have disjoint cycle decomposition (including -cycles) with exactly cycles, and let be a transposition, . Then has exactly or cycles in its disjoint decomposition: if lie in the same cycle of , and if they lie in different cycles of . Proof of Key Lemma. Case 1: and lie in the same cycle of , say 's decomposition contains the cycle (written so that reading forward from we reach after intermediate steps, possibly ; here and is the length of ), and all other cycles of are unaffected by left-multiplication by since only touches and those other cycles don't contain or . Compute directly: for , sends , then sends , so . For , sends , then sends , so . For all other elements of not equal to or , (since maps to the next element in the cycle, and only and hit ), so fixes and . Tracing the action of on 's support starting at : (a closed cycle of length ), and separately (a closed cycle of length ). So splits into two disjoint cycles under (note and account correctly even when or , giving a -cycle fixed point). All other cycles of are untouched. Net change: one cycle becomes two, so the count goes from to . Case 2: lie in different cycles of , say and with . As before all other cycles are untouched. Compute: sends (or if , sends , i.e. the cycle is just , handle uniformly by allowing the "previous element" of in its own cycle to be itself when ), then sends . Similarly sends then sends . All interior elements of are unaffected by since doesn't map them into except at the two junctions just described. Tracing starting at : , a single cycle of length merging and . Net change: two cycles become one, so the count goes from to . This proves the Key Lemma.
Main argument by induction on . We show: if has disjoint decomposition with cycles and is any product of transpositions, then . Base case : then , the identity, whose disjoint decomposition is trivial -cycles, so and . ✓. Inductive step: Suppose the claim holds for all permutations expressible as a product of fewer than transpositions (), for every . Let . Set , a product of transpositions, so . Let have cycles in its disjoint decomposition; by the inductive hypothesis, . By the Key Lemma applied to , the cycle count of satisfies or ; either way , i.e. . Substituting,
so . This completes the induction.
Conclusion. Given the theorem's two expressions , apply the main argument to each: with the (fixed, well-defined by the uniqueness Lemma above) number of cycles of 's disjoint decomposition, we get and , hence . Therefore , so does not depend on which transposition expression was used — it is well-defined — and equals .
∎For all , .
Write as a product of transpositions and as a product of transpositions (possible by the Corollary above). Concatenating gives an expression of as a product of transpositions. By the Theorem, , using that is well-defined regardless of the transposition expression chosen.
∎This multiplicativity is exactly the statement that is a group homomorphism from to the multiplicative group ; its kernel is precisely the Alternating Group .
Worked examples
Example 1: A permutation in given in two-line form. Let be given by
We find its disjoint cycle decomposition by chasing orbits. Start at : , , , , , . So one orbit is , giving the cycle , length . Remaining points: . Start at : , . So the orbit gives the cycle , length . Remaining point: : , a fixed point, giving the -cycle . So the disjoint decomposition is
with cycles (lengths , summing to , a good consistency check). By the Theorem,
so is even. Let's cross-check by transpositions. Using the identity from the Corollary, , which is transpositions (one less than the cycle length , as the formula predicts: an -cycle needs transpositions). The -cycle is already transposition, and needs . Total: transpositions, and indeed , matching . Both computations agree that is even, confirming the Theorem's consistency on a genuinely asymmetric example.
Example 2: Sign of a product of permutations, verifying multiplicativity. Let and take
First, is a single -cycle plus the fixed point , so its disjoint decomposition has cycles ( and ), giving . Next, has disjoint decomposition with cycles: , , , — the four blocks partition . So . Now compute the product (applying first, then , using the standard right-to-left function composition convention). Track each point:
- : , then . So .
- : , then . So .
- : , then . So .
- : , then . So .
- : , then . So .
- : , then . So .
So in two-line form sends . Chase orbits: starting at : , a -cycle . Remaining points : , a -cycle . So
with cycles, both nontrivial (lengths and , summing to ). So . Check multiplicativity: . This confirms the Corollary on a genuinely non-symmetric pair (one 5-cycle, one product of two disjoint transpositions, deliberately chosen so cancellations aren't trivial to see by inspection alone).
The Disjoint Cycle Decomposition Lemma explicitly requires the cycles in the decomposition to be pairwise disjoint (supports partitioning ). If we drop this hypothesis and merely ask for some expression of as a product of (possibly overlapping) cycles, uniqueness fails completely, and even existence-with-uniqueness-of-cycle-count fails, which would break the well-definedness of the cycle-count formula for sign if we tried to apply it to non-disjoint decompositions. Concretely, in let . The disjoint decomposition is just the single -cycle itself, cycle, and indeed , matching the transposition count , which is transpositions, even, consistent. But now observe that also equals a product of two overlapping (non-disjoint) cycles in more than one way, e.g.
and if we abandon the disjointness requirement and instead just count "how many cycles of length appear in an arbitrary factorization into cycles," that count is not an invariant at all — we could pad with to insert two extra cycles into any factorization, changing the cycle count by an even number without disjointness constraining anything, and depending on the allowed overlap structure one can even change parity-adjacent counts inconsistently since the clean case-split argument in the Key Lemma used crucially that interacts with a permutation's disjoint cycle structure in exactly the two ways described (splitting or merging one pair of disjoint cycles). Without disjointness, the notion of "the number of cycles of " is simply not well-defined — has no canonical "cycle count" to speak of outside the disjoint decomposition — and the formula has no meaning to fall back on. It is only because the disjoint decomposition is unique (proved above) that is a legitimate invariant of in the first place, and the entire sign theorem is built on that uniqueness.
Scope, edge cases & common traps
| Situation | What holds | Common pitfall |
|---|---|---|
| (identity) | Disjoint decomposition is fixed points, , | Forgetting to count fixed points as -cycles when computing |
| an -cycle | Needs exactly transpositions in the standard factorization; | Confusing "cycle length" with "number of transpositions"; they differ by |
| a product of disjoint transpositions | nontrivial-or-trivial cycles total is ; | Miscounting fixed points when |
| Transposition expressions | Not unique in length, but always agree mod | Believing "the number of transpositions" is itself an invariant (it is not — only its parity is) |
| varies | Sign depends on viewing inside a fixed ; embedding by adding a fixed point does not change (since and both increase by ) | Thinking sign depends on ambient in a way that changes the answer — it doesn't, as long as fixed points are consistently counted |
The mathematician behind it
Origins · 1 minAugustin-Louis Cauchy and how this was discovered
Cauchy was one of the most prolific mathematicians in history, producing foundational work across real and complex analysis, elasticity theory, and algebra. In a series of papers around 1815, motivated by studying how the value of an algebraic expression changes under permutations of its variables (a question tracing back to Lagrange's work on solving polynomial equations), Cauchy introduced systematic cycle notation for permutations and established the disjoint cycle decomposition as a computational tool. He also introduced the notion of the number of "inversions" of a permutation and connected it to the sign, laying groundwork later sharpened into the modern transposition-parity argument. Cauchy's cycle notation is essentially unchanged in textbooks today.
Why is the disjoint cycle decomposition unique but the transposition factorization is not?
Uniqueness of the disjoint decomposition comes from the fact that the supports of the cycles are exactly the orbits of acting on , and orbits of an equivalence relation are canonically determined by itself — there is no choice involved. Transposition factorizations, by contrast, are not tied to any canonical structure; they are just one of many ways to build up the same function via elementary swaps, and there are always infinitely many valid factorizations (you can always insert pairs to pad any factorization by two more transpositions). What survives this non-uniqueness is only the parity of the transposition count, which the theorem shows is secretly computable from the (unique) disjoint cycle count via .
Does the sign of a permutation depend on which set it's regarded as acting on?
No, as long as you consistently include fixed points as trivial -cycles when computing . If fixes some points and you view it inside by declaring it also fixes the point , then both and increase by exactly (one more point, one more trivial cycle), so is unchanged and is the same in both groups. This is why sign is often described as an intrinsic property of the "shape" of the permutation (its cycle type ignoring 1-cycles) rather than of the ambient .
How do I compute the sign of a permutation quickly without factoring into transpositions?
Find the disjoint cycle decomposition (including fixed points) and count the total number of cycles ; then . Equivalently, since an -cycle contributes to the minimum transposition count, you can sum over all nontrivial cycle lengths and take raised to that sum — fixed points contribute either way, so they can be ignored entirely for this shortcut. Both routes give the same answer since once fixed points are folded in as length- cycles contributing zero.
Is a transposition itself always odd?
Yes. A transposition acting on has disjoint cycle decomposition consisting of the single -cycle together with trivial fixed points, for a total of cycles. So . This matches the trivial transposition-count factorization using exactly transposition (itself), giving directly, and confirms the two formulas for sign agree in the simplest nontrivial case.
Why does the Key Lemma only need to consider the two cases "same cycle" or "different cycles," and not more exotic configurations?
Because and are just two specific points of , and the disjoint cycle decomposition of partitions all of into disjoint blocks; every pair of points falls into exactly one of two mutually exclusive, jointly exhaustive situations relative to that partition — either they lie in a common block or they lie in different blocks. There is no third option, since the blocks form a genuine set partition, so the case analysis is complete, and the detailed splitting/merging computation in each case exhausts all possible interactions of a single transposition with a full cycle decomposition.
Can two different permutations have the same cycle type but different signs?
No — sign depends only on cycle type (the multiset of cycle lengths, including 's for fixed points), since depends only on and the number of cycles , both of which are determined by cycle type alone, not by which specific elements appear in which cycles. This is part of why sign is constant on each conjugacy class of — conjugate permutations always share the same cycle type, hence the same sign, a fact used heavily when the Alternating Group is analyzed as a union of conjugacy classes of .
What is the relationship between "number of inversions" and the sign defined here?
An inversion of is a pair with ; a classical theorem (not proved in this article but consistent with it) states that the parity of the number of inversions always equals the parity of the minimum transposition count, hence equals as defined here. This inversion-counting approach is Cauchy's original method and gives an alternative, purely combinatorial way to compute without ever finding the disjoint cycle decomposition, though the two methods are proven to agree.