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 SnS_n 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 SnS_n 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.

Key takeaways
  • Every permutation in SnS_n 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 sgn⁡(σ)=(−1)n−k\operatorname{sgn}(\sigma) = (-1)^{n - k}, where kk is the number of cycles (including fixed points) in the disjoint decomposition, computes this parity.
  • Sign is multiplicative: sgn⁡(στ)=sgn⁡(σ)sgn⁡(τ)\operatorname{sgn}(\sigma\tau) = \operatorname{sgn}(\sigma)\operatorname{sgn}(\tau), foreshadowing that sgn⁡\operatorname{sgn} is a group homomorphism to {±1}\{\pm1\}.
  • 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 n×nn \times n matrix, det⁡(A)=∑σ∈Snsgn⁡(σ)∏iAi,σ(i)\det(A) = \sum_{\sigma \in S_n} \operatorname{sgn}(\sigma) \prod_i A_{i,\sigma(i)}, 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 AnA_n (the kernel of sgn⁡\operatorname{sgn}) governs the unsolvability of the general quintic and higher-degree polynomials by radicals, since A5A_5 is simple and non-abelian. In physics, the sign of permutations of identical particles distinguishes bosons (symmetric wavefunctions) from fermions (antisymmetric wavefunctions), directly invoking sgn⁡(σ)\operatorname{sgn}(\sigma) 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 SnS_n 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 sgn⁡:Sn→{±1}\operatorname{sgn}: S_n \to \{\pm 1\} let us prove that the alternating group AnA_n has index exactly 22 in SnS_n?

DefinitionCycles, Disjoint Cycle Decomposition, Transpositions, and Sign

Let n≥1n \ge 1 and let SnS_n denote the symmetric group on {1,2,…,n}\{1, 2, \dots, n\}, whose elements are the bijections σ:{1,…,n}→{1,…,n}\sigma : \{1,\dots,n\} \to \{1,\dots,n\} under composition.

Cycle. For distinct elements a1,a2,…,ar∈{1,…,n}a_1, a_2, \dots, a_r \in \{1,\dots,n\} with r≥1r \ge 1, the rr-cycle (a1 a2 ⋯ ar)(a_1\, a_2\, \cdots\, a_r) is the permutation sending ai↦ai+1a_i \mapsto a_{i+1} for 1≤i<r1 \le i < r, sending ar↦a1a_r \mapsto a_1, and fixing every element not among a1,…,ara_1,\dots,a_r. A 11-cycle (a)(a) 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 nn trivial 11-cycles (1)(2)⋯(n)(1)(2)\cdots(n), 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 {1,…,n}\{1,\dots,n\}.

Disjoint cycle decomposition. A disjoint cycle decomposition of σ∈Sn\sigma \in S_n is an expression

σ=γ1γ2⋯γk,\sigma = \gamma_1 \gamma_2 \cdots \gamma_k,

where γ1,…,γk\gamma_1, \dots, \gamma_k are pairwise disjoint cycles (including possibly 11-cycles for fixed points) whose supports partition {1,…,n}\{1,\dots,n\}, and whose product (composed in any order, since disjoint cycles commute) equals σ\sigma.

Transposition. A transposition is a 22-cycle (a b)(a\,b) with a≠ba \ne b.

Sign. For σ∈Sn\sigma \in S_n with disjoint cycle decomposition into kk cycles (counting fixed points as 11-cycles, so that the cycles partition all of {1,…,n}\{1,\dots,n\} into kk blocks), define

sgn⁡(σ)=(−1)n−k.\operatorname{sgn}(\sigma) = (-1)^{n-k}.

Equivalently, if σ\sigma can be written as a product of mm transpositions, we will prove m≡n−k(mod2)m \equiv n - k \pmod 2 always, and call σ\sigma even if sgn⁡(σ)=1\operatorname{sgn}(\sigma) = 1 and odd if sgn⁡(σ)=−1\operatorname{sgn}(\sigma) = -1.

Intuition

Think of a permutation as a set of instructions for rearranging nn labeled tokens sitting on nn positions. Chase any starting position through repeated application of σ\sigma: position 11 goes to σ(1)\sigma(1), which goes to σ(σ(1))\sigma(\sigma(1)), and so on. Because {1,…,n}\{1,\dots,n\} is finite and σ\sigma is a bijection, this chase must eventually return to 11, 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.

