Combinatorics
Senior 4 · Mathematics
Combinatorics
Lesson 3 of 5
25 min
Arrange the six letters of KIGALI in a row. If all six letters were different, there would be orders. But the word has two I's, and swapping them gives back the same string: KIGALI with the I's swapped is still KIGALI. Every string has been counted twice, so there are only different strings. This lesson counts arrangements of all the objects: first when they are all different, then when some are identical, and finally when they sit around a circle, where turning the whole circle changes nothing.
Definition
Permutation: an arrangement of all objects of a set in a row (a definite order). The number of permutations of different objects is
It is the arrangement count : choices for the first place, for the second, and so on down to 1.
Example: 5 students can stand in a queue in ways.
Worked example 1: together and apart
(a) In how many ways can 6 different books, 3 of them mathematics books, stand on a shelf if the 3 mathematics books must be together? (b) In how many ways can 5 people sit in a row if Mugisha and Keza must not sit side by side?
Solution
Suppose a word has letters, with one letter appearing times, another times, and so on. Give the copies of each repeated letter temporary labels (I₁, I₂) so that all letters are different: they have orders. Removing the labels, each real string appears times, once for every way of ordering the copies among themselves. Dividing out the overcount gives the rule.
Important
Permutations with repetition (identical objects). The number of different rows of objects, of which are alike of one kind, alike of a second kind, …, alike of a th kind (), is
Worked example 2: words, flags and paths
(a) How many different strings can be made from all the letters of NYABUGOGO? (b) In how many ways can 3 identical red, 2 identical blue and 1 green flag be hung in a row on a pole? (c) A delivery rider in a grid of streets must go 5 blocks east and 3 blocks north. How many shortest routes are there?
Solution
At a round table there is no first seat. What matters is who sits next to whom. In the picture, the four seatings are the same circular arrangement, because each is obtained from the others by turning the table:
Each circular arrangement of people corresponds to exactly rows (cut the circle at any of the places). So the number of circular arrangements is . Another way to see it: seat one person anywhere to fix the circle, then arrange the other people in the seats relative to that person.
Important
Circular permutations. The number of ways to arrange different objects around a circle, when only their positions relative to each other matter, is
If, in addition, the circle can be turned over so that clockwise and anticlockwise orders are the same (beads on a bracelet, keys on a ring), the number is
Worked example 3: a meeting and a bracelet
(a) In how many ways can 8 members of a cell committee sit at a round table? (b) In how many of these do the chairperson and the secretary sit side by side? (c) In how many ways can 7 different beads be threaded on a bracelet?
Solution
Warning
Is the circle really free to turn? Use only when the seats are not distinguished. If the seats are numbered, or one seat is special (the head of the table, the seat by the door), every seat is a definite place and the count is again. And divide by 2 only when a mirror image really is the same arrangement: for people at a table it is not, since each person's left and right neighbours change.
Tip
Three questions decide the formula: Are all the objects different? (if not, divide by the factorials of the repeats) Is it a row or a circle? (a circle: ) Can the circle be flipped? (if so, divide by 2).
The Real Mr. F: Permutations with Repetitions and Circular Permutations. Watch how repeated letters are divided out, and why a round table gives (n − 1)! arrangements.
Practice
Try each one before opening the answers. They get harder as you go.
Key points
Sources and credits
Quick check