MathLabs

Grade 10

Permutations, arrangements and combinations

Counting formulas Pn=n!P_n = n!, AnkA_n^k, CnkC_n^k for ordered and unordered selections.

IntuitionIntuition: does order matter?

Take 3 colored beads and put them in a row: swapping two beads gives a visibly different row, so order matters — that is a permutation. Now put the same 3 beads into a bag: shaking the bag does not create a new bag, so order does not matter — that is a combination. Between these two extremes sits the arrangement: picking and ordering only some of the objects, like awarding gold, silver and bronze medals to 3 out of many runners. The three counting formulas below — permutation, arrangement, combination — are simply the multiplication rule applied to these three situations.

A diagram of ordered or unordered selections from A, B, and C. It lists distinct outcomes and shows the corresponding P(n,r) or C(n,r) count.
Each row shows one selection of rr objects from nn: rows are different when order matters, but a combination counts every reordering only once. Choose the unordered mode to compare the same example.

SchoolThree counting formulas

Definition: Permutation

A permutation of nn distinct objects is an ordering of all nn of them in a row. The number of permutations is written PnP_n.

Pn=n!P_n = n!

Definition: Arrangement (partial permutation)

An arrangement of kk objects chosen from nn distinct objects (0≤k≤n0 \le k \le n) is a way of choosing kk of them and lining them up in order. The number of arrangements is written AnkA_n^k.

Ank=n!(n−k)!A_n^k = \frac{n!}{(n-k)!}

Definition: Combination

A combination of kk objects chosen from nn distinct objects (0≤k≤n0 \le k \le n) is a way of choosing kk of them with no regard to order — just a subset. The number of combinations is written CnkC_n^k.

Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n-k)!}

Every combination corresponds to exactly k!k! arrangements (one for each ordering of the chosen subset), which is exactly why the combination formula divides the arrangement count by k!k!.

Permutation, arrangement and combination compared
ConceptOrder matters?Chosen amountFormula
PermutationYesall nnPn=n!P_n = n!
ArrangementYeskk out of nnAnk=n!(n−k)!A_n^k = \frac{n!}{(n-k)!}
CombinationNokk out of nnCnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n-k)!}

UndergraduateRigorous statement and proofs

For integers n≥1n \ge 1 and 0≤k≤n0 \le k \le n, the number of ways to choose kk objects out of nn distinct objects and arrange them in order is Ank=n!(n−k)!A_n^k = \frac{n!}{(n-k)!}. In particular, taking k=nk=n gives the number of permutations Pn=n!P_n = n!.

Why is it true?

Filling k ordered slots one at a time, with the pool of remaining eligible objects shrinking by one after every slot, is exactly the setting of the multiplication rule for independent sequential steps.

Proof

Step 1 (set up the positions): label the kk positions to be filled, in order, as position 1 through position kk. Filling each position with one of the nn objects, without reusing an object already placed, is a task made of kk successive steps.

Step 2 (apply the multiplication rule): position 1 can be filled in nn ways. Once it is filled, one object has been used, so position 2 can be filled in n−1n-1 ways, regardless of which object filled position 1. Continuing this way, position kk can be filled in n−k+1n-k+1 ways, since k−1k-1 objects have already been used. By the multiplication rule, the total count is the product n(n−1)⋯(n−k+1)n(n-1)\cdots(n-k+1).

Step 3 (rewrite as a factorial quotient): multiplying and dividing by the missing tail (n−k)!(n-k)! gives n(n−1)⋯(n−k+1)=n(n−1)⋯(n−k+1)⋅(n−k)!(n−k)!=n!(n−k)!n(n-1)\cdots(n-k+1) = \frac{n(n-1)\cdots(n-k+1)\cdot (n-k)!}{(n-k)!} = \frac{n!}{(n-k)!}, which is exactly Ank=n!(n−k)!A_n^k = \frac{n!}{(n-k)!}.

Step 4 (special case k=nk=n): substituting k=nk=n gives Ann=n!0!=n!1=n!A_n^n = \frac{n!}{0!} = \frac{n!}{1} = n! using 0!=10! = 1, which recovers the permutation count Pn=n!P_n = n!.

For integers n≥1n \ge 1 and 0≤k≤n0 \le k \le n, the number of ways to choose kk objects out of nn distinct objects with no regard to order is Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n-k)!}.

Why is it true?

Every unordered subset of size k can be turned into an ordered arrangement in exactly k! ways, so the ordered count over-counts each subset by the same factor k!; dividing removes the over-counting.

Proof

Step 1 (group arrangements by their underlying subset): every arrangement of kk objects out of nn first selects some kk-element subset and then orders it. Group the AnkA_n^k arrangements into buckets, one bucket per possible kk-element subset, so that two arrangements land in the same bucket exactly when they use the same set of objects.

Step 2 (size of each bucket): fixing one kk-element subset, the arrangements built from it correspond exactly to the orderings of that subset, and there are k!k! such orderings (a permutation of kk objects). So every bucket has exactly k!k! arrangements.

Step 3 (addition rule across buckets): the buckets are disjoint (an arrangement belongs to exactly one bucket) and there are CnkC_n^k buckets by definition, each of size k!k!. The addition rule (k!k! added to itself CnkC_n^k times) gives Ank=Cnk⋅k!A_n^k = C_n^k \cdot k!.

Step 4 (solve for the combination count): dividing both sides by k!k! and substituting Ank=n!(n−k)!A_n^k = \frac{n!}{(n-k)!} gives Cnk=Ankk!C_n^k = \dfrac{A_n^k}{k!}, that is Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n-k)!}.

For integers nn and kk with 1≤k≤n−11 \le k \le n-1, Cnk=Cn−1k−1+Cn−1kC_n^k = C_{n-1}^{k-1} + C_{n-1}^k.

Why is it true?

This is the addition rule in disguise: splitting all size-k subsets by whether or not they contain one fixed element gives two disjoint cases whose counts add up.

Proof

Step 1 (fix one element and split by membership): fix one object xx among the nn objects. Every kk-element subset either contains xx or does not; these two cases are disjoint and together cover all CnkC_n^k subsets.

Step 2 (count subsets containing x): a subset containing xx is formed by choosing the remaining k−1k-1 elements from the other n−1n-1 objects, giving Cn−1k−1C_{n-1}^{k-1} such subsets.

Step 3 (count subsets not containing x): a subset avoiding xx is formed by choosing all kk elements from the remaining n−1n-1 objects, giving Cn−1kC_{n-1}^k such subsets.

Step 4 (apply the addition rule): since the two cases are disjoint and exhaust all size-k subsets, the addition rule gives Cnk=Cn−1k−1+Cn−1kC_n^k = C_{n-1}^{k-1} + C_{n-1}^k.

UndergraduateReal-World Applications and Worked Examples

Permutations, arrangements and combinations are the everyday arithmetic of computer science (counting possible orderings in sorting algorithms), cryptography (counting keys), scheduling (assigning distinct time slots), and statistics (counting equally likely samples before computing a probability). The two examples below show a permutation problem and a combination problem side by side.

Example: Arranging books on a shelf

A student has 5 distinct textbooks and wants to line all of them up on a shelf, one next to another. How many different orderings are possible?

Solution

Step 1: all 5 books are placed, and swapping any two books gives a visibly different shelf, so this is a permutation of all 5 objects, not just a partial selection.

Step 2: fill the 5 positions on the shelf one at a time: the first position has 55 choices, the second has 44 remaining, and so on down to the last position with 11 choice, matching the permutation formula Pn=n!P_n = n! with n=5n=5.

Step 3: computing, 5!=5⋅4⋅3⋅2⋅1=1205! = 5 \cdot 4 \cdot 3 \cdot 2 \cdot 1 = 120 different orderings.

Example: Choosing a committee

From a group of 10 employees, a committee of 4 people is to be chosen, with no distinct roles inside the committee (every member has equal standing). How many different committees are possible?

Solution

Step 1: since no member has a distinct role, two selections with the same 4 people but listed in a different order form the same committee, so order does not matter — this calls for the combination formula, not the arrangement formula.

Step 2: apply Cnk=n!k!(n−k)!C_n^k = \frac{n!}{k!(n-k)!} with n=10n=10 and k=4k=4, giving C104=10!4!⋅6!C_{10}^4 = \frac{10!}{4! \cdot 6!}.

Step 3: simplifying, the surviving factors are 10⋅9⋅8⋅74!=504024=210\frac{10 \cdot 9 \cdot 8 \cdot 7}{4!} = \frac{5040}{24} = 210 different committees.

In how many different orders can 4 distinct books be lined up on a shelf?

From 8 candidates, a president, a vice-president and a secretary (three distinct roles, no one holding two roles) are chosen. How many different outcomes are possible?

From 9 volunteers, a group of 3 people (all with equal standing, no distinct roles) is chosen to run an event. How many different groups are possible?

A teacher picks 2 students from a class of 20 to form a duo that will share one prize together (no leader, no distinct positions between the two). Which formula counts the number of possible duos?

References

  1. Ronald L. Graham, Donald E. Knuth, Oren Patashnik (1994). Concrete Mathematics: A Foundation for Computer Science
  2. Richard A. Brualdi (2009). Introductory Combinatorics