Figure
A 7-cycle traced as an orbit, then dismantled into transpositions
σ = (1 3 5 7 2 4 6), a single 7-cycle in S₇ 1 3 5 7 2 4 6 (1 3 5 7 2 4 6) = (1 6)(1 4)(1 2)(1 7)(1 5)(1 3): 6 transpositions, n − k = 7 − 1 = 6, both even count.

The central theorem

LemmaDisjoint Cycle Decomposition Exists and Is Essentially Unique

Let σ∈Sn\sigma \in S_n. Then σ\sigma can be written as a product of pairwise disjoint cycles γ1⋯γk\gamma_1 \cdots \gamma_k whose supports partition {1,…,n}\{1,\dots,n\} (allowing 11-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.

Proof

Existence. Define a relation on {1,…,n}\{1,\dots,n\} by a∼ba \sim b if b=σt(a)b = \sigma^t(a) for some integer tt (positive, negative, or zero, using that σ\sigma is a bijection so σ−1\sigma^{-1} exists). This is an equivalence relation: reflexive via t=0t=0; symmetric since b=σt(a)  ⟹  a=σ−t(b)b = \sigma^t(a) \implies a = \sigma^{-t}(b); transitive since σt∘σs=σt+s\sigma^t \circ \sigma^s = \sigma^{t+s}. Let the equivalence classes (orbits of σ\sigma) be O1,…,OkO_1, \dots, O_k, partitioning {1,…,n}\{1,\dots,n\}. Fix an orbit OiO_i and pick a∈Oia \in O_i. Since {1,…,n}\{1,\dots,n\} is finite, the elements a,σ(a),σ2(a),…a, \sigma(a), \sigma^2(a), \dots cannot all be distinct; let r≥1r \ge 1 be minimal with σr(a)=σs(a)\sigma^r(a) = \sigma^s(a) for some 0≤s<r0 \le s < r. Applying σ−s\sigma^{-s} (valid since σ\sigma is a bijection) gives σr−s(a)=a\sigma^{r-s}(a) = a with 0<r−s≤r0 < r - s \le r; by minimality of rr we must have s=0s = 0, so σr(a)=a\sigma^r(a) = a and a,σ(a),…,σr−1(a)a, \sigma(a), \dots, \sigma^{r-1}(a) are pairwise distinct (any earlier coincidence would contradict minimality of rr by the same argument). Since every element of OiO_i is σt(a)\sigma^t(a) for some tt, and σr(a)=a\sigma^r(a) = a forces σt(a)=σt  r(a)\sigma^t(a) = \sigma^{t \bmod r}(a), the orbit is exactly Oi={a,σ(a),…,σr−1(a)}O_i = \{a, \sigma(a), \dots, \sigma^{r-1}(a)\}, of size rr. Define γi=(a σ(a) σ2(a) ⋯ σr−1(a))\gamma_i = (a\ \sigma(a)\ \sigma^2(a)\ \cdots\ \sigma^{r-1}(a)), an rr-cycle. By construction γi\gamma_i agrees with σ\sigma on OiO_i and fixes everything outside OiO_i (as a cycle by definition). Since O1,…,OkO_1,\dots,O_k partition {1,…,n}\{1,\dots,n\}, the cycles γ1,…,γk\gamma_1,\dots,\gamma_k are pairwise disjoint (disjoint supports), disjoint cycles commute (an element in one support is fixed by all other γj\gamma_j's, so composing in any order gives the same map), and for any x∈{1,…,n}x \in \{1,\dots,n\}, xx lies in exactly one OiO_i, on which the product γ1⋯γk\gamma_1\cdots\gamma_k acts exactly as γi\gamma_i does, which is exactly as σ\sigma does. Hence σ=γ1γ2⋯γk\sigma = \gamma_1 \gamma_2 \cdots \gamma_k.

Uniqueness. Suppose σ=δ1⋯δm\sigma = \delta_1 \cdots \delta_m is another expression as pairwise disjoint cycles with supports partitioning {1,…,n}\{1,\dots,n\}. Fix xx in the support of some δj\delta_j of length ℓ\ell, say δj=(x σ(x) σ2(x) ⋯ )\delta_j = (x\ \sigma(x)\ \sigma^2(x)\ \cdots) — note that because the δi\delta_i are disjoint and their product is σ\sigma, for xx in the support of δj\delta_j, the action of σ\sigma on xx equals the action of δj\delta_j alone (all other disjoint factors fix xx). Iterating, σt(x)=δjt(x)\sigma^t(x) = \delta_j^t(x) for all tt, so the support of δj\delta_j is precisely the orbit of xx under σ\sigma, and δj\delta_j is the cycle (x σ(x) ⋯ σℓ−1(x))(x\ \sigma(x)\ \cdots\ \sigma^{\ell-1}(x)) for ℓ=∣Oi∣\ell = |O_i| where OiO_i is that orbit. This is exactly the cycle γi\gamma_i 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 δj\delta_j must therefore be a full σ\sigma-orbit, and the orbits are exactly O1,…,OkO_1,\dots,O_k, the multiset {δ1,…,δm}\{\delta_1,\dots,\delta_m\} equals {γ1,…,γk}\{\gamma_1,\dots,\gamma_k\} up to reordering and rotation. ■\blacksquare

∎
CorollaryEvery permutation is a product of transpositions

Every σ∈Sn\sigma \in S_n can be written as a product of transpositions.

Proof

By the Lemma it suffices to write an arbitrary cycle as a product of transpositions. For an rr-cycle with r≥2r \ge 2,

(a1 a2 ⋯ ar)=(a1 ar)(a1 ar−1)⋯(a1 a3)(a1 a2),(a_1\ a_2\ \cdots\ a_r) = (a_1\ a_r)(a_1\ a_{r-1}) \cdots (a_1\ a_3)(a_1\ a_2),

which is verified directly: apply the right side to a1a_1 — only (a1 a2)(a_1\,a_2) moves it, sending a1↦a2a_1 \mapsto a_2, and no further transposition in the product (reading right to left) touches a2a_2 since none of them contain a2a_2, so the whole product sends a1↦a2a_1 \mapsto a_2, matching the cycle. Apply it to aia_i for 1<i<r1 < i < r: reading right to left, (a1 a2),…,(a1 ai−1)(a_1\,a_2), \dots, (a_1\,a_{i-1}) all fix aia_i (their supports are {a1,aj}\{a_1,a_j\} with j<ij < i), then (a1 ai)(a_1\,a_i) sends ai↦a1a_i \mapsto a_1, then (a1 ai+1)(a_1\,a_{i+1}) sends a1↦ai+1a_1 \mapsto a_{i+1}, and the remaining factors (a1 ai+2),…,(a1 ar)(a_1\,a_{i+2}),\dots,(a_1\,a_r) fix ai+1a_{i+1}; so the total effect is ai↦ai+1a_i \mapsto a_{i+1}, matching the cycle. Finally apply it to ara_r: all factors except the leftmost, (a1 ar)(a_1\,a_r), fix ara_r, and that one sends ar↦a1a_r \mapsto a_1, matching the cycle. Every point outside {a1,…,ar}\{a_1,\dots,a_r\} is fixed by every factor, hence by the product. A 11-cycle (identity on a point) is the empty product of transpositions. This proves the corollary, with r−1r-1 transpositions used for an rr-cycle. ■\blacksquare

∎
TheoremWell-Definedness of Parity

Let σ∈Sn\sigma \in S_n. Suppose

σ=τ1τ2⋯τm=τ1′τ2′⋯τm′′\sigma = \tau_1 \tau_2 \cdots \tau_m = \tau_1' \tau_2' \cdots \tau_{m'}'

are two expressions of σ\sigma as products of transpositions (of any lengths m,m′≥0m, m' \ge 0, where m=0m=0 means σ\sigma is the identity). Then

m≡m′(mod2).m \equiv m' \pmod 2.

Consequently sgn⁡(σ):=(−1)m\operatorname{sgn}(\sigma) := (-1)^m is a well-defined function Sn→{±1}S_n \to \{\pm 1\}, and it satisfies sgn⁡(σ)=(−1)n−k\operatorname{sgn}(\sigma) = (-1)^{n-k} where kk is the number of cycles (including 11-cycles) in the disjoint cycle decomposition of σ\sigma.

Proof

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 π∈Sn\pi \in S_n have disjoint cycle decomposition (including 11-cycles) with exactly kk cycles, and let τ=(a b)\tau = (a\,b) be a transposition, a≠ba \ne b. Then τπ\tau \pi has exactly k+1k+1 or k−1k-1 cycles in its disjoint decomposition: k+1k+1 if a,ba,b lie in the same cycle of π\pi, and k−1k-1 if they lie in different cycles of π\pi. Proof of Key Lemma. Case 1: aa and bb lie in the same cycle of π\pi, say π\pi's decomposition contains the cycle C=(a x1 x2 ⋯ xp b y1 ⋯ yq)C = (a\ x_1\ x_2\ \cdots\ x_p\ b\ y_1\ \cdots\ y_q) (written so that reading forward from aa we reach bb after pp intermediate steps, possibly p=0p = 0; here p,q≥0p,q \ge 0 and p+q+2p+q+2 is the length of CC), and all other cycles of π\pi are unaffected by left-multiplication by τ=(a b)\tau = (a\,b) since τ\tau only touches a,ba,b and those other cycles don't contain aa or bb. Compute directly: for yqy_q, π\pi sends yq↦ay_q \mapsto a, then τ\tau sends a↦ba \mapsto b, so (τπ)(yq)=b(\tau\pi)(y_q) = b. For xpx_p, π\pi sends xp↦bx_p \mapsto b, then τ\tau sends b↦ab \mapsto a, so (τπ)(xp)=a(\tau\pi)(x_p) = a. For all other elements zz of CC not equal to xpx_p or yqy_q, π(z)∉{a,b}\pi(z) \notin \{a,b\} (since π\pi maps zz to the next element in the cycle, and only xp↦bx_p \mapsto b and yq↦ay_q \mapsto a hit {a,b}\{a,b\}), so τ\tau fixes π(z)\pi(z) and (τπ)(z)=π(z)(\tau\pi)(z) = \pi(z). Tracing the action of τπ\tau\pi on CC's support starting at aa: a↦x1↦⋯↦xp↦aa \mapsto x_1 \mapsto \cdots \mapsto x_p \mapsto a (a closed cycle of length p+1p+1), and separately b↦y1↦⋯↦yq↦bb \mapsto y_1 \mapsto \cdots \mapsto y_q \mapsto b (a closed cycle of length q+1q+1). So CC splits into two disjoint cycles under τπ\tau\pi (note p+1≥1p+1 \ge 1 and q+1≥1q+1 \ge 1 account correctly even when p=0p=0 or q=0q=0, giving a 11-cycle fixed point). All other cycles of π\pi are untouched. Net change: one cycle becomes two, so the count goes from kk to k+1k+1. Case 2: a,ba,b lie in different cycles of π\pi, say Ca=(a x1 ⋯ xp)C_a = (a\ x_1\ \cdots\ x_p) and Cb=(b y1 ⋯ yq)C_b = (b\ y_1\ \cdots\ y_q) with p,q≥0p, q \ge 0. As before all other cycles are untouched. Compute: π\pi sends xp↦ax_p \mapsto a (or if p=0p=0, π\pi sends a↦aa \mapsto a, i.e. the cycle is just (a)(a), handle uniformly by allowing the "previous element" of aa in its own cycle to be aa itself when p=0p=0), then τ\tau sends a↦ba \mapsto b. Similarly π\pi sends yq↦by_q \mapsto b then τ\tau sends b↦ab \mapsto a. All interior elements of Ca,CbC_a, C_b are unaffected by τ\tau since π\pi doesn't map them into {a,b}\{a,b\} except at the two junctions just described. Tracing τπ\tau\pi starting at aa: a↦x1↦⋯↦xp↦b↦y1↦⋯↦yq↦aa \mapsto x_1 \mapsto \cdots \mapsto x_p \mapsto b \mapsto y_1 \mapsto \cdots \mapsto y_q \mapsto a, a single cycle of length p+q+2p+q+2 merging CaC_a and CbC_b. Net change: two cycles become one, so the count goes from kk to k−1k-1. This proves the Key Lemma. □\square

Main argument by induction on mm. We show: if σ\sigma has disjoint decomposition with kk cycles and σ=τ1⋯τm\sigma = \tau_1 \cdots \tau_m is any product of mm transpositions, then m≡n−k(mod2)m \equiv n - k \pmod 2. Base case m=0m = 0: then σ=e\sigma = e, the identity, whose disjoint decomposition is nn trivial 11-cycles, so k=nk = n and n−k=0≡0=m(mod2)n - k = 0 \equiv 0 = m \pmod 2. ✓. Inductive step: Suppose the claim holds for all permutations expressible as a product of fewer than mm transpositions (m≥1m \ge 1), for every nn. Let σ=τ1⋯τm\sigma = \tau_1 \cdots \tau_m. Set π=τ2⋯τm\pi = \tau_2 \cdots \tau_m, a product of m−1m - 1 transpositions, so σ=τ1π\sigma = \tau_1 \pi. Let π\pi have k′k' cycles in its disjoint decomposition; by the inductive hypothesis, m−1≡n−k′(mod2)m - 1 \equiv n - k' \pmod 2. By the Key Lemma applied to τ1π=σ\tau_1 \pi = \sigma, the cycle count kk of σ\sigma satisfies k=k′+1k = k' + 1 or k=k′−1k = k' - 1; either way k≡k′+1(mod2)k \equiv k' + 1 \pmod 2, i.e. k′≡k−1≡k+1(mod2)k' \equiv k - 1 \equiv k+1 \pmod 2. Substituting,

m−1≡n−k′≡n−(k+1)≡(n−k)−1(mod2),m - 1 \equiv n - k' \equiv n - (k+1) \equiv (n-k) - 1 \pmod 2,

so m≡n−k(mod2)m \equiv n - k \pmod 2. This completes the induction. □\square

Conclusion. Given the theorem's two expressions σ=τ1⋯τm=τ1′⋯τm′′\sigma = \tau_1\cdots\tau_m = \tau_1'\cdots\tau_{m'}', apply the main argument to each: with kk the (fixed, well-defined by the uniqueness Lemma above) number of cycles of σ\sigma's disjoint decomposition, we get m≡n−k(mod2)m \equiv n-k \pmod 2 and m′≡n−k(mod2)m' \equiv n - k \pmod 2, hence m≡m′(mod2)m \equiv m' \pmod 2. Therefore (−1)m=(−1)m′(-1)^m = (-1)^{m'}, so sgn⁡(σ):=(−1)m\operatorname{sgn}(\sigma) := (-1)^m does not depend on which transposition expression was used — it is well-defined — and equals (−1)n−k(-1)^{n-k}. ■\blacksquare

∎
CorollaryMultiplicativity of Sign

For all σ,π∈Sn\sigma, \pi \in S_n, sgn⁡(σπ)=sgn⁡(σ)sgn⁡(π)\operatorname{sgn}(\sigma\pi) = \operatorname{sgn}(\sigma)\operatorname{sgn}(\pi).

Proof

Write σ\sigma as a product of mm transpositions and π\pi as a product of m′m' transpositions (possible by the Corollary above). Concatenating gives an expression of σπ\sigma\pi as a product of m+m′m + m' transpositions. By the Theorem, sgn⁡(σπ)=(−1)m+m′=(−1)m(−1)m′=sgn⁡(σ)sgn⁡(π)\operatorname{sgn}(\sigma\pi) = (-1)^{m+m'} = (-1)^m(-1)^{m'} = \operatorname{sgn}(\sigma)\operatorname{sgn}(\pi), using that sgn⁡\operatorname{sgn} is well-defined regardless of the transposition expression chosen. ■\blacksquare

∎

This multiplicativity is exactly the statement that sgn⁡:Sn→{±1}\operatorname{sgn}: S_n \to \{\pm1\} is a group homomorphism from SnS_n to the multiplicative group {1,−1}\{1,-1\}; its kernel is precisely the Alternating Group AnA_n.

Worked examples

Example 1: A permutation in S9S_9 given in two-line form. Let σ∈S9\sigma \in S_9 be given by

σ=(123456789471529386).\sigma = \begin{pmatrix} 1&2&3&4&5&6&7&8&9 \\ 4&7&1&5&2&9&3&8&6 \end{pmatrix}.

We find its disjoint cycle decomposition by chasing orbits. Start at 11: σ(1)=4\sigma(1) = 4, σ(4)=5\sigma(4) = 5, σ(5)=2\sigma(5) = 2, σ(2)=7\sigma(2) = 7, σ(7)=3\sigma(7) = 3, σ(3)=1\sigma(3) = 1. So one orbit is {1,4,5,2,7,3}\{1,4,5,2,7,3\}, giving the cycle (1 4 5 2 7 3)(1\ 4\ 5\ 2\ 7\ 3), length 66. Remaining points: 6,8,96, 8, 9. Start at 66: σ(6)=9\sigma(6) = 9, σ(9)=6\sigma(9) = 6. So the orbit {6,9}\{6,9\} gives the cycle (6 9)(6\ 9), length 22. Remaining point: 88: σ(8)=8\sigma(8) = 8, a fixed point, giving the 11-cycle (8)(8). So the disjoint decomposition is

σ=(1 4 5 2 7 3)(6 9)(8),\sigma = (1\ 4\ 5\ 2\ 7\ 3)(6\ 9)(8),

with k=3k = 3 cycles (lengths 6,2,16, 2, 1, summing to 9=n9 = n, a good consistency check). By the Theorem,

sgn⁡(σ)=(−1)n−k=(−1)9−3=(−1)6=1,\operatorname{sgn}(\sigma) = (-1)^{n-k} = (-1)^{9-3} = (-1)^6 = 1,

so σ\sigma is even. Let's cross-check by transpositions. Using the identity from the Corollary, (1 4 5 2 7 3)=(1 3)(1 7)(1 2)(1 5)(1 4)(1\ 4\ 5\ 2\ 7\ 3) = (1\,3)(1\,7)(1\,2)(1\,5)(1\,4), which is 55 transpositions (one less than the cycle length 66, as the formula predicts: an rr-cycle needs r−1r - 1 transpositions). The 22-cycle (6 9)(6\,9) is already 11 transposition, and (8)(8) needs 00. Total: 5+1+0=65 + 1 + 0 = 6 transpositions, and indeed 6≡0(mod2)6 \equiv 0 \pmod 2, matching sgn⁡(σ)=(−1)6=1\operatorname{sgn}(\sigma) = (-1)^6 = 1. Both computations agree that σ\sigma is even, confirming the Theorem's consistency on a genuinely asymmetric example.

Example 2: Sign of a product of permutations, verifying multiplicativity. Let n=6n = 6 and take

α=(1 2 3 4 5)∈S6,β=(2 6)(3 5)∈S6.\alpha = (1\ 2\ 3\ 4\ 5) \in S_6, \qquad \beta = (2\ 6)(3\ 5) \in S_6.

First, α\alpha is a single 55-cycle plus the fixed point 66, so its disjoint decomposition has k=2k=2 cycles ((1 2 3 4 5)(1\,2\,3\,4\,5) and (6)(6)), giving sgn⁡(α)=(−1)6−2=(−1)4=1\operatorname{sgn}(\alpha) = (-1)^{6-2} = (-1)^4 = 1. Next, β=(2 6)(3 5)\beta = (2\,6)(3\,5) has disjoint decomposition with k=4k = 4 cycles: (2 6)(2\,6), (3 5)(3\,5), (1)(1), (4)(4) — the four blocks {2,6},{3,5},{1},{4}\{2,6\},\{3,5\},\{1\},\{4\} partition {1,…,6}\{1,\dots,6\}. So sgn⁡(β)=(−1)6−4=(−1)2=1\operatorname{sgn}(\beta) = (-1)^{6-4} = (-1)^2 = 1. Now compute the product γ=αβ\gamma = \alpha\beta (applying β\beta first, then α\alpha, using the standard right-to-left function composition convention). Track each point:

  • 11: β(1)=1\beta(1) = 1, then α(1)=2\alpha(1) = 2. So γ(1)=2\gamma(1) = 2.
  • 22: β(2)=6\beta(2) = 6, then α(6)=6\alpha(6) = 6. So γ(2)=6\gamma(2) = 6.
  • 33: β(3)=5\beta(3) = 5, then α(5)=1\alpha(5) = 1. So γ(3)=1\gamma(3) = 1.
  • 44: β(4)=4\beta(4) = 4, then α(4)=5\alpha(4) = 5. So γ(4)=5\gamma(4) = 5.
  • 55: β(5)=3\beta(5) = 3, then α(3)=4\alpha(3) = 4. So γ(5)=4\gamma(5) = 4.
  • 66: β(6)=2\beta(6) = 2, then α(2)=3\alpha(2) = 3. So γ(6)=3\gamma(6) = 3.

So γ\gamma in two-line form sends 1→2,2→6,3→1,4→5,5→4,6→31\to2, 2\to6, 3\to1, 4\to5, 5\to4, 6\to3. Chase orbits: starting at 11: 1→2→6→3→11 \to 2 \to 6 \to 3 \to 1, a 44-cycle (1 2 6 3)(1\ 2\ 6\ 3). Remaining points 4,54, 5: 4→5→44 \to 5 \to 4, a 22-cycle (4 5)(4\ 5). So

γ=(1 2 6 3)(4 5),\gamma = (1\ 2\ 6\ 3)(4\ 5),

with k=2k = 2 cycles, both nontrivial (lengths 44 and 22, summing to 66). So sgn⁡(γ)=(−1)6−2=(−1)4=1\operatorname{sgn}(\gamma) = (-1)^{6-2} = (-1)^4 = 1. Check multiplicativity: sgn⁡(α)sgn⁡(β)=(1)(1)=1=sgn⁡(γ)\operatorname{sgn}(\alpha)\operatorname{sgn}(\beta) = (1)(1) = 1 = \operatorname{sgn}(\gamma). 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).

CounterexampleWhy disjointness cannot be dropped from the decomposition theorem

The Disjoint Cycle Decomposition Lemma explicitly requires the cycles in the decomposition to be pairwise disjoint (supports partitioning {1,…,n}\{1,\dots,n\}). If we drop this hypothesis and merely ask for some expression of σ\sigma 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 S3S_3 let σ=(1 2 3)\sigma = (1\ 2\ 3). The disjoint decomposition is just the single 33-cycle itself, k=1k=1 cycle, and indeed sgn⁡(σ)=(−1)3−1=1\operatorname{sgn}(\sigma) = (-1)^{3-1} = 1, matching the transposition count (1 3)(1 2)(1\,3)(1\,2), which is 22 transpositions, even, consistent. But now observe that σ\sigma also equals a product of two overlapping (non-disjoint) cycles in more than one way, e.g.

(1 2 3)=(1 2)(2 3)(1 2)(1 3)⋅(1 2)(one of many overlapping factorizations),(1\ 2\ 3) = (1\ 2)(2\ 3)(1\ 2)(1\,3)\cdot(1\ 2) \quad\text{(one of many overlapping factorizations)},

and if we abandon the disjointness requirement and instead just count "how many cycles of length ≥2\ge 2 appear in an arbitrary factorization into cycles," that count is not an invariant at all — we could pad with (1 2)(1 2)=e(1\,2)(1\,2) = e 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 τ=(a b)\tau=(a\,b) 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 σ\sigma" is simply not well-defined — σ\sigma has no canonical "cycle count" to speak of outside the disjoint decomposition — and the formula sgn⁡(σ)=(−1)n−k\operatorname{sgn}(\sigma) = (-1)^{n-k} has no meaning to fall back on. It is only because the disjoint decomposition is unique (proved above) that kk is a legitimate invariant of σ\sigma in the first place, and the entire sign theorem is built on that uniqueness.

Scope, edge cases & common traps

SituationWhat holdsCommon pitfall
σ=e\sigma = e (identity)Disjoint decomposition is nn fixed points, k=nk=n, sgn⁡(e)=(−1)0=1\operatorname{sgn}(e) = (-1)^0 = 1Forgetting to count fixed points as 11-cycles when computing kk
σ\sigma an rr-cycleNeeds exactly r−1r-1 transpositions in the standard factorization; sgn⁡=(−1)r−1\operatorname{sgn} = (-1)^{r-1}Confusing "cycle length" with "number of transpositions"; they differ by 11
σ\sigma a product of jj disjoint transpositionsk=n−2jk = n - 2j nontrivial-or-trivial cycles total is j+(n−2j)=n−jj + (n-2j) = n-j; sgn⁡(σ)=(−1)j\operatorname{sgn}(\sigma) = (-1)^jMiscounting fixed points when 2j<n2j < n
Transposition expressionsNot unique in length, but always agree mod 22Believing "the number of transpositions" is itself an invariant (it is not — only its parity is)
nn variesSign depends on viewing σ\sigma inside a fixed SnS_n; embedding Sn↪Sn+1S_n \hookrightarrow S_{n+1} by adding a fixed point does not change sgn⁡\operatorname{sgn} (since nn and kk both increase by 11)Thinking sign depends on ambient nn 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
AC
Augustin-Louis Cauchy
1789–1857 · Early 19th-century France, École Polytechnique and the Académie des Sciences

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.

History
- 1770–1771: Lagrange studies permutations of the roots of polynomials to understand solvability by radicals, implicitly using ideas of parity in his resolvent constructions.
- 1815: Cauchy publishes systematic treatments of permutations, introducing cycle notation and disjoint cycle decomposition, and studies the sign via inversions.
- 1824: Abel uses permutation-parity ideas implicitly in his proof of the unsolvability of the general quintic by radicals.
- 1832: Galois's manuscripts (published posthumously in 1846) develop group-theoretic ideas that depend crucially on the alternating group and hence on well-defined parity.
- 1870: Camille Jordan's Traité des substitutions systematizes permutation group theory, cementing cycle decomposition and sign as standard tools.
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 σ\sigma acting on {1,…,n}\{1,\dots,n\}, and orbits of an equivalence relation are canonically determined by σ\sigma 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 ττ=e\tau\tau = e 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 m≡n−k(mod2)m \equiv n-k \pmod 2.

Does the sign of a permutation depend on which set {1,…,n}\{1,\dots,n\} it's regarded as acting on?

No, as long as you consistently include fixed points as trivial 11-cycles when computing kk. If σ∈Sn\sigma \in S_n fixes some points and you view it inside Sn+1S_{n+1} by declaring it also fixes the point n+1n+1, then both nn and kk increase by exactly 11 (one more point, one more trivial cycle), so n−kn - k is unchanged and sgn⁡(σ)\operatorname{sgn}(\sigma) 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 nn.

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 kk; then sgn⁡(σ)=(−1)n−k\operatorname{sgn}(\sigma) = (-1)^{n-k}. Equivalently, since an rr-cycle contributes r−1r-1 to the minimum transposition count, you can sum (ℓi−1)(\ell_i - 1) over all nontrivial cycle lengths ℓi\ell_i and take (−1)(-1) raised to that sum — fixed points contribute 00 either way, so they can be ignored entirely for this shortcut. Both routes give the same answer since ∑(ℓi−1)=n−k\sum (\ell_i - 1) = n - k once fixed points are folded in as length-11 cycles contributing zero.

Is a transposition itself always odd?

Yes. A transposition (a b)(a\,b) acting on {1,…,n}\{1,\dots,n\} has disjoint cycle decomposition consisting of the single 22-cycle (a b)(a\,b) together with n−2n-2 trivial fixed points, for a total of k=1+(n−2)=n−1k = 1 + (n-2) = n-1 cycles. So sgn⁡((a b))=(−1)n−(n−1)=(−1)1=−1\operatorname{sgn}((a\,b)) = (-1)^{n-(n-1)} = (-1)^1 = -1. This matches the trivial transposition-count factorization using exactly m=1m=1 transposition (itself), giving (−1)1=−1(-1)^1=-1 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 aa and bb are just two specific points of {1,…,n}\{1,\dots,n\}, and the disjoint cycle decomposition of π\pi partitions all of {1,…,n}\{1,\dots,n\} 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 11's for fixed points), since sgn⁡(σ)=(−1)n−k\operatorname{sgn}(\sigma) = (-1)^{n-k} depends only on nn and the number of cycles kk, 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 SnS_n — 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 SnS_n.

What is the relationship between "number of inversions" and the sign defined here?

An inversion of σ\sigma is a pair i<ji < j with σ(i)>σ(j)\sigma(i) > \sigma(j); 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 n−k  2n - k \bmod 2 as defined here. This inversion-counting approach is Cauchy's original method and gives an alternative, purely combinatorial way to compute sgn⁡(σ)\operatorname{sgn}(\sigma) without ever finding the disjoint cycle decomposition, though the two methods are proven to agree.

Before this

Where this leads