Symmetric Groups and Permutation Notation

How many ways can you shuffle a deck of five cards? How do you write down and combine those shuffles without getting lost? This question forces us to study bijections from a finite set to itself. It also forces us to build a notation robust enough to compose them correctly and quickly. The symmetric group SnS_n is the set of all bijections from {1,…,n}\{1,\dots,n\} to itself under composition. It is the universal home for finite symmetry. Every finite group embeds inside some SnS_n. This fact makes permutations the concrete skeleton underlying all of finite group theory. The subject matters because permutations are simultaneously the simplest and the most universal examples of groups. They are simple because a permutation is just a rearrangement. It is an object anyone can picture as arrows from dots to dots. They are universal because Cayley's theorem shows something remarkable. Abstract groups, however exotic their definition, are always secretly groups of permutations. Mastering the two standard notations for permutations is therefore essential. These are one-line notation and cycle notation. The algorithm for composing them is a prerequisite for essentially everything downstream in algebra. Parity and the alternating group, group actions, Sylow theory, and the classification of small groups all lean on fluent permutation arithmetic. The big picture is that SnS_n is a finite group of order n!n!. It is non-abelian for n≥3n \ge 3. It is rich enough to contain a copy of every group of order dividing into it in a suitable sense. Its elements can be displayed in a table (one-line notation, listing images). They can also be factored into disjoint cycles (cycle notation, exposing the geometric structure of a shuffle as a union of rotating orbits). These two notations are related by an explicit dictionary. Composition — the group operation — has a clean algorithmic description in each. This article gives the precise definition of SnS_n as a group. It develops one-line and cycle notation rigorously. It proves the fundamental theorem that every permutation factors uniquely (up to reordering) into disjoint cycles. It works through the composition rules with fully worked, asymmetric examples. It closes by placing SnS_n in its wider mathematical context. It previews the notions of parity and dihedral symmetry that build on this foundation.

Key takeaways
  • SnS_n is the set of all bijections {1,…,n}→{1,…,n}\{1,\dots,n\}\to\{1,\dots,n\}, with composition as the operation; it is a group of order n!n!.
  • One-line notation records a permutation as the sequence of images σ(1)σ(2)⋯σ(n)\sigma(1)\sigma(2)\cdots\sigma(n); composition is read right-to-left as function composition.
  • Cycle notation writes a permutation as a product of disjoint cycles, each cycle recording one orbit of the map.
  • Every permutation decomposes into disjoint cycles, and this decomposition is unique up to the order of the cycles and the starting point within each cycle.
  • SnS_n is non-abelian for n≥3n \ge 3: composition order matters, a fact easy to check with explicit 33-cycles.
  • Key idea: a permutation is a bijection of a finite set, and its disjoint-cycle factorization is the "prime factorization" that reveals its structure at a glance.

Where this lives today

Symmetric groups are the combinatorial backbone of algebra: Cayley's theorem shows every finite group of order nn embeds as a subgroup of SnS_n, so understanding SnS_n well is a step toward understanding all finite groups. In Galois theory, the Galois group of a polynomial's splitting field is (isomorphic to) a subgroup of SnS_n acting on the nn roots, and the insolvability of the general quintic follows from properties of S5S_5. In representation theory and combinatorics, the representation theory of SnS_n underlies the theory of Young tableaux, symmetric functions, and Schur–Weyl duality, with applications to invariant theory and quantum physics. In computer science, permutations and their composition appear throughout sorting algorithm analysis, cryptographic S-boxes and permutation ciphers, and the design of parallel and interconnection networks whose routing is modeled by elements of SnS_n. In statistics, permutation tests (a form of nonparametric hypothesis testing) rely on enumerating or sampling from SnS_n to build a null distribution by relabeling data. In physics, the symmetric group governs the statistics of identical particles: the (anti)symmetrization of quantum wavefunctions under SnS_n acting on particle labels distinguishes bosons from fermions. In chemistry and crystallography, permutation-inversion groups (extending symmetric group ideas) classify the symmetries of molecules with indistinguishable nuclei. Finally, this article's cycle decomposition is the direct stepping stone to computing the sign (parity) of a permutation and to defining the dihedral group DnD_n as a specific subgroup of SnS_n generated by a rotation and a reflection.

:::quiz[In one-line notation, if σ=(2 3 1 4)\sigma = (2\ 3\ 1\ 4) on [4][4] (so σ(1)=2,σ(2)=3,σ(3)=1,σ(4)=4\sigma(1)=2,\sigma(2)=3,\sigma(3)=1,\sigma(4)=4), what is σ(σ(1))\sigma(\sigma(1))?]

  • 1
  • 2
  • 3 ✓
  • 4

Ask the tutor: How does the disjoint cycle decomposition let us compute the sign (parity) of a permutation?

DefinitionThe symmetric group SnS_n

Let nn be a positive integer and let [n]={1,2,…,n}[n] = \{1, 2, \dots, n\}. The symmetric group on nn letters, denoted SnS_n, is the set of all bijections (permutations)

σ:[n]→[n],\sigma : [n] \to [n],

