upgrade
upgrade

💁🏽Algebraic Combinatorics

Key Concepts of Permutations

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

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!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 SnS_n contains all permutations of nn 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\sigma = 3142, then σ(1)=3,σ(2)=1,σ(3)=4,σ(4)=2\sigma(1)=3, \sigma(2)=1, \sigma(3)=4, \sigma(4)=2
  • Cycle notation groups elements by their orbits—(1 3 4)(2)(1\ 3\ 4)(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×nn \times n binary matrix with exactly one 1 in each row and column, representing σ\sigma by placing a 1 in position (i,σ(i))(i, \sigma(i))
  • Matrix multiplication corresponds to composition—if PσP_\sigma and PτP_\tau are permutation matrices, then PσPτ=PστP_\sigma P_\tau = P_{\sigma \circ \tau}
  • 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!n!—specific constraints create important subfamilies with their own enumeration formulas.

Counting Permutations (n!)

  • n!n! counts total arrangements because you have nn choices for the first position, n1n-1 for the second, and so on, giving n(n1)1n \cdot (n-1) \cdot \ldots \cdot 1
  • Factorial growth is extremely rapid10!=3,628,80010! = 3,628,800 and 20!>101820! > 10^{18}, which is why efficient algorithms matter
  • Partial permutations P(n,k)=n!(nk)!P(n,k) = \frac{n!}{(n-k)!} count arrangements of kk objects chosen from nn, a common exam formula

Derangements

  • A derangement is a permutation with no fixed points—no element stays in its original position, written σ(i)i\sigma(i) \neq i for all ii
  • The count DnD_n (or !n!n) satisfies Dn=(n1)(Dn1+Dn2)D_n = (n-1)(D_{n-1} + D_{n-2}) and equals n!k=0n(1)kk!n! \sum_{k=0}^{n} \frac{(-1)^k}{k!}
  • The proportion of derangements approaches 1e\frac{1}{e}—as nn \to \infty, roughly 36.8% of all permutations are derangements, a beautiful convergence result

Stirling Numbers and Their Relation to Permutations

  • Stirling numbers of the first kind c(n,k)c(n,k) (unsigned) count permutations of nn elements with exactly kk cycles
  • The recursion c(n,k)=(n1)c(n1,k)+c(n1,k1)c(n,k) = (n-1)c(n-1,k) + c(n-1,k-1) reflects that element nn 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(x1)(xn+1)(x)_n = x(x-1)\cdots(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 (n1)!(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)(i,j) with i<ji < j but σ(i)>σ(j)\sigma(i) > \sigma(j)—the larger value appears before the smaller one
  • The inversion number inv(σ)\text{inv}(\sigma) ranges from 0 (identity) to (n2)\binom{n}{2} (reverse permutation), measuring total disorder
  • Inversions count adjacent swaps—the minimum number of transpositions of adjacent elements needed to sort σ\sigma equals inv(σ)\text{inv}(\sigma)

Sign of a Permutation

  • The sign sgn(σ)=(1)inv(σ)\text{sgn}(\sigma) = (-1)^{\text{inv}(\sigma)} classifies permutations as even (+1) or odd (−1)
  • Even permutations form the alternating group AnA_n—a normal subgroup of SnS_n with index 2, containing exactly half of all permutations
  • Sign is multiplicative: sgn(στ)=sgn(σ)sgn(τ)\text{sgn}(\sigma\tau) = \text{sgn}(\sigma)\text{sgn}(\tau), and it determines the sign of terms in determinant expansion

Permutation Statistics (Descents, Excedances)

  • A descent at position ii occurs when σ(i)>σ(i+1)\sigma(i) > \sigma(i+1)—the permutation "goes down" at that step
  • An excedance at position ii occurs when σ(i)>i\sigma(i) > i—the value exceeds its position index
  • Descents and excedances are equidistributed—the number of permutations with kk descents equals the number with kk 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., 43214321 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)(c_1, \ldots, c_n) where cic_i counts elements to the right of position ii that are smaller than σ(i)\sigma(i)
  • Each cic_i satisfies 0cini0 \leq c_i \leq n-i—this gives a bijection between permutations and sequences, enabling ranking/unranking algorithms
  • The factorial number system interprets the Lehmer code as digits: cii!\sum c_i \cdot i! gives the permutation's rank among all n!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\sim 2\sqrt{n} 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 kk-cycle permutes kk elements in a closed loop: (a1 a2  ak)(a_1\ a_2\ \ldots\ a_k) maps a1a2aka1a_1 \to a_2 \to \cdots \to a_k \to a_1
  • Every permutation factors uniquely (up to order) into disjoint cycles—this cycle type determines conjugacy classes in SnS_n
  • The order of a permutation equals the LCM of its cycle lengths—a permutation with cycle type (3,2,2)(3,2,2) has order lcm(3,2,2)=6\text{lcm}(3,2,2)=6

Permutation Groups and Cayley's Theorem

  • A permutation group is a subgroup of SnS_n—any set of permutations closed under composition and inverses
  • Cayley's theorem states every finite group GG is isomorphic to a subgroup of SGS_{|G|}, via the left regular representation
  • This theorem is foundational—it means studying permutation groups is equivalent to studying all finite groups, making SnS_n 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 π\pi appears in σ\sigma if some subsequence of σ\sigma has the same relative order as π\pi—e.g., 231 appears in 35142 via positions 3,5,2
  • Pattern avoidance counts permutations in SnS_n containing no copy of π\pi—remarkably, avoiding 132, 231, 312, etc., all give the Catalan numbers
  • The Stanley-Wilf conjecture (now theorem) states that for any pattern π\pi, the number of avoiding permutations grows at most exponentially

Random Permutations and Their Properties

  • A uniform random permutation is drawn with probability 1n!\frac{1}{n!} from SnS_n—generated efficiently by the Fisher-Yates shuffle
  • Expected number of cycles in a random permutation is Hn=1+12++1nlnnH_n = 1 + \frac{1}{2} + \cdots + \frac{1}{n} \approx \ln n
  • Expected number of fixed points is exactly 1 for any nn—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.


Quick Reference Table

ConceptBest Examples
Representation methodsOne-line notation, cycle notation, permutation matrices
Basic countingn!n! for all permutations, (n1)!(n-1)! for cyclic permutations
Special classesDerangements (no fixed points), involutions (self-inverse)
Disorder measuresInversions, descents, excedances
Parity and signEven/odd permutations, alternating group AnA_n
Cycle analysisCycle type, order (LCM of cycle lengths), Stirling numbers
Encoding schemesLehmer code, factorial number system
Pattern theory231-avoidance, Catalan numbers, Stanley-Wilf theorem

Self-Check Questions

  1. A permutation has cycle type (4,2,1)(4, 2, 1). What is its order, and is it even or odd?

  2. Compare inversions and descents: which statistic determines the sign of a permutation, and why can a permutation have 10 inversions but only 2 descents?

  3. Explain why the number of derangements of nn elements divided by n!n! approaches 1e\frac{1}{e}. What inclusion-exclusion principle underlies this?

  4. The Lehmer code and cycle notation both encode permutations uniquely. For what types of problems would you prefer each representation?

  5. FRQ-style: Let σ=41523\sigma = 41523. (a) Write σ\sigma in cycle notation. (b) Compute inv(σ)\text{inv}(\sigma) and determine sgn(σ)\text{sgn}(\sigma). (c) Find the longest increasing subsequence of σ\sigma.