IMOClass 11 › Permutations and Combinations

Permutations and Combinations

Counting Principle and Factorials

Counting sounds like the most elementary thing in mathematics, yet beyond a handful of objects, listing every possibility by hand becomes hopeless. The whole of this chapter exists to count without listing. Two principles do the heavy lifting, and almost every counting question reduces to deciding which one applies.

Multiplication Principle (Fundamental Principle of Counting, FPC): If one task can be done in $m$ ways and, after it is done, a second independent task can be done in $n$ ways, then the two tasks together can be done in $m \times n$ ways. The phrase that signals multiplication is "and then" — a sequence of choices made one after another.

$$\text{ways} = m_1 \times m_2 \times m_3 \times \cdots \times m_k$$

Addition Principle: If a task can be done by method A in $m$ ways or by method B in $n$ ways, and the two methods cannot happen together, then the task can be done in $m + n$ ways. The signal word here is "or" — a choice between mutually exclusive alternatives.

SituationSignal wordPrincipleOperation
Do step 1, then step 2and / thenMultiplication$m \times n$
Pick option A or option BorAddition$m + n$

Factorial. Counting arrangements forces us to multiply long descending strings of integers, so we give that product a name. For a positive integer $n$, $n$ factorial is the product of all positive integers up to $n$:

$$n! = n \times (n-1) \times (n-2) \times \cdots \times 2 \times 1$$

Factorials grow ferociously fast: $5! = 120$ but $10! = 3{,}628{,}800$. Two facts must be memorised. First, the recursive relation $n! = n \times (n-1)!$, which lets you simplify ratios of factorials without ever expanding them fully. Second, by convention:

$$0! = 1$$

Why is $0! = 1$? It is not a fudge. The recursion $n! = n \times (n-1)!$ at $n = 1$ gives $1! = 1 \times 0!$, which forces $0! = 1$. There is also a combinatorial reason: there is exactly one way to arrange nothing — the empty arrangement — so the count of arrangements of zero objects must be $1$, not $0$.

Deeper Insight — one decision tree, two operations: Beginners treat the multiplication and addition principles as separate tricks to memorise, but they are really two readings of the same picture: a decision tree. When choices happen in sequence — first this, then that — the branches multiply, because each early branch splays into a full fan of later ones. When choices are alternatives — this route or that route — the branches add, because you travel down only one of them. The single most reliable habit in counting is to narrate the problem to yourself in plain words and listen for "and" versus "or"; the arithmetic then writes itself. Factorial is simply what the multiplication principle produces when you arrange all of a set's objects in a row — $n$ choices for the first slot, $n-1$ for the next, and so on down to $1$ — which is why it sits at the root of both permutations and combinations.

Multiplication principle filling slots for a meal choice Multiplication Principle: 3 starters AND 4 mains STARTER3 choices × MAIN4 choices = 12 meals M1M2M3M4 each starter branches into 4 mains → 3 × 4 = 12 Filling four ordered boxes from four distinct objects gives four factorial Arranging 4 objects: 4! = 24 4 3 2 1 ××× choices shrink by 1 each box: 4 × 3 × 2 × 1 = 24
Example 1: A canteen offers 3 kinds of sandwiches, 4 kinds of drinks, and 2 kinds of desserts. In how many ways can a student choose one of each to make a combo meal?
  1. The choices are made in sequence: pick a sandwich and a drink and a dessert — the word "and" signals the multiplication principle.
  2. Sandwich: $3$ ways. Drink: $4$ ways. Dessert: $2$ ways.
  3. Total $= 3 \times 4 \times 2 = 24$.

Answer: $24$ different combo meals.

Example 2: How many three-digit numbers can be formed using the digits $1, 2, 3, 4, 5$ if no digit is repeated?
  1. There are three ordered positions to fill: hundreds, tens, units.
  2. Hundreds place: any of $5$ digits.
  3. Tens place: any of the remaining $4$ digits (one is used up).
  4. Units place: any of the remaining $3$ digits.
  5. Total $= 5 \times 4 \times 3 = 60$.

Answer: $60$ three-digit numbers.

Example 3: A student must choose a single elective: either one of 5 science electives or one of 3 humanities electives. In how many ways can the choice be made?
  1. The student picks a science elective or a humanities elective — the alternatives are mutually exclusive, so use the addition principle.
  2. Science: $5$ ways. Humanities: $3$ ways.
  3. Total $= 5 + 3 = 8$.

Answer: $8$ ways.