equipped with the binary operation of function composition: for σ,τ∈Sn\sigma, \tau \in S_n, the product στ\sigma\tau is the function defined by

(στ)(i)=σ(τ(i)),i∈[n].(\sigma\tau)(i) = \sigma(\tau(i)), \qquad i \in [n].

Notation conventions. One-line notation. A permutation σ∈Sn\sigma \in S_n is written as the sequence

σ=(σ(1) σ(2) ⋯ σ(n)),\sigma = \big(\sigma(1)\ \sigma(2)\ \cdots\ \sigma(n)\big),

i.e. the list of images of 1,2,…,n1, 2, \dots, n in order, read left to right. Cycle notation. For distinct elements a1,a2,…,ak∈[n]a_1, a_2, \dots, a_k \in [n], the symbol (a1 a2 ⋯ ak)(a_1\ a_2\ \cdots\ a_k) denotes the permutation sending

a1↦a2↦a3↦⋯↦ak↦a1,a_1 \mapsto a_2 \mapsto a_3 \mapsto \cdots \mapsto a_k \mapsto a_1,

and fixing every element of [n][n] not among a1,…,aka_1,\dots,a_k. Such a permutation is called a kk-cycle, and kk is its length. A 11-cycle (a)(a) is the identity map fixing aa (and, together with the convention that omitted points are fixed, all 11-cycles denote the identity of SnS_n). Two cycles are disjoint if the sets of symbols they move are disjoint.

Intuition

Think of nn labeled boxes in a row and nn balls, one per box. A permutation σ\sigma describes a new arrangement: the ball that was in box ii moves to box σ(i)\sigma(i) — or, depending on convention, box ii now holds the ball originally in box σ(i)\sigma(i). Either reading is legitimate as long as it is used consistently; this article adopts the function convention: σ(i)\sigma(i) is "where ii goes," and στ\sigma\tau means "first apply τ\tau, then apply σ\sigma," exactly as with ordinary function composition f∘gf\circ g. One-line notation is a snapshot: it tells you instantly where every point lands, but it hides structure. Cycle notation is an X-ray: it groups points into closed loops — orbits under repeated application of σ\sigma — and within each loop shows the cyclic order in which points chase each other. A permutation with several disjoint cycles is really several independent smaller shuffles happening in parallel, one per orbit, plus a possibly large set of fixed points (which are simply omitted from cycle notation, or listed as 11-cycles when full bookkeeping is wanted). The composition rule is where beginners stumble: composing permutations given in cycle notation requires tracking each point individually through both cycles, working from the rightmost cycle to the leftmost, exactly as with function composition (στ)(i)=σ(τ(i))(\sigma\tau)(i) = \sigma(\tau(i)).

Figure
A 5-cycle: the permutation (1 3 5 2 4)(1\ 3\ 5\ 2\ 4) as a directed loop on five points
1 3 5 2 4 σ = (1 3 5 2 4): each arrow is 1↦3, 3↦5, 5↦2, 2↦4, 4↦1

Central results

TheoremSnS_n is a group of order n!n!

For every positive integer nn, the set SnS_n of bijections [n]→[n][n] \to [n], under composition, satisfies the group axioms: composition is a well-defined closed binary operation, it is associative, there is an identity element, and every element has an inverse. Moreover ∣Sn∣=n!|S_n| = n!.

Proof

We verify each axiom directly from the definition of SnS_n as a set of bijections, using proof by direct construction/verification.

Closure. If σ,τ:[n]→[n]\sigma, \tau : [n] \to [n] are bijections, then so is στ:=σ∘τ\sigma\tau := \sigma \circ \tau. Indeed, the composition of two injective functions is injective: if (στ)(i)=(στ)(j)(\sigma\tau)(i) = (\sigma\tau)(j), then σ(τ(i))=σ(τ(j))\sigma(\tau(i)) = \sigma(\tau(j)), and injectivity of σ\sigma gives τ(i)=τ(j)\tau(i) = \tau(j), and then injectivity of τ\tau gives i=ji = j. The composition of two surjective functions on a finite set is surjective: since σ\sigma and τ\tau are bijections on a set with the same finite domain and codomain, injectivity already forces surjectivity (a finite set cannot inject properly into itself), so στ\sigma\tau is a bijection [n]→[n][n]\to[n], i.e. στ∈Sn\sigma\tau \in S_n.

Associativity. For any functions σ,τ,ρ:[n]→[n]\sigma, \tau, \rho : [n] \to [n] and any i∈[n]i \in [n],

((στ)ρ)(i)=(στ)(ρ(i))=σ(τ(ρ(i)))=σ((τρ)(i))=(σ(τρ))(i).\big((\sigma\tau)\rho\big)(i) = (\sigma\tau)(\rho(i)) = \sigma\big(\tau(\rho(i))\big) = \sigma\big((\tau\rho)(i)\big) = \big(\sigma(\tau\rho)\big)(i).

Since this holds for every i∈[n]i \in [n], the functions (στ)ρ(\sigma\tau)\rho and σ(τρ)\sigma(\tau\rho) are equal. This is simply associativity of function composition in general, which holds regardless of bijectivity.

Identity. Let e:[n]→[n]e : [n] \to [n] be the identity map, e(i)=ie(i) = i for all ii. Then ee is trivially a bijection, so e∈Sne \in S_n, and for every σ∈Sn\sigma \in S_n and every ii,

(σe)(i)=σ(e(i))=σ(i),(eσ)(i)=e(σ(i))=σ(i),(\sigma e)(i) = \sigma(e(i)) = \sigma(i), \qquad (e\sigma)(i) = e(\sigma(i)) = \sigma(i),

so σe=eσ=σ\sigma e = e \sigma = \sigma. Thus ee is a two-sided identity.

Inverses. Since σ\sigma is a bijection [n]→[n][n] \to [n], it has a set-theoretic inverse function σ−1:[n]→[n]\sigma^{-1} : [n] \to [n] defined by: σ−1(j)\sigma^{-1}(j) is the unique i∈[n]i \in [n] with σ(i)=j\sigma(i) = j (existence and uniqueness of such ii follow from surjectivity and injectivity of σ\sigma respectively). The function σ−1\sigma^{-1} is itself a bijection (its inverse is σ\sigma), so σ−1∈Sn\sigma^{-1} \in S_n. By construction, for all ii,

(σ−1σ)(i)=σ−1(σ(i))=i=e(i),(σσ−1)(j)=σ(σ−1(j))=j=e(j),(\sigma^{-1}\sigma)(i) = \sigma^{-1}(\sigma(i)) = i = e(i), \qquad (\sigma\sigma^{-1})(j) = \sigma(\sigma^{-1}(j)) = j = e(j),

so σ−1σ=σσ−1=e\sigma^{-1}\sigma = \sigma\sigma^{-1} = e. All four axioms hold, so (Sn,∘)(S_n, \circ) is a group.

Order count. We count bijections [n]→[n][n] \to [n] directly. A bijection σ\sigma is determined by choosing σ(1)\sigma(1), then σ(2)\sigma(2), and so on, subject to all values being distinct (this is exactly what injectivity on a finite set of equal domain/codomain size requires, and by the argument above such an injective assignment is automatically a bijection). There are nn choices for σ(1)\sigma(1); having chosen σ(1),…,σ(k−1)\sigma(1), \dots, \sigma(k-1) as k−1k-1 distinct values, there remain n−(k−1)n - (k-1) available values for σ(k)\sigma(k) so that all images stay distinct. By the multiplication principle, the total number of such sequences of choices is

n⋅(n−1)⋅(n−2)⋯2⋅1=n!.n \cdot (n-1) \cdot (n-2) \cdots 2 \cdot 1 = n!.

Each such sequence of choices corresponds to exactly one bijection and every bijection arises from exactly one such sequence, so ∣Sn∣=n!|S_n| = n!. ■\blacksquare

∎
LemmaDisjoint cycles commute

If α=(a1 ⋯ ak)\alpha = (a_1\ \cdots\ a_k) and β=(b1 ⋯ bm)\beta = (b_1\ \cdots\ b_m) are disjoint cycles in SnS_n (no aia_i equals any bjb_j), then αβ=βα\alpha\beta = \beta\alpha.

Proof

We check the two sides agree on every point of [n][n] (proof by case analysis on where a point can lie). Let x∈[n]x \in [n]. There are three mutually exclusive cases, since {a1,…,ak}\{a_1,\dots,a_k\} and {b1,…,bm}\{b_1,\dots,b_m\} are disjoint. Case 1: x=aix = a_i for some ii. Then β\beta fixes xx (as x∉{b1,…,bm}x \notin \{b_1,\dots,b_m\}), so (αβ)(x)=α(β(x))=α(x)(\alpha\beta)(x) = \alpha(\beta(x)) = \alpha(x), and α(x)=ai+1\alpha(x) = a_{i+1} (indices mod kk, so ak+1:=a1a_{k+1} := a_1) again lies among the aa's, hence is fixed by β\beta. For the other order, α\alpha fixes xx only if x∉{a1,…,ak}x \notin \{a_1,\dots,a_k\}, which is false here — instead we compute (βα)(x)=β(α(x))(\beta\alpha)(x) = \beta(\alpha(x)); since α(x)=ai+1∉{b1,…,bm}\alpha(x) = a_{i+1} \notin \{b_1,\dots,b_m\}, β\beta fixes it, giving β(α(x))=ai+1\beta(\alpha(x)) = a_{i+1}. Both sides equal ai+1a_{i+1}. Case 2: x=bjx = b_j for some jj. Symmetric to Case 1 with the roles of α,β\alpha, \beta exchanged: both (αβ)(x)(\alpha\beta)(x) and (βα)(x)(\beta\alpha)(x) equal bj+1b_{j+1} (indices mod mm). Case 3: xx is fixed by both α\alpha and β\beta. Then (αβ)(x)=α(β(x))=α(x)=x(\alpha\beta)(x) = \alpha(\beta(x)) = \alpha(x) = x and (βα)(x)=β(α(x))=β(x)=x(\beta\alpha)(x) = \beta(\alpha(x)) = \beta(x) = x. In every case (αβ)(x)=(βα)(x)(\alpha\beta)(x) = (\beta\alpha)(x), so αβ=βα\alpha\beta = \beta\alpha as functions on [n][n]. ■\blacksquare

∎
TheoremDisjoint cycle decomposition

Every permutation σ∈Sn\sigma \in S_n can be written as a product of pairwise disjoint cycles,

σ=γ1γ2⋯γr,\sigma = \gamma_1 \gamma_2 \cdots \gamma_r,

where each γi\gamma_i is a cycle and any two are disjoint (points fixed by σ\sigma may be omitted, or included as trivial 11-cycles). This decomposition is unique up to reordering the factors γ1,…,γr\gamma_1,\dots,\gamma_r and up to the choice of starting point used to write each cycle.

Proof

We use the orbit structure of σ\sigma acting on [n][n]; the technique is a direct construction followed by a uniqueness argument via equivalence classes.

Existence. Define a relation on [n][n] by x∼yx \sim y iff y=σk(x)y = \sigma^k(x) for some integer k∈Zk \in \mathbb{Z} (where σk\sigma^k denotes σ\sigma composed with itself kk times, σ0=e\sigma^0 = e, and σ−k=(σ−1)k\sigma^{-k} = (\sigma^{-1})^k). This is an equivalence relation: reflexivity holds via k=0k=0; symmetry holds since y=σk(x)⇒x=σ−k(y)y = \sigma^k(x) \Rightarrow x = \sigma^{-k}(y); transitivity holds since y=σk(x),z=σm(y)⇒z=σm+k(x)y=\sigma^k(x), z = \sigma^m(y) \Rightarrow z = \sigma^{m+k}(x). Call the equivalence classes the orbits of σ\sigma; since [n][n] is finite, there are finitely many orbits, say O1,…,OrO_1, \dots, O_r, partitioning [n][n]. Fix an orbit OiO_i and pick any a∈Oia \in O_i. Consider the sequence a,σ(a),σ2(a),…a, \sigma(a), \sigma^2(a), \dots. Since [n][n] is finite, this sequence must repeat: there exist 0≤p<q0 \le p < q with σp(a)=σq(a)\sigma^p(a) = \sigma^q(a). Applying σ−p\sigma^{-p} (which exists since σ\sigma is invertible) gives a=σq−p(a)a = \sigma^{q-p}(a). Let ℓ≥1\ell \ge 1 be the smallest positive integer with σℓ(a)=a\sigma^\ell(a) = a (such ℓ\ell exists by the previous sentence and the well-ordering principle). We claim a,σ(a),…,σℓ−1(a)a, \sigma(a), \dots, \sigma^{\ell - 1}(a) are pairwise distinct: if σs(a)=σt(a)\sigma^s(a) = \sigma^t(a) for 0≤s<t≤ℓ−10 \le s < t \le \ell - 1, applying σ−s\sigma^{-s} gives a=σt−s(a)a = \sigma^{t-s}(a) with 0<t−s<ℓ0 < t - s < \ell, contradicting minimality of ℓ\ell. Moreover every element of the orbit OiO_i has this form: if y=σk(a)y = \sigma^k(a), write k=qℓ+sk = q\ell + s with 0≤s<ℓ0 \le s < \ell (division algorithm), then y=σqℓ+s(a)=σs((σℓ)q(a))=σs(a)y = \sigma^{q\ell + s}(a) = \sigma^s\big((\sigma^\ell)^q(a)\big) = \sigma^s(a) since σℓ(a)=a\sigma^\ell(a) = a implies (σℓ)q(a)=a(\sigma^\ell)^q(a) = a by induction on qq. Hence

Oi={a,σ(a),σ2(a),…,σℓ−1(a)},O_i = \{a, \sigma(a), \sigma^2(a), \dots, \sigma^{\ell-1}(a)\},

a set of exactly ℓ\ell distinct elements, and σ\sigma acts on OiO_i exactly as the cycle γi:=(a  σ(a)  σ2(a) ⋯ σℓ−1(a))\gamma_i := (a\ \ \sigma(a)\ \ \sigma^2(a)\ \cdots\ \sigma^{\ell-1}(a)) acts, while fixing every point outside OiO_i. Since the orbits O1,…,OrO_1,\dots,O_r partition [n][n], the corresponding cycles γ1,…,γr\gamma_1,\dots,\gamma_r are pairwise disjoint (they move disjoint sets of symbols), and for every x∈[n]x \in [n], xx lies in exactly one orbit OiO_i, on which σ\sigma and γi\gamma_i agree, while all other γj\gamma_j (j≠ij \ne i) fix xx. Hence

σ(x)=γi(x)=(γ1γ2⋯γr)(x)\sigma(x) = \gamma_i(x) = (\gamma_1 \gamma_2 \cdots \gamma_r)(x)

for every xx (using that disjoint cycles commute and fix each other's moved points, Lemma above), so σ=γ1γ2⋯γr\sigma = \gamma_1 \gamma_2 \cdots \gamma_r.

Uniqueness. Suppose σ=δ1⋯δs\sigma = \delta_1 \cdots \delta_s is any expression of σ\sigma as a product of pairwise disjoint nontrivial cycles. We show the multiset of cycles {δ1,…,δs}\{\delta_1,\dots,\delta_s\} must coincide with {γ1,…,γr}\{\gamma_1,\dots,\gamma_r\} (as sets of symbols moved, with the internal cyclic order determined). Since the δj\delta_j are pairwise disjoint, for a point xx moved by δj\delta_j (i.e. δj(x)≠x\delta_j(x) \ne x), every other factor δj′\delta_{j'} (j′≠jj' \ne j) fixes xx, so

σ(x)=δj(x),σ2(x)=δj(δj(x))=δj2(x),\sigma(x) = \delta_j(x), \qquad \sigma^2(x) = \delta_j(\delta_j(x)) = \delta_j^2(x),

and inductively σk(x)=δjk(x)\sigma^k(x) = \delta_j^k(x) for all k≥0k \ge 0. Thus the orbit of xx under repeated application of σ\sigma coincides exactly with the orbit of xx under δj\delta_j, which is precisely the set of symbols moved by δj\delta_j together with xx's trajectory around that cycle. This orbit is, by definition, one of the σ\sigma-orbits OiO_i constructed above, and the cyclic order in which δj\delta_j moves its points must match x,σ(x),σ2(x),…x, \sigma(x), \sigma^2(x), \dots, which is exactly the cyclic order recorded in γi\gamma_i. Hence δj\delta_j equals γi\gamma_i as a cycle (same set of moved points, same cyclic pattern, possibly written starting from a different symbol — but a cycle (a1 ⋯ aℓ)(a_1\,\cdots\,a_\ell) and (a2 ⋯ aℓ a1)(a_2\,\cdots\,a_\ell\,a_1) denote the identical function, so this is not a genuine ambiguity). Every nontrivial factor δj\delta_j therefore matches some γi\gamma_i, every γi\gamma_i arises this way (taking x∈Oix \in O_i with ∣Oi∣>1|O_i|>1), and distinct δj\delta_j's correspond to distinct γi\gamma_i's since their moved-point sets are disjoint and partition the non-fixed points of σ\sigma. Hence {δ1,…,δs}={γ1,…,γr}\{\delta_1,\dots,\delta_s\} = \{\gamma_1,\dots,\gamma_r\} as sets of cycles, i.e. the decomposition is unique up to the order of the factors and the starting symbol chosen within each cycle. ■\blacksquare

∎

Worked examples

Example 1 (composing in one-line notation, then converting to cycles). Let n=6n = 6 and let σ,τ∈S6\sigma, \tau \in S_6 be given in one-line notation by

σ=(2 4 1 6 3 5),τ=(3 1 5 2 6 4),\sigma = (2\ 4\ 1\ 6\ 3\ 5), \qquad \tau = (3\ 1\ 5\ 2\ 6\ 4),

meaning σ(1)=2,σ(2)=4,σ(3)=1,σ(4)=6,σ(5)=3,σ(6)=5\sigma(1)=2,\sigma(2)=4,\sigma(3)=1,\sigma(4)=6,\sigma(5)=3,\sigma(6)=5, and τ(1)=3,τ(2)=1,τ(3)=5,τ(4)=2,τ(5)=6,τ(6)=4\tau(1)=3,\tau(2)=1,\tau(3)=5,\tau(4)=2,\tau(5)=6,\tau(6)=4. We compute στ\sigma\tau, meaning "apply τ\tau first, then σ\sigma," using (στ)(i)=σ(τ(i))(\sigma\tau)(i) = \sigma(\tau(i)):

(στ)(1)=σ(τ(1))=σ(3)=1(\sigma\tau)(1) = \sigma(\tau(1)) = \sigma(3) = 1
(στ)(2)=σ(τ(2))=σ(1)=2(\sigma\tau)(2) = \sigma(\tau(2)) = \sigma(1) = 2
(στ)(3)=σ(τ(3))=σ(5)=3(\sigma\tau)(3) = \sigma(\tau(3)) = \sigma(5) = 3
(στ)(4)=σ(τ(4))=σ(2)=4(\sigma\tau)(4) = \sigma(\tau(4)) = \sigma(2) = 4
(στ)(5)=σ(τ(5))=σ(6)=5(\sigma\tau)(5) = \sigma(\tau(5)) = \sigma(6) = 5
(στ)(6)=σ(τ(6))=σ(4)=6(\sigma\tau)(6) = \sigma(\tau(6)) = \sigma(4) = 6

So στ=(1 2 3 4 5 6)\sigma\tau = (1\ 2\ 3\ 4\ 5\ 6) in one-line notation — this is the identity permutation. (Indeed one can check directly that τ=σ−1\tau = \sigma^{-1}: σ(1)=2⇒τ(2)=1\sigma(1)=2 \Rightarrow \tau(2)=1 ✓, σ(2)=4⇒τ(4)=2\sigma(2)=4\Rightarrow\tau(4)=2 ✓, and so on for all six values, confirming τ=σ−1\tau = \sigma^{-1}, which explains why στ=e\sigma\tau = e.) Now compute the other order, τσ\tau\sigma, to see that it also equals the identity (as it must, since στ=e\sigma\tau = e forces τ=σ−1\tau = \sigma^{-1} and hence τσ=σ−1σ=e\tau\sigma = \sigma^{-1}\sigma = e too — a good consistency check):

(τσ)(1)=τ(σ(1))=τ(2)=1,(τσ)(2)=τ(4)=2,(τσ)(3)=τ(1)=3,(\tau\sigma)(1) = \tau(\sigma(1)) = \tau(2) = 1, \quad (\tau\sigma)(2) = \tau(4) = 2, \quad (\tau\sigma)(3) = \tau(1) = 3,
(τσ)(4)=τ(6)=4,(τσ)(5)=τ(3)=5,(τσ)(6)=τ(5)=6.(\tau\sigma)(4) = \tau(6) = 4, \quad (\tau\sigma)(5) = \tau(3) = 5, \quad (\tau\sigma)(6) = \tau(5) = 6.

Confirmed: τσ=e\tau\sigma = e as well, consistent with τ=σ−1\tau = \sigma^{-1}. Finally, express σ\sigma itself in disjoint cycle notation by tracing orbits. Start at 11: σ(1)=2,σ(2)=4,σ(4)=6,σ(6)=5,σ(5)=3,σ(3)=1\sigma(1) = 2, \sigma(2) = 4, \sigma(4) = 6, \sigma(6) = 5, \sigma(5) = 3, \sigma(3) = 1. This closes a single 66-cycle using all of [6][6]:

σ=(1 2 4 6 5 3).\sigma = (1\ 2\ 4\ 6\ 5\ 3).

As a check, σ\sigma being a single 66-cycle means σ6=e\sigma^6 = e and no smaller power is the identity; this matches the fact that σ\sigma has one orbit of size 66.

Example 2 (composing cycle notation directly, with overlapping supports and non-commuting factors). Work in S7S_7 with

α=(1 3 7 2),β=(2 5 3)(6 7),\alpha = (1\ 3\ 7\ 2), \qquad \beta = (2\ 5\ 3)(6\ 7),

where α\alpha is a 44-cycle and β\beta is a product of a 33-cycle and a disjoint transposition; the point 44 is fixed by both. We compute αβ\alpha\beta (apply β\beta first, then α\alpha) by tracking each of 1,…,71,\dots,7 individually, reading right to left.

  • 11: β\beta fixes 11 (not listed), so β(1)=1\beta(1) = 1; then α(1)=3\alpha(1) = 3. So (αβ)(1)=3(\alpha\beta)(1) = 3.
  • 22: β(2)=5\beta(2) = 5 (from the 33-cycle (2 5 3)(2\ 5\ 3)); then α(5)=5\alpha(5) = 5 (α\alpha fixes 55, not among its symbols). So (αβ)(2)=5(\alpha\beta)(2) = 5.
  • 33: β(3)=2\beta(3) = 2 (closing the 33-cycle); then α(2)=1\alpha(2) = 1. So (αβ)(3)=1(\alpha\beta)(3) = 1.
  • 44: β(4)=4\beta(4) = 4; α(4)=4\alpha(4) = 4. So (αβ)(4)=4(\alpha\beta)(4) = 4.
  • 55: β(5)=3\beta(5) = 3; then α(3)=7\alpha(3) = 7. So (αβ)(5)=7(\alpha\beta)(5) = 7.
  • 66: β(6)=7\beta(6) = 7; then α(7)=2\alpha(7) = 2. So (αβ)(6)=2(\alpha\beta)(6) = 2.
  • 77: β(7)=6\beta(7) = 6; then α(6)=6\alpha(6) = 6 (α\alpha fixes 66). So (αβ)(7)=6(\alpha\beta)(7) = 6.

Collecting these: (αβ)(\alpha\beta) sends 1→3,2→5,3→1,4→4,5→7,6→2,7→61\to3, 2\to5, 3\to1, 4\to4, 5\to7, 6\to2, 7\to6. In one-line notation on [7][7] this is

αβ=(3 5 1 4 7 2 6).\alpha\beta = (3\ 5\ 1\ 4\ 7\ 2\ 6).

To express αβ\alpha\beta in disjoint cycle form, trace orbits: start at 1→3→11 \to 3 \to 1, closing a 22-cycle (1 3)(1\ 3). Next unused point 22: 2→5→7→6→22 \to 5 \to 7 \to 6 \to 2, closing a 44-cycle (2 5 7 6)(2\ 5\ 7\ 6). Point 44 is fixed. All 77 points are accounted for (2+4+1=72 + 4 + 1 = 7), so

αβ=(1 3)(2 5 7 6),\alpha\beta = (1\ 3)(2\ 5\ 7\ 6),

consistent with the disjoint cycle decomposition theorem above: this is a product of two disjoint cycles, unique up to reordering and rotation. For contrast, compute βα\beta\alpha (apply α\alpha first, then β\beta) at just one point to see non-commutativity: (βα)(1)=β(α(1))=β(3)=2(\beta\alpha)(1) = \beta(\alpha(1)) = \beta(3) = 2, whereas (αβ)(1)=3(\alpha\beta)(1) = 3 was computed above. Since 2≠32 \ne 3, we conclude βα≠αβ\beta\alpha \ne \alpha\beta, exhibiting concretely that S7S_7 (and SnS_n for all n≥3n \ge 3) is non-abelian.

Counterexamplewhy finiteness of the domain cannot be dropped

The theorem that SnS_n has order n!n!, and more basically the argument that injective self-maps of [n][n] are automatically surjective, depends essentially on [n][n] being finite. Consider instead X=Z≥0={0,1,2,… }X = \mathbb{Z}_{\ge 0} = \{0, 1, 2, \dots\}, an infinite set, and define the "successor" map

f:X→X,f(k)=k+1.f : X \to X, \qquad f(k) = k + 1.

Then ff is injective: if f(k)=f(m)f(k) = f(m) then k+1=m+1k+1=m+1 so k=mk=m. But ff is not surjective: 00 is never hit, since f(k)=k+1≥1f(k) = k+1 \ge 1 for all k≥0k \ge 0. So ff is an injective self-map of XX that is not a bijection, hence f∉Sym⁡(X)f \notin \operatorname{Sym}(X) at all (it is not even in the candidate set of permutations), even though the analogous injectivity argument used in the proof above (that composites of injections are injections) still applies to ff verbatim. More to the point for the group axioms themselves: consider the set Inj⁡(X)\operatorname{Inj}(X) of all injective self-maps of an infinite set XX, with composition. This set is closed under composition and associative, and contains the identity, but it is not a group, because ff above has no inverse function defined on all of XX: there is no g:X→Xg : X \to X with f(g(0))=0f(g(0)) = 0, since 00 is not in the image of ff. This shows that dropping finiteness (equivalently, dropping bijectivity as the defining property and settling for injectivity, which coincide only in the finite setting) breaks the existence of inverses, and Sym⁡(X)\operatorname{Sym}(X) for infinite XX must be defined directly as bijections — not merely injections — to remain a group. It also shows why the order formula ∣Sn∣=n!|S_n| = n!, which crucially used "injective ⇒\Rightarrow surjective on a finite set," has no naive analogue for infinite XX.

Scope, edge cases & common traps

SituationWhat to watch for
n=1n = 1S1={e}S_1 = \{e\}, the trivial group; there is exactly one permutation.
n=2n = 2S2={e,(1 2)}≅Z/2ZS_2 = \{e, (1\ 2)\} \cong \mathbb{Z}/2\mathbb{Z}, abelian.
n≥3n \ge 3SnS_n is non-abelian; e.g. in S3S_3, (1 2)(1 3)≠(1 3)(1 2)(1\ 2)(1\ 3) \ne (1\ 3)(1\ 2).
Reading order of compositionστ\sigma\tau means "τ\tau first, then σ\sigma" under the function-composition convention used here; some texts use the opposite ("left-to-right") convention — always state which is in force.
Cycle notation ambiguity(a1 a2 ⋯ ak)(a_1\,a_2\,\cdots\,a_k) and any cyclic rotation of it (e.g. (a2 a3 ⋯ ak a1)(a_2\,a_3\,\cdots\,a_k\,a_1)) denote the same function; this is not a violation of uniqueness in the decomposition theorem.
Fixed points in cycle notationPoints fixed by σ\sigma are conventionally omitted from cycle notation; omitting them does not change the permutation, but be careful when comparing cycle notations across different ambient SnS_n's (e.g. (1 2)∈S3(1\ 2) \in S_3 vs. (1 2)∈S5(1\ 2) \in S_5 are different functions on different sets, though often identified).
Non-disjoint cyclesThe commuting lemma requires disjointness; two overlapping cycles like (1 2 3)(1\ 2\ 3) and (2 3 4)(2\ 3\ 4) generally do not commute.

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 Sorbonne

Cauchy was one of the most prolific mathematicians in history, laying rigorous foundations for real and complex analysis while also producing the first systematic study of permutations as algebraic objects. In a series of papers from the 1810s to 1840s, Cauchy introduced and popularized cycle notation, studied the composition of permutations as a genuine algebraic operation, and proved foundational facts about the structure of SnS_n, including results on the parity of permutations that anticipate the notion of the alternating group. His work on permutation groups, alongside the slightly later contributions of Cayley, effectively founded the theory of finite groups as an independent subject, decades before the abstract group axioms were isolated.

History
- 1770–1771: Lagrange studies permutations of the roots of polynomial equations, an early precursor to group-theoretic ideas, in his work on the solvability of equations.
- 1815: Cauchy publishes a memoir systematically introducing cycle notation and studying permutation composition and parity.
- 1830s–1832: Galois develops the notion of a group of permutations (though not yet the modern abstract axioms) to resolve the insolvability of the general quintic by radicals.
- 1854: Cayley gives an abstract definition of a group and states what is now called Cayley's theorem, that every group embeds into a symmetric group.
- 1870s–1880s: Jordan and others consolidate the theory of permutation groups, setting the stage for the modern axiomatic treatment of finite groups.
Why does στ\sigma\tau mean "apply τ\tau first" instead of "apply σ\sigma first"?

This is purely a notational convention inherited from ordinary function composition, where (f∘g)(x)=f(g(x))(f\circ g)(x) = f(g(x)) means gg acts first. Since permutations are functions, writing στ\sigma\tau as shorthand for σ∘τ\sigma \circ \tau naturally carries the same right-to-left reading. Some algebra texts, especially those emphasizing group actions on the right, instead define στ\sigma\tau to mean "apply σ\sigma first, then τ\tau," which reverses every composition. Neither convention is more "correct"; what matters is fixing one at the start of a computation and applying it consistently, since mixing conventions mid-calculation is the single most common source of sign or order errors in permutation arithmetic.

Is SnS_n ever abelian for n≥3n \ge 3?

No. For n≥3n \ge 3, SnS_n is always non-abelian, and this can be checked with a single explicit example inside any SnS_n with n≥3n\ge 3: take σ=(1 2)\sigma = (1\ 2) and τ=(1 3)\tau = (1\ 3), then στ=(1 3 2)\sigma\tau = (1\ 3\ 2) while τσ=(1 2 3)\tau\sigma = (1\ 2\ 3), and these are different 33-cycles (they send 11 to different places: 33 versus 22). Since SnS_n for n≥3n\ge3 contains this non-commuting pair as a subset acting on just three of its nn points (fixing the rest), non-commutativity persists for every n≥3n \ge 3. In contrast S1S_1 and S2S_2 are abelian, having order 11 and 22 respectively.

How do I convert quickly between one-line and cycle notation?

From one-line to cycle notation: pick the smallest unused point aa, follow a→σ(a)→σ(σ(a))→⋯a \to \sigma(a) \to \sigma(\sigma(a)) \to \cdots until you return to aa, writing down this loop as a cycle, then repeat with the smallest remaining unused point until every point of [n][n] has been placed in some cycle (points that map to themselves become 11-cycles, usually omitted). From cycle notation to one-line notation: for each ii from 11 to nn, scan the cycle expression to find which cycle (if any) contains ii and read off its image there; if ii appears in no cycle, its image is ii itself. Both directions are mechanical and take O(n)O(n) time to execute by hand for reasonably small nn.

Does the disjoint cycle decomposition give the order of a permutation directly?

Yes, and this is one of its most useful consequences (a preview of a fact proved fully alongside Cycle Decomposition and Parity). If σ=γ1γ2⋯γr\sigma = \gamma_1 \gamma_2 \cdots \gamma_r is the disjoint cycle decomposition with γi\gamma_i of length ℓi\ell_i, then because disjoint cycles commute and act independently on disjoint sets, σk=γ1kγ2k⋯γrk\sigma^k = \gamma_1^k \gamma_2^k \cdots \gamma_r^k, and σk=e\sigma^k = e exactly when every γik\gamma_i^k is the identity on its own support, i.e. when ℓi∣k\ell_i \mid k for every ii. The smallest such positive kk is the least common multiple lcm⁡(ℓ1,…,ℓr)\operatorname{lcm}(\ell_1, \dots, \ell_r), which is therefore the order of σ\sigma as a group element.

Why do we insist on "disjoint" cycles for uniqueness, if any permutation can be written many other ways as a product of (possibly overlapping) cycles?

Uniqueness genuinely requires disjointness. Any permutation can be written as a product of overlapping (non-disjoint) cycles in infinitely many ways — for instance (1 2 3)=(1 2)(2 3)(1\ 2\ 3) = (1\ 2)(2\ 3) using transpositions that share the point 22, and also (1 2 3)=(1 3)(1 2)(1\ 2\ 3) = (1\ 3)(1\ 2), a different pair of overlapping transpositions with the same product. These decompositions into arbitrary (not necessarily disjoint) cycles are not unique and do not correspond to the orbit structure. It is precisely the requirement that the cycles be pairwise disjoint that ties each cycle to a single orbit of the permutation, which is a canonically defined object, and this is what forces the essential uniqueness proved in the theorem above.

Is every element of SnS_n a single cycle?

No, only special elements are single nn-cycles. A permutation of [n][n] is a single nn-cycle exactly when it has one orbit covering all of [n][n], equivalently when repeatedly applying it to any starting point visits every other point before returning. Most elements of SnS_n decompose into several disjoint cycles of smaller total lengths summing to nn (counting fixed points as length-11 cycles); the number of nn-cycles in SnS_n is (n−1)!(n-1)!, a small fraction of the full n!n! elements once nn is even moderately large.

How does composition in SnS_n relate to matrices or later group constructions?

Every permutation σ∈Sn\sigma \in S_n can be represented by its permutation matrix PσP_\sigma, the n×nn\times n matrix with a 11 in row σ(i)\sigma(i), column ii (and zeros elsewhere), and matrix multiplication of permutation matrices exactly mirrors composition in SnS_n: PσPτ=PστP_\sigma P_\tau = P_{\sigma\tau}. This gives a faithful representation of SnS_n inside the general linear group GLnGL_n, linking permutation combinatorics to linear algebra. It also anticipates constructions such as the dihedral group, realized concretely as a subgroup of SnS_n (symmetries of a regular nn-gon's vertices) generated by one rotation cycle and one reflection, both expressible in the cycle notation developed here.

Before this

Where this leads