Permutations
How many ways can eight sprinters finish a race with no ties? How many ways can a judge award gold, silver, and bronze medals among them? Both questions ask for the number of ordered arrangements of distinct objects. Both are answered by the same idea: a permutation. Permutations sit at the foundation of enumerative combinatorics. They turn the informal act of "arranging things in order" into a precise counting formula. This formula is built directly from the Product Rule. The idea matters because ordering is everywhere. Passwords, race results, seating charts, DNA-reading frames, and shuffles of a deck of cards are all governed by the same combinatorial skeleton. Once we know how to count arrangements of all objects, and arrangements of just of them at a time, an enormous range of counting problems collapses into applications of a single formula. Permutations also serve as the natural counterpart to combinations, where order is deliberately ignored. Understanding permutations precisely is what makes the distinction meaningful rather than hand-wavy. The big picture is this: counting ordered selections is fundamentally a repeated application of the Product Rule. At each stage, the number of remaining choices shrinks by exactly one. This "shrinking choices" pattern is what factorial notation was invented to capture compactly. Once formalized, the resulting theorem is not just a formula to memorize. It is a small proof by induction (or direct product-rule argument) that every student can reconstruct from scratch. This article gives the formal definition of an -permutation. It proves the counting formula for rigorously from the Product Rule. It works through two asymmetric numerical examples, and shows precisely what goes wrong if the objects are not distinct. It closes by connecting permutations to their natural sequel: Combinations, the Binomial Theorem, and more refined variants such as circular and restricted permutations.
- A permutation of a set is an ordered arrangement of all its elements; an -permutation arranges only of them.
- The count of -permutations of distinct objects is .
- In factorial notation, , valid for integers .
- When , this reduces to , the count of full arrangements.
- The formula is proved by the Product Rule applied to a sequence of dependent choices, not by any circular appeal to combinations.
- Key idea: counting ordered arrangements is repeated application of the Product Rule with the pool of choices shrinking by one at each step.
Where this lives today
Permutations are the combinatorial backbone of many applied fields. In cryptography, the security of block ciphers and substitution-permutation networks rests on permutations of bit-strings, and key-space sizes are literally - or -type counts. In computer science, algorithms for generating, ranking, and unranking permutations (e.g. Lehmer codes) are used in testing, randomized algorithms, and combinatorial optimization such as the traveling salesman problem, where the search space has size for undirected tours. In statistics, permutation tests use the set of all reorderings of data labels to build nonparametric significance tests, relying directly on counting all or restricted arrangements. In physics and chemistry, permutations of identical particles underlie quantum statistics (Bose–Einstein vs. Fermi–Dirac counting) and the combinatorics of molecular symmetry. In pure mathematics, permutations form the symmetric group , a central object in group theory-adjacent combinatorics, representation theory, and Galois theory, while -permutations directly generalize to the Binomial Theorem and multinomial expansions once repetition or order-indifference is introduced.
Ask the tutor: How does the -permutation formula generalize when repetition of objects is allowed, and how does that connect to the multinomial theorem?
Let be a set with distinct elements, and let be an integer with . An -permutation of is an ordered sequence of distinct elements of ; equivalently, it is an injective function , where . The number of -permutations of a set with elements is denoted (also written or ). A permutation of (with no qualifier) is the special case : an ordered arrangement of all elements of , i.e. a bijection realized as a sequence listing every element exactly once. By convention and an empty sequence (the case ) is the unique -permutation of any set.
Intuition
Think of filling labeled slots, one at a time, from a pool of distinct objects, where once an object is placed it is removed from the pool. The first slot can be filled in ways. Having used up one object, the second slot can be filled in ways — no matter which object filled the first slot, exactly remain. This "no matter which" independence of the count of remaining choices (even though the identity of remaining choices depends on earlier picks) is exactly the hypothesis the Product Rule needs. Continuing, the -th slot has available objects, and the process stops after slots, having used the factors . The picture below shows this shrinking-pool process for objects and slots: the number of available choices at each stage decreases by exactly one, and the total count is the product of the numbers along the top.
The key subtlety the diagram encodes: at slot 2, the particular four objects available depend on what was chosen at slot 1, but the number four does not. That invariance of count regardless of prior choice is precisely what licenses multiplying the three numbers together rather than needing a more delicate case analysis.
Let and be integers with , and let be a set with . Then the number of -permutations of is
In particular, taking , the number of permutations of an -element set is .
We give a direct proof by the Product Rule, using induction on to make the repeated application rigorous. Fix and let be a set with .
Setup as an ordered choice process. An -permutation of is precisely a sequence of choices where:
- is chosen freely from ;
- for each with , is chosen from , i.e. from whatever remains after removing the previously chosen elements.
This is exactly the definition of an -permutation: the sequence must consist of distinct elements, and this constraint is enforced slot-by-slot by choosing each outside the set of earlier choices.
Claim (constant fiber size). For every choice of (distinct elements of ), the number of valid choices for is exactly . Proof of claim. Since are distinct elements of , the set has exactly elements, by the finite subtraction rule for cardinalities of finite sets (removing distinct elements from a finite set of size leaves a set of size , provable by a trivial induction on using for ). Thus there are exactly valid choices for , regardless of which particular -tuple of distinct elements preceded it. (claim)
Induction on to assemble the product. Let denote the number of -permutations of . We show
by induction on , for . Base case . The only -permutation is the empty sequence, so , and the empty product is by convention. The formula holds. Inductive step. Suppose and the number of -permutations of is (inductive hypothesis). An -permutation is obtained by first choosing an -permutation and then appending one more element . By the claim above (with ), for every fixed -permutation there are exactly valid choices of — this count does not depend on which -permutation was fixed. This is precisely the hypothesis required by the Product Rule: a two-stage process where stage one has outcomes and, independent of which stage-one outcome occurs, stage two always has outcomes. The Product Rule then gives
using the inductive hypothesis in the middle equality. This completes the induction.
Conclusion of the product form. By induction, for all ,
a product of exactly consecutive descending integer factors starting at .
Factorial form. If , the product runs over all integers from down to , so by definition of factorial. For general , multiply and divide by the missing descending factors:
valid since or is a well-defined nonzero integer for (so no division by zero occurs). This establishes both stated formulas.
∎Worked examples
Example 1: Course scheduling with three distinguishable slots. A student must choose an ordered schedule of distinct courses, in order (1st period, 2nd period, 3rd period), from a catalog of available distinct courses, no repeats allowed. How many ordered schedules are possible? Here , . By the theorem,
Compute directly: , and . So there are possible ordered schedules. Note the asymmetry: is not a small round number and , so this genuinely tests the general -permutation formula rather than the special case .
Example 2: A 4-digit access code from a restricted alphanumeric set, with a twist. Suppose a security system generates access codes as ordered sequences of distinct symbols drawn from the -symbol set — but the first symbol of the code is required to be a letter (one of ), while the remaining three symbols may be any of the remaining distinct symbols (in any order, still without repetition). How many such codes exist? This is not a bare computation — it requires combining a restricted first choice with a full permutation count via the Product Rule, foreshadowing Circular and Restricted Permutations. Stage 1: Choose the first symbol: it must be a letter, and there are letters, so choices. Stage 2: Choose an ordered arrangement of the remaining symbol-slots from the symbols not yet used (the remaining distinct symbols, since one letter has been placed). Regardless of which letter was placed in stage 1, exactly symbols remain, and we need an ordered selection of of them without repetition — this is . By the theorem, . By the Product Rule (the count at stage 2 is the same regardless of the stage-1 outcome, satisfying the rule's hypothesis), the total number of codes is
So there are valid access codes. This example shows how the -permutation formula is a building block, combined with the Product Rule, rather than a rigid template that only applies to unrestricted problems.
The theorem requires that consist of distinct elements. Drop this hypothesis and the formula collapses. Consider the multiset with "objects" but only distinct values, and ask for the number of -arrangements (i.e., all full "permutations" of the multiset, meaning distinct-looking output strings). The theorem's formula would claim
But if we physically list all orderings of the three symbols treating the two copies of as identical (which is the natural reading once objects are not distinct), the distinct output strings are:
only strings, not . The naive count of arises only if we artificially distinguish the two copies of (say ), giving labeled arrangements, but each distinct output string is then produced by exactly of these labeled arrangements (since the two 's can be swapped without changing the visible string), so the true count of distinct arrangements is , matching the direct list. This is exactly why the multinomial correction factor is needed once repeated objects are allowed, and it shows precisely which hypothesis of the theorem — distinctness of the objects — is doing the work: without it, overcounts by exactly the factor of internal symmetries among identical objects.
Scope, edge cases & common traps
| Situation | Correct handling |
|---|---|
| (the empty arrangement), matches | |
| , full arrangements | |
| is undefined / declared : cannot choose more distinct objects than exist | |
| Objects not distinguishable | Formula overcounts; must divide by symmetry factor (multinomial coefficient) |
| Order does not matter | Use Combinations instead |
| Arrangement is circular, not linear | Use circular permutation count , see Circular and Restricted Permutations |
The mathematician behind it
The systematic study of permutations as ordered arrangements, and the factorial notation used to count them, developed gradually across many contributors rather than from a single inventor — but Leonhard Euler stands out for making permutations and their generating functions rigorous, general-purpose combinatorial tools deployed across number theory, analysis, and what we would now call graph theory.
Origins · 1 minLeonhard Euler and how this was discovered
Euler produced foundational results connecting permutations to partitions, generating functions, and derangement counts (the classic "hat-check problem"), embedding the study of ordered arrangements into the wider machinery of combinatorial analysis that underlies modern enumerative combinatorics.
What is the difference between a permutation and an -permutation?
A permutation (with no qualifier) arranges all elements of a set in order, so there are of them. An -permutation arranges only of the elements, chosen and ordered simultaneously, with ; there are of these. A permutation is simply the special case of an -permutation, since then and . Both concepts require the same underlying rule: no repeats, and order matters.
Why is rather than something involving addition?
The formula emerges from a chain of multiplicative dependent choices, not additive ones, because filling each of the ordered slots is a separate stage in a multi-stage process governed by the Product Rule, not the Sum Rule. The Sum Rule applies when counting a union of disjoint alternative outcomes; here, however, every -permutation requires all slots to be filled simultaneously, which is a conjunction of stages, not a choice among alternatives. The factorial quotient is just a bookkeeping trick to express the finite product compactly using the identity .
Does make sense when ?
No. An -permutation requires selecting distinct elements from a set of only elements, and by the pigeonhole principle this is impossible when , since you cannot list more distinct items than exist in the set. By convention for , which is also consistent with treating as undefined (or the product as containing a nonpositive factor once , signaling the count is vacuously zero). All the theorem's hypotheses explicitly restrict to to avoid this degenerate case.
How do permutations relate to combinations?
A combination counts unordered selections; a permutation counts ordered ones. Every -element subset (combination) can be arranged in different orders, each order being a distinct -permutation. Hence , or equivalently . This identity is the precise bridge to Combinations, and it explains why combination counts are always smaller than or equal to the corresponding permutation counts — dividing by removes the redundancy from having counted every ordering of the same subset separately.
What happens if the objects being arranged are not all distinguishable?
The clean formula assumes all objects are distinct; if some are identical, naively applying the formula overcounts arrangements that look the same once identical objects are treated as indistinguishable. The fix, illustrated in the counterexample with the multiset , is to divide by the factorial of the number of copies of each repeated value — this generalizes to the multinomial coefficient when there are distinct values with multiplicities summing to . This generalization is the direct precursor to the multinomial theorem, a close relative of the Binomial Theorem.
How does the Product Rule guarantee that is exactly , rather than just an upper bound?
The key technical point, proved in the theorem's inductive step, is that the number of valid choices for the -th slot is exactly for every possible sequence of prior distinct choices — not merely at most . This uniformity (a constant "fiber size" independent of the path taken so far) is precisely the hypothesis the Product Rule needs to multiply stage counts together and get an exact equality rather than a bound. Because finite-set cardinality subtraction is exact (removing distinct elements from an -element set leaves exactly elements, always), the equality is exact at every stage, and hence the final product is exact too.
Why do textbooks emphasize permutations before combinations, rather than the reverse?
Permutations are conceptually more primitive: they count arrangements directly via the Product Rule with no additional correction needed, whereas combinations are defined and computed from permutations by removing the overcounting due to order via the identity . Teaching permutations first gives students the raw building block, and then combinations is naturally introduced as "permutations divided by the redundancy factor ," which is a much smaller conceptual leap than trying to derive directly from first principles without reference to .