Example 4: Evaluate $\dfrac{8!}{5!}$ without fully expanding either factorial.
  1. Use $8! = 8 \times 7 \times 6 \times 5!$, so $\dfrac{8!}{5!} = \dfrac{8 \times 7 \times 6 \times 5!}{5!}$.
  2. The $5!$ cancels: $\dfrac{8!}{5!} = 8 \times 7 \times 6$.
  3. $8 \times 7 = 56$, and $56 \times 6 = 336$.

Answer: $\dfrac{8!}{5!} = 336$.

Example 5: Find the value of $n$ if $(n+1)! = 12 \times (n-1)!$.
  1. Write $(n+1)! = (n+1) \times n \times (n-1)!$.
  2. Substitute: $(n+1) \times n \times (n-1)! = 12 \times (n-1)!$.
  3. Cancel $(n-1)!$ from both sides: $(n+1)\,n = 12$, i.e. $n^2 + n - 12 = 0$.
  4. Factorise: $(n+4)(n-3) = 0$, giving $n = 3$ or $n = -4$.
  5. A factorial needs a non-negative integer, so reject $n = -4$.

Answer: $n = 3$.

Example 6: How many four-digit numbers can be formed using the digits $0, 1, 2, 3, 4, 5$ if repetition is not allowed? (A four-digit number cannot start with $0$.)
  1. Thousands place cannot be $0$, so it has $5$ choices (any of $1,2,3,4,5$).
  2. Hundreds place: $0$ is now allowed again, but one non-zero digit is used — $5$ choices remain ($0$ plus the four unused).
  3. Tens place: $4$ choices remain. Units place: $3$ choices remain.
  4. Total $= 5 \times 5 \times 4 \times 3 = 300$.

Answer: $300$ four-digit numbers.

Quick recap
  • Multiplication principle: choices in sequence ("and / then") multiply — $m_1 \times m_2 \times \cdots$.
  • Addition principle: mutually exclusive alternatives ("or") add — $m + n$.
  • Factorial: $n! = n \times (n-1) \times \cdots \times 1$, with the recursion $n! = n \times (n-1)!$.
  • By convention $0! = 1$ — forced by the recursion and the single empty arrangement.
  • Simplify factorial ratios by cancelling, e.g. $\dfrac{8!}{5!} = 8 \times 7 \times 6$ — never expand fully.
✓ Quick check
The value of 18C17 is:
18C17 = 18C1 = 18.
What is the total number of possible outcomes when a fair coin is tossed 4 times?
Each toss has 2 outcomes (Heads or Tails). For 4 tosses, total outcomes = 2 × 2 × 2 × 2 = 2⁴ = 16.

Permutations

A permutation is an arrangement of objects in a definite order. The instant the question cares about which object goes where — first place versus second, captain versus vice-captain, the order of letters in a word — you are counting permutations.

The number of permutations of $n$ distinct objects taken $r$ at a time is written ${}^{n}P_{r}$ (read "$n$ permute $r$"). By the multiplication principle, the first slot has $n$ choices, the second $n-1$, and so on for $r$ slots:

$${}^{n}P_{r} = n(n-1)(n-2)\cdots(n-r+1) = \dfrac{n!}{(n-r)!}, \quad 0 \le r \le n$$

Two special cases fall straight out of the formula. Arranging all $n$ objects gives ${}^{n}P_{n} = \dfrac{n!}{0!} = n!$, and arranging none gives ${}^{n}P_{0} = 1$.

Permutations with repetition allowed. If each of the $r$ positions may use any of the $n$ objects again, every slot independently has $n$ choices, so the count is simply $n^r$. This is the rule for things like PIN codes or number plates where digits may repeat.

$$\text{with repetition: } n^{r}$$

Permutations of objects not all distinct. When the collection contains repeated objects, swapping two identical objects produces the same arrangement, so the plain $n!$ overcounts. If among $n$ objects one kind repeats $p$ times, another $q$ times, another $s$ times, the distinct arrangements number:

$$\dfrac{n!}{p!\,q!\,s!}$$

Restrictions are the heart of exam permutation problems — "vowels together", "begins with a consonant", "two particular people not adjacent". The reliable strategy: fix the restricted positions first, count the freedom that remains, and for "together" conditions glue the bound objects into a single block, arrange the blocks, then multiply by the internal arrangements of the block.

ScenarioConditionCount
$r$ from $n$, no repetitionorder matters$\dfrac{n!}{(n-r)!}$
$r$ slots, repetition allowedorder matters$n^{r}$
All $n$, some alike$p,q,\dots$ identical$\dfrac{n!}{p!\,q!\cdots}$

Deeper Insight — every permutation rule is really a correction to $n!$: It helps to see all three formulas as one idea under three conditions. The starting point is $n!$, the count of arrangements when every object is distinct and all are used. From there you adjust. If you only fill $r$ of the slots, you divide away the arrangements of the $n-r$ leftovers, giving $\dfrac{n!}{(n-r)!}$. If objects may repeat, you abandon the descending product entirely and use $n^r$, because nothing is ever "used up". If some objects are identical, you divide out the $p!,\,q!,\dots$ ways those clones could swap among themselves without changing what you see. Recognising which adjustment a problem demands — and resisting the urge to plug into the first formula you remember — is the skill that separates a confident solver from a guesser. The single question that settles it every time: does order matter, and are the objects truly distinct?

Arrangements of three letters where order matters Order matters: arranging A, B, C ${}^{3}P_{3} = 3! = 6$ — each box can hold a different letter ABC ACB BAC BCA CAB CBA Filling r slots from n distinct objects without repetition ${}^{n}P_{r}$: choices drop by one per slot n n−1 n−2 n−r+1 r slots in total, so the last factor is n − r + 1
Example 1: In how many ways can the offices of President, Secretary, and Treasurer be filled from a club of 10 members (no person holds two offices)?
  1. The three offices are distinct, so order matters — this is a permutation of $10$ taken $3$ at a time.
  2. ${}^{10}P_{3} = \dfrac{10!}{(10-3)!} = \dfrac{10!}{7!} = 10 \times 9 \times 8$.
  3. $10 \times 9 = 90$, and $90 \times 8 = 720$.

Answer: $720$ ways.

Example 2: How many distinct arrangements can be made of the letters of the word MATHEMATICS?
  1. MATHEMATICS has $11$ letters. Count repeats: M appears $2$ times, A appears $2$ times, T appears $2$ times; H, E, I, C, S appear once each.
  2. With objects not all distinct, the count is $\dfrac{11!}{2!\,2!\,2!}$.
  3. $11! = 39{,}916{,}800$ and $2!\,2!\,2! = 8$.
  4. $\dfrac{39{,}916{,}800}{8} = 4{,}989{,}600$.

Answer: $4{,}989{,}600$ distinct arrangements.

Example 3: How many 4-letter codes can be formed from the 26 letters of the alphabet if letters may be repeated?
  1. Repetition is allowed, so each of the $4$ positions independently has all $26$ letters available.
  2. By the multiplication principle the count is $26 \times 26 \times 26 \times 26 = 26^{4}$.
  3. $26^2 = 676$, and $676^2 = 456{,}976$.

Answer: $26^{4} = 456{,}976$ codes.

Example 4: In how many ways can the letters of the word EQUATION be arranged so that all the vowels come together?
  1. EQUATION has $8$ distinct letters. The vowels are E, U, A, I, O (five vowels); the consonants are Q, T, N (three consonants).
  2. Glue the five vowels into a single block. We now arrange this block together with the $3$ consonants — that is $4$ items in a row: $4! = 24$ ways.
  3. Within the block, the $5$ vowels can be ordered among themselves in $5! = 120$ ways.
  4. Multiply: $4! \times 5! = 24 \times 120 = 2{,}880$.

Answer: $2{,}880$ arrangements.

Example 5: Find $n$ if ${}^{n}P_{4} = 20 \times {}^{n}P_{2}$.
  1. Write each side out: ${}^{n}P_{4} = n(n-1)(n-2)(n-3)$ and ${}^{n}P_{2} = n(n-1)$.
  2. The equation becomes $n(n-1)(n-2)(n-3) = 20\,n(n-1)$.
  3. Since $n \ge 4$, divide both sides by $n(n-1)$: $(n-2)(n-3) = 20$.
  4. Expand: $n^2 - 5n + 6 = 20 \Rightarrow n^2 - 5n - 14 = 0 \Rightarrow (n-7)(n+2) = 0$.
  5. So $n = 7$ or $n = -2$; reject the negative root.

Answer: $n = 7$.

Example 6: How many 5-digit numbers can be formed from the digits $1, 2, 3, 4, 5, 6, 7$ without repetition such that the number is even?
  1. For the number to be even, the units digit must be one of $2, 4, 6$ — that is $3$ choices for the last position.
  2. The remaining $4$ positions are filled from the $6$ digits left, in order, without repetition: ${}^{6}P_{4} = 6 \times 5 \times 4 \times 3 = 360$.
  3. Multiply by the choices for the units digit: $360 \times 3 = 1{,}080$.

Answer: $1{,}080$ even numbers.

Quick recap
  • A permutation is an ordered arrangement; use it whenever position matters.
  • ${}^{n}P_{r} = \dfrac{n!}{(n-r)!}$; in particular ${}^{n}P_{n} = n!$ and ${}^{n}P_{0} = 1$.
  • With repetition allowed, $r$ slots from $n$ objects give $n^{r}$ arrangements.
  • Objects not all distinct: divide by the factorials of each repeat — $\dfrac{n!}{p!\,q!\cdots}$.
  • "Together" restrictions: treat the bound group as one block, then multiply by its internal arrangements.
✓ Quick check
The value of 10P3 is:
10×9×8 = 720.
A code consists of one letter followed by one digit. If there are 26 letters and 10 digits, the number of codes is:
By multiplication principle, 26 × 10 = 260.

Combinations

A combination is a selection of objects where order does not matter. Choosing a committee, a hand of cards, a set of questions to attempt — in each case the group $\{A, B, C\}$ is the same group however you write it. This is the single distinction that separates combinations from permutations.

The number of combinations of $n$ distinct objects taken $r$ at a time is written ${}^{n}C_{r}$ or $\binom{n}{r}$:

$${}^{n}C_{r} = \binom{n}{r} = \dfrac{n!}{r!\,(n-r)!}, \quad 0 \le r \le n$$

The formula is no accident. To arrange $r$ objects you could first select them ($\binom{n}{r}$ ways) and then order them ($r!$ ways), so ${}^{n}P_{r} = \binom{n}{r} \times r!$. Rearranging gives the combination formula directly — a combination is a permutation with the $r!$ internal orderings divided out.

$$\binom{n}{r} = \dfrac{{}^{n}P_{r}}{r!}$$

The clearest way to keep the two ideas apart is a side-by-side comparison:

AspectPermutation ${}^{n}P_{r}$Combination ${}^{n}C_{r}$
Ordermattersdoes not matter
Keywordarrange, line up, rankselect, choose, committee
Formula$\dfrac{n!}{(n-r)!}$$\dfrac{n!}{r!\,(n-r)!}$
Relation${}^{n}P_{r} = {}^{n}C_{r} \times r!$

Key properties. Two identities recur throughout the syllabus and are worth knowing by sight. The symmetry property:

$${}^{n}C_{r} = {}^{n}C_{n-r}$$

Choosing $r$ objects to keep is the same act as choosing the $n-r$ objects to leave behind, so the two counts must agree. This also gives the boundary values ${}^{n}C_{0} = {}^{n}C_{n} = 1$. The Pascal identity:

$${}^{n}C_{r} + {}^{n}C_{r-1} = {}^{n+1}C_{r}$$

This is the rule behind Pascal's triangle and a stepping stone to the Binomial Theorem: it says that selections of $r$ from $n+1$ objects split cleanly into those that include a fixed object and those that exclude it.

Deeper Insight — "order matters" is the only question you must answer: Nearly every mistake in this chapter comes from confusing a selection with an arrangement, so train yourself to ask one thing before reaching for any formula: if I shuffle the chosen objects, is it a different outcome? If yes, it is a permutation; if no, it is a combination. A committee of three from ten is $\binom{10}{3} = 120$, but if those three become President, Secretary and Treasurer the answer jumps to ${}^{10}P_{3} = 720$ — exactly $3! = 6$ times larger, because each committee can be ranked in $6$ ways. The symmetry ${}^{n}C_{r} = {}^{n}C_{n-r}$ is more than a shortcut for arithmetic; it reflects a genuine duality between what you take and what you leave, and it is why $\binom{n}{r}$ peaks in the middle and tapers symmetrically. Master the order question and the rest of combinatorics — binomial coefficients, probability, even basic statistics — rests on solid ground.

Permutation versus combination of choosing two from three letters Choose 2 from {A, B, C} PERMUTATION — order matters${}^{3}P_{2} = 6$ ABBAACCABCCB AB and BA are counted separately COMBINATION — order ignored${}^{3}C_{2} = 3$ ABACBC AB and BA are the same group6 ÷ 2! = 3 Pascal identity inside Pascal's triangle Pascal Identity: ${}^{n}C_{r-1} + {}^{n}C_{r} = {}^{n+1}C_{r}$ 3 3 6 each entry is the sum of the two above it: 3 + 3 = 6
Example 1: In how many ways can a committee of 3 members be selected from a group of 8 people?
  1. A committee has no internal ranking, so order does not matter — this is a combination.
  2. ${}^{8}C_{3} = \dfrac{8!}{3!\,5!} = \dfrac{8 \times 7 \times 6}{3 \times 2 \times 1}$.
  3. $8 \times 7 \times 6 = 336$ and $3! = 6$, so $\dfrac{336}{6} = 56$.

Answer: $56$ committees.

Example 2: A committee of 3 men and 2 women is to be formed from 6 men and 4 women. In how many ways can this be done?
  1. Choose the men and the women separately, then combine the choices (the two selections happen together, so multiply).
  2. Men: ${}^{6}C_{3} = \dfrac{6 \times 5 \times 4}{3 \times 2 \times 1} = 20$.
  3. Women: ${}^{4}C_{2} = \dfrac{4 \times 3}{2 \times 1} = 6$.
  4. Total $= 20 \times 6 = 120$.

Answer: $120$ ways.

Example 3: Evaluate ${}^{12}C_{10}$ using the symmetry property.
  1. By symmetry, ${}^{n}C_{r} = {}^{n}C_{n-r}$, so ${}^{12}C_{10} = {}^{12}C_{2}$.
  2. ${}^{12}C_{2} = \dfrac{12 \times 11}{2 \times 1}$.
  3. $\dfrac{132}{2} = 66$.

Answer: ${}^{12}C_{10} = 66$.

Example 4: From a standard deck of 52 cards, in how many ways can 5 cards be chosen so that all are spades? (There are 13 spades.)
  1. The order of cards in a hand does not matter, so this is a combination from the $13$ spades.
  2. ${}^{13}C_{5} = \dfrac{13!}{5!\,8!} = \dfrac{13 \times 12 \times 11 \times 10 \times 9}{5 \times 4 \times 3 \times 2 \times 1}$.
  3. Numerator: $13 \times 12 \times 11 \times 10 \times 9 = 154{,}440$. Denominator: $5! = 120$.
  4. $\dfrac{154{,}440}{120} = 1{,}287$.

Answer: $1{,}287$ five-spade hands.

Example 5: Find $n$ if ${}^{n}C_{8} = {}^{n}C_{12}$.
  1. If ${}^{n}C_{a} = {}^{n}C_{b}$ with $a \ne b$, then by symmetry the indices must satisfy $a + b = n$.
  2. Here $8 \ne 12$, so $n = 8 + 12$.
  3. $n = 20$.

Answer: $n = 20$.

Example 6: A student must answer 7 questions out of 10 in an exam, but the first 3 questions are compulsory. In how many ways can the student choose the questions to attempt?
  1. The first $3$ questions must be attempted, so they are fixed — no choice there.
  2. That leaves $7 - 3 = 4$ more questions to choose from the remaining $10 - 3 = 7$ questions.
  3. Order of selection does not matter: ${}^{7}C_{4} = {}^{7}C_{3} = \dfrac{7 \times 6 \times 5}{3 \times 2 \times 1}$.
  4. $\dfrac{210}{6} = 35$.

Answer: $35$ ways.

Quick recap
  • A combination is a selection where order is irrelevant; ${}^{n}C_{r} = \dfrac{n!}{r!\,(n-r)!}$.
  • Permutation and combination are linked: ${}^{n}P_{r} = {}^{n}C_{r} \times r!$.
  • Symmetry: ${}^{n}C_{r} = {}^{n}C_{n-r}$, with ${}^{n}C_{0} = {}^{n}C_{n} = 1$.
  • Pascal identity: ${}^{n}C_{r} + {}^{n}C_{r-1} = {}^{n+1}C_{r}$ — the rule behind Pascal's triangle.
  • Always ask first: does order matter? Yes → permutation; no → combination.
✓ Quick check
In how many ways can 7 beads of different colours be strung to form a necklace?
For a necklace, clockwise and anticlockwise arrangements are indistinguishable. The formula is (n - 1)! / 2. So, 6! / 2 = 720 / 2 = 360.
In an examination, a student must answer 4 questions out of 5 from Section A, and 3 questions out of 5 from Section B. In how many ways can the questions be chosen?
Selections from Section A = 5C4 = 5. Selections from Section B = 5C3 = 10. Total ways = 5 × 10 = 50.
Ready to test this chapter?
Take the Chapter Test →