Permutations are the backbone of algebraic combinatorics—they're not just about counting arrangements, but about understanding structure, symmetry, and transformation. When you study permutations, you're building tools that connect to group theory, linear algebra, and algorithm design. Exam questions will test whether you can move fluidly between representations (cycle notation vs. matrices), compute statistics (inversions, descents), and recognize when two seemingly different problems share the same permutation structure.
The concepts here fall into distinct categories: how we represent permutations, how we count them, how we measure their properties, and how they connect to algebraic structures. Don't just memorize that n! counts permutations—understand why cycle structure determines group-theoretic properties, why inversions connect to sorting algorithms, and why pattern avoidance has become a major research area. Each concept illuminates a different facet of how order and arrangement create mathematical structure.
Foundations: Representation and Notation
Before analyzing permutations, you need to represent them precisely. The notation you choose affects which properties are easy to see and compute.
Definition of Permutations
A permutation is a bijection from a finite set to itself—every element maps to exactly one image, and every element is hit exactly once
The symmetric group Sn contains all permutations of n elements, forming the foundation for studying permutation structures algebraically
Permutations encode order—the same set of objects can be arranged in fundamentally different ways, and permutations capture exactly how
Permutation Notation (One-Line and Cycle Notation)
One-line notation lists images sequentially—if σ=3142, then σ(1)=3,σ(2)=1,σ(3)=4,σ(4)=2
Cycle notation groups elements by their orbits—(134)(2) shows that 1 maps to 3, 3 maps to 4, 4 maps to 1, and 2 is fixed
Cycle notation reveals structure that one-line notation hides—you can immediately see fixed points, cycle lengths, and how to compute powers of the permutation
Permutation Matrices
A permutation matrix is an n×n binary matrix with exactly one 1 in each row and column, representing σ by placing a 1 in position (i,σ(i))
Matrix multiplication corresponds to composition—if Pσ and Pτ are permutation matrices, then PσPτ=Pσ∘τ
Permutation matrices are orthogonal—their transpose equals their inverse, connecting permutations to linear algebra and transformations
Compare: One-line notation vs. cycle notation—both represent the same permutation, but cycle notation immediately reveals fixed points and cycle structure while one-line notation makes computing images straightforward. For problems asking about permutation order or conjugacy classes, reach for cycle notation.
Counting: Factorials and Special Classes
Counting permutations goes beyond n!—specific constraints create important subfamilies with their own enumeration formulas.
Counting Permutations (n!)
n! counts total arrangements because you have n choices for the first position, n−1 for the second, and so on, giving n⋅(n−1)⋅…⋅1
Factorial growth is extremely rapid—10!=3,628,800 and 20!>1018, which is why efficient algorithms matter
Partial permutationsP(n,k)=(n−k)!n! count arrangements of k objects chosen from n, a common exam formula
Derangements
A derangement is a permutation with no fixed points—no element stays in its original position, written σ(i)=i for all i
The count Dn (or !n) satisfies Dn=(n−1)(Dn−1+Dn−2) and equals n!∑k=0nk!(−1)k
The proportion of derangements approaches e1—as n→∞, roughly 36.8% of all permutations are derangements, a beautiful convergence result
Stirling Numbers and Their Relation to Permutations
Stirling numbers of the first kindc(n,k) (unsigned) count permutations of n elements with exactly k cycles
The recursionc(n,k)=(n−1)c(n−1,k)+c(n−1,k−1) reflects that element n either joins an existing cycle or forms its own
Stirling numbers bridge permutation enumeration and polynomial algebra—they appear as coefficients when expanding (x)n=x(x−1)⋯(x−n+1)
Compare: Derangements vs. permutations with exactly one cycle—both are special classes, but derangements forbid all fixed points while single-cycle permutations (cyclic permutations) require all elements to form one orbit. If asked to count permutations avoiding fixed points, use derangements; for permutations generating cyclic groups, count (n−1)! cycles.
Measuring Disorder: Statistics and Inversions
Permutation statistics quantify how far a permutation is from sorted order or how its elements relate to their positions.
Inversions in Permutations
An inversion is a pair (i,j) with i<j but σ(i)>σ(j)—the larger value appears before the smaller one
The inversion number inv(σ) ranges from 0 (identity) to (2n) (reverse permutation), measuring total disorder
Inversions count adjacent swaps—the minimum number of transpositions of adjacent elements needed to sort σ equals inv(σ)
Sign of a Permutation
The sign sgn(σ)=(−1)inv(σ) classifies permutations as even (+1) or odd (−1)
Even permutations form the alternating group An—a normal subgroup of Sn with index 2, containing exactly half of all permutations
Sign is multiplicative: sgn(στ)=sgn(σ)sgn(τ), and it determines the sign of terms in determinant expansion
Permutation Statistics (Descents, Excedances)
A descent at position i occurs when σ(i)>σ(i+1)—the permutation "goes down" at that step
An excedance at position i occurs when σ(i)>i—the value exceeds its position index
Descents and excedances are equidistributed—the number of permutations with k descents equals the number with k excedances, both counted by Eulerian numbers
Compare: Inversions vs. descents—inversions count all out-of-order pairs while descents count only adjacent drops. A permutation can have many inversions but few descents (e.g., 4321 has 6 inversions and 3 descents). Inversions determine sign; descents determine Eulerian numbers.
Encoding and Algorithms
These concepts transform permutations into sequences or identify meaningful subsequences, enabling efficient computation.
Lehmer Code and Factorial Number System
The Lehmer code assigns to each permutation a sequence (c1,…,cn) where ci counts elements to the right of position i that are smaller than σ(i)
Each ci satisfies 0≤ci≤n−i—this gives a bijection between permutations and sequences, enabling ranking/unranking algorithms
The factorial number system interprets the Lehmer code as digits: ∑ci⋅i! gives the permutation's rank among all n! permutations
Longest Increasing Subsequence
The LIS of a permutation is the longest subsequence (not necessarily contiguous) whose elements appear in increasing order
The LIS length connects to Young tableaux—by the Robinson-Schensted correspondence, it equals the number of rows in the associated tableau
Expected LIS length is ∼2n for random permutations—a celebrated result with deep connections to random matrix theory
Compare: Lehmer code vs. cycle notation—both encode the same permutation but serve different purposes. Lehmer code enables efficient ranking and random generation; cycle notation reveals algebraic structure like order and conjugacy class. Use Lehmer code for algorithms, cycle notation for theory.
Algebraic Structure: Groups and Symmetry
Permutations aren't just objects to count—they form groups, connecting combinatorics to abstract algebra.
Cycles and Cycle Structure
A k-cycle permutes k elements in a closed loop: (a1a2…ak) maps a1→a2→⋯→ak→a1
Every permutation factors uniquely (up to order) into disjoint cycles—this cycle type determines conjugacy classes in Sn
The order of a permutation equals the LCM of its cycle lengths—a permutation with cycle type (3,2,2) has order lcm(3,2,2)=6
Permutation Groups and Cayley's Theorem
A permutation group is a subgroup of Sn—any set of permutations closed under composition and inverses
Cayley's theorem states every finite group G is isomorphic to a subgroup of S∣G∣, via the left regular representation
This theorem is foundational—it means studying permutation groups is equivalent to studying all finite groups, making Sn the "universal" finite group
Compare: Cycle structure vs. sign—both are permutation invariants, but cycle structure is finer. Two permutations with the same cycle type are conjugate (same "shape"), while sign only distinguishes even from odd. Cycle type determines sign: a permutation is even iff it has an even number of even-length cycles.
Patterns and Probabilistic Behavior
Modern permutation theory studies which patterns appear, which are avoided, and what happens "on average."
Permutation Patterns and Pattern Avoidance
A pattern π appears in σ if some subsequence of σ has the same relative order as π—e.g., 231 appears in 35142 via positions 3,5,2
Pattern avoidance counts permutations in Sn containing no copy of π—remarkably, avoiding 132, 231, 312, etc., all give the Catalan numbers
The Stanley-Wilf conjecture (now theorem) states that for any pattern π, the number of avoiding permutations grows at most exponentially
Random Permutations and Their Properties
A uniform random permutation is drawn with probability n!1 from Sn—generated efficiently by the Fisher-Yates shuffle
Expected number of cycles in a random permutation is Hn=1+21+⋯+n1≈lnn
Expected number of fixed points is exactly 1 for any n—a surprising result that follows from linearity of expectation
Compare: Pattern containment vs. pattern avoidance—these are complementary perspectives. Containment asks "does this pattern appear?" while avoidance counts permutations where it doesn't. The Catalan number result for 231-avoidance connects permutations to Dyck paths, binary trees, and dozens of other combinatorial structures.
A permutation has cycle type (4,2,1). What is its order, and is it even or odd?
Compare inversions and descents: which statistic determines the sign of a permutation, and why can a permutation have 10 inversions but only 2 descents?
Explain why the number of derangements of n elements divided by n! approaches e1. What inclusion-exclusion principle underlies this?
The Lehmer code and cycle notation both encode permutations uniquely. For what types of problems would you prefer each representation?
FRQ-style: Let σ=41523. (a) Write σ in cycle notation. (b) Compute inv(σ) and determine sgn(σ). (c) Find the longest increasing subsequence of σ.