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 is the set of all bijections from to itself under composition. It is the universal home for finite symmetry. Every finite group embeds inside some . 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 is a finite group of order . It is non-abelian for . 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 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 in its wider mathematical context. It previews the notions of parity and dihedral symmetry that build on this foundation.
- is the set of all bijections , with composition as the operation; it is a group of order .
- One-line notation records a permutation as the sequence of images ; 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.
- is non-abelian for : composition order matters, a fact easy to check with explicit -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 embeds as a subgroup of , so understanding 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 acting on the roots, and the insolvability of the general quintic follows from properties of . In representation theory and combinatorics, the representation theory of 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 . In statistics, permutation tests (a form of nonparametric hypothesis testing) rely on enumerating or sampling from 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 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 as a specific subgroup of generated by a rotation and a reflection.
:::quiz[In one-line notation, if on (so ), what is ?]
- 1
- 2
- 3 ✓
- 4
Ask the tutor: How does the disjoint cycle decomposition let us compute the sign (parity) of a permutation?
Let be a positive integer and let . The symmetric group on letters, denoted , is the set of all bijections (permutations)
equipped with the binary operation of function composition: for , the product is the function defined by
Notation conventions. One-line notation. A permutation is written as the sequence
i.e. the list of images of in order, read left to right. Cycle notation. For distinct elements , the symbol denotes the permutation sending
and fixing every element of not among . Such a permutation is called a -cycle, and is its length. A -cycle is the identity map fixing (and, together with the convention that omitted points are fixed, all -cycles denote the identity of ). Two cycles are disjoint if the sets of symbols they move are disjoint.
Intuition
Think of labeled boxes in a row and balls, one per box. A permutation describes a new arrangement: the ball that was in box moves to box — or, depending on convention, box now holds the ball originally in box . Either reading is legitimate as long as it is used consistently; this article adopts the function convention: is "where goes," and means "first apply , then apply ," exactly as with ordinary function composition . 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 — 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 -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 .
Central results
For every positive integer , the set of bijections , 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 .
We verify each axiom directly from the definition of as a set of bijections, using proof by direct construction/verification.
Closure. If are bijections, then so is . Indeed, the composition of two injective functions is injective: if , then , and injectivity of gives , and then injectivity of gives . The composition of two surjective functions on a finite set is surjective: since and 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 is a bijection , i.e. .
Associativity. For any functions and any ,
Since this holds for every , the functions and are equal. This is simply associativity of function composition in general, which holds regardless of bijectivity.
Identity. Let be the identity map, for all . Then is trivially a bijection, so , and for every and every ,
so . Thus is a two-sided identity.
Inverses. Since is a bijection , it has a set-theoretic inverse function defined by: is the unique with (existence and uniqueness of such follow from surjectivity and injectivity of respectively). The function is itself a bijection (its inverse is ), so . By construction, for all ,
so . All four axioms hold, so is a group.
Order count. We count bijections directly. A bijection is determined by choosing , then , 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 choices for ; having chosen as distinct values, there remain available values for so that all images stay distinct. By the multiplication principle, the total number of such sequences of choices is
Each such sequence of choices corresponds to exactly one bijection and every bijection arises from exactly one such sequence, so .
∎If and are disjoint cycles in (no equals any ), then .
We check the two sides agree on every point of (proof by case analysis on where a point can lie). Let . There are three mutually exclusive cases, since and are disjoint. Case 1: for some . Then fixes (as ), so , and (indices mod , so ) again lies among the 's, hence is fixed by . For the other order, fixes only if , which is false here — instead we compute ; since , fixes it, giving . Both sides equal . Case 2: for some . Symmetric to Case 1 with the roles of exchanged: both and equal (indices mod ). Case 3: is fixed by both and . Then and . In every case , so as functions on .
∎Every permutation can be written as a product of pairwise disjoint cycles,
where each is a cycle and any two are disjoint (points fixed by may be omitted, or included as trivial -cycles). This decomposition is unique up to reordering the factors and up to the choice of starting point used to write each cycle.
We use the orbit structure of acting on ; the technique is a direct construction followed by a uniqueness argument via equivalence classes.
Existence. Define a relation on by iff for some integer (where denotes composed with itself times, , and ). This is an equivalence relation: reflexivity holds via ; symmetry holds since ; transitivity holds since . Call the equivalence classes the orbits of ; since is finite, there are finitely many orbits, say , partitioning . Fix an orbit and pick any . Consider the sequence . Since is finite, this sequence must repeat: there exist with . Applying (which exists since is invertible) gives . Let be the smallest positive integer with (such exists by the previous sentence and the well-ordering principle). We claim are pairwise distinct: if for , applying gives with , contradicting minimality of . Moreover every element of the orbit has this form: if , write with (division algorithm), then since implies by induction on . Hence
a set of exactly distinct elements, and acts on exactly as the cycle acts, while fixing every point outside . Since the orbits partition , the corresponding cycles are pairwise disjoint (they move disjoint sets of symbols), and for every , lies in exactly one orbit , on which and agree, while all other () fix . Hence
for every (using that disjoint cycles commute and fix each other's moved points, Lemma above), so .
Uniqueness. Suppose is any expression of as a product of pairwise disjoint nontrivial cycles. We show the multiset of cycles must coincide with (as sets of symbols moved, with the internal cyclic order determined). Since the are pairwise disjoint, for a point moved by (i.e. ), every other factor () fixes , so
and inductively for all . Thus the orbit of under repeated application of coincides exactly with the orbit of under , which is precisely the set of symbols moved by together with 's trajectory around that cycle. This orbit is, by definition, one of the -orbits constructed above, and the cyclic order in which moves its points must match , which is exactly the cyclic order recorded in . Hence equals as a cycle (same set of moved points, same cyclic pattern, possibly written starting from a different symbol — but a cycle and denote the identical function, so this is not a genuine ambiguity). Every nontrivial factor therefore matches some , every arises this way (taking with ), and distinct 's correspond to distinct 's since their moved-point sets are disjoint and partition the non-fixed points of . Hence 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.
∎Worked examples
Example 1 (composing in one-line notation, then converting to cycles). Let and let be given in one-line notation by
meaning , and . We compute , meaning "apply first, then ," using :
So in one-line notation — this is the identity permutation. (Indeed one can check directly that : ✓, ✓, and so on for all six values, confirming , which explains why .) Now compute the other order, , to see that it also equals the identity (as it must, since forces and hence too — a good consistency check):
Confirmed: as well, consistent with . Finally, express itself in disjoint cycle notation by tracing orbits. Start at : . This closes a single -cycle using all of :
As a check, being a single -cycle means and no smaller power is the identity; this matches the fact that has one orbit of size .
Example 2 (composing cycle notation directly, with overlapping supports and non-commuting factors). Work in with
where is a -cycle and is a product of a -cycle and a disjoint transposition; the point is fixed by both. We compute (apply first, then ) by tracking each of individually, reading right to left.
- : fixes (not listed), so ; then . So .
- : (from the -cycle ); then ( fixes , not among its symbols). So .
- : (closing the -cycle); then . So .
- : ; . So .
- : ; then . So .
- : ; then . So .
- : ; then ( fixes ). So .
Collecting these: sends . In one-line notation on this is
To express in disjoint cycle form, trace orbits: start at , closing a -cycle . Next unused point : , closing a -cycle . Point is fixed. All points are accounted for (), so
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 (apply first, then ) at just one point to see non-commutativity: , whereas was computed above. Since , we conclude , exhibiting concretely that (and for all ) is non-abelian.
The theorem that has order , and more basically the argument that injective self-maps of are automatically surjective, depends essentially on being finite. Consider instead , an infinite set, and define the "successor" map
Then is injective: if then so . But is not surjective: is never hit, since for all . So is an injective self-map of that is not a bijection, hence 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 verbatim. More to the point for the group axioms themselves: consider the set of all injective self-maps of an infinite set , with composition. This set is closed under composition and associative, and contains the identity, but it is not a group, because above has no inverse function defined on all of : there is no with , since is not in the image of . 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 for infinite must be defined directly as bijections — not merely injections — to remain a group. It also shows why the order formula , which crucially used "injective surjective on a finite set," has no naive analogue for infinite .
Scope, edge cases & common traps
| Situation | What to watch for |
|---|---|
| , the trivial group; there is exactly one permutation. | |
| , abelian. | |
| is non-abelian; e.g. in , . | |
| Reading order of composition | means " first, then " 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 | and any cyclic rotation of it (e.g. ) denote the same function; this is not a violation of uniqueness in the decomposition theorem. |
| Fixed points in cycle notation | Points fixed by are conventionally omitted from cycle notation; omitting them does not change the permutation, but be careful when comparing cycle notations across different ambient 's (e.g. vs. are different functions on different sets, though often identified). |
| Non-disjoint cycles | The commuting lemma requires disjointness; two overlapping cycles like and generally do not commute. |
The mathematician behind it
Origins · 1 minAugustin-Louis Cauchy and how this was discovered
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 , 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.
Why does mean "apply first" instead of "apply first"?
This is purely a notational convention inherited from ordinary function composition, where means acts first. Since permutations are functions, writing as shorthand for naturally carries the same right-to-left reading. Some algebra texts, especially those emphasizing group actions on the right, instead define to mean "apply first, then ," 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 ever abelian for ?
No. For , is always non-abelian, and this can be checked with a single explicit example inside any with : take and , then while , and these are different -cycles (they send to different places: versus ). Since for contains this non-commuting pair as a subset acting on just three of its points (fixing the rest), non-commutativity persists for every . In contrast and are abelian, having order and respectively.
How do I convert quickly between one-line and cycle notation?
From one-line to cycle notation: pick the smallest unused point , follow until you return to , writing down this loop as a cycle, then repeat with the smallest remaining unused point until every point of has been placed in some cycle (points that map to themselves become -cycles, usually omitted). From cycle notation to one-line notation: for each from to , scan the cycle expression to find which cycle (if any) contains and read off its image there; if appears in no cycle, its image is itself. Both directions are mechanical and take time to execute by hand for reasonably small .
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 is the disjoint cycle decomposition with of length , then because disjoint cycles commute and act independently on disjoint sets, , and exactly when every is the identity on its own support, i.e. when for every . The smallest such positive is the least common multiple , which is therefore the order of 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 using transpositions that share the point , and also , 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 a single cycle?
No, only special elements are single -cycles. A permutation of is a single -cycle exactly when it has one orbit covering all of , equivalently when repeatedly applying it to any starting point visits every other point before returning. Most elements of decompose into several disjoint cycles of smaller total lengths summing to (counting fixed points as length- cycles); the number of -cycles in is , a small fraction of the full elements once is even moderately large.
How does composition in relate to matrices or later group constructions?
Every permutation can be represented by its permutation matrix , the matrix with a in row , column (and zeros elsewhere), and matrix multiplication of permutation matrices exactly mirrors composition in : . This gives a faithful representation of inside the general linear group , linking permutation combinatorics to linear algebra. It also anticipates constructions such as the dihedral group, realized concretely as a subgroup of (symmetries of a regular -gon's vertices) generated by one rotation cycle and one reflection, both expressible in the cycle notation developed here.