Permutations
A permutation is an arrangement of objects in which the order matters. Counting arrangements quickly, without listing them, is the skill behind this topic: how many ways can seven people stand in a queue, how many different "words" can be made from the letters of NEEDLESS, how many four-digit codes are even. Paper 5 usually has one full question on permutations and combinations, worth around eight marks, built from exactly the situations in the syllabus: arrangements in a line, arrangements with repeated objects, arrangements with restrictions (two people together or apart, fixed ends), and people seated in rows. Circular arrangements are not examined.
The multiplication principle
Everything in this topic rests on one idea.
If one choice can be made in ways, and for each of those a second choice can be made in ways, then the two choices together can be made in ways. This extends to any number of successive choices.
Think of filling boxes, one per position. To arrange the letters A, B, C, D in a line: the first position can be filled in ways, the second in (one letter has been used), the third in , the last in . That gives arrangements.
| Position | 1st | 2nd | 3rd | 4th |
|---|---|---|---|---|
| Choices |
The product is written , read " factorial". By definition , which makes the formulas below work in every case.
The number of ways of arranging different objects in a line is
Factorials grow very fast: , , . That is why listing is hopeless and counting methods are needed.
Arranging some of the objects
Often only some of the objects are used. A club of members chooses a president, a secretary and a treasurer: the order matters (being president is different from being treasurer), and only of the are placed. Filling three boxes gives .
A permutation of objects from different objects is an ordered arrangement of of them. The number of such permutations is written :
Check: . And , the full arrangement. Your calculator has an key.
Repeated objects
The word NEEDLESS has letters, but three are E and two are S, so many of the orderings look identical. If the three Es were labelled , each visible arrangement would appear times (once for each way of ordering the labels). Likewise, each would appear times because of the Ss. So the labelled arrangements overcount every real arrangement by a factor of .
The number of arrangements of objects, of which are alike of one kind, alike of another kind, alike of another, and so on, is
NEEDLESS: arrangements. Letters that appear once contribute and can be ignored in the denominator.
Restrictions
Most marks are for arrangements with conditions. There are a few standard techniques; the art is recognising which one a question needs.
Fixed positions: deal with them first
If a position is restricted (the arrangement must start with a vowel, end with S, the number must be even), fill the restricted positions first, then arrange the rest freely.
Seven different letters C, A, M, B, R, I, D: arrangements beginning with C and ending with D. Fix C and D, then arrange the middle letters: .
Objects that must be together: glue them
Treat the objects that must be together as a single block. Arrange the block with the other objects, then multiply by the number of ways of arranging the objects inside the block.
Seven people including Ali and Bea stand in a line, with Ali and Bea next to each other. Glue them into one block: there are now items to arrange, in ways, and the block can be "Ali Bea" or "Bea Ali", ways. Total: .
Objects that must not be together: subtract, or use gaps
For two objects that must not be next to each other, the quickest method is
For the seven people: .
For three or more objects with no two of them adjacent, subtraction becomes complicated (there are several ways to be "together"). Use the gaps method instead: arrange the unrestricted objects first, then place the restricted objects in the gaps between and at the ends, at most one per gap.
The gaps method (no two of particular objects adjacent)
- Arrange the other objects: count the ways.
- These create gaps (one before each object and one at the end): .
- Place the restricted objects into different gaps. If they are all different, this can be done in ways.
- Multiply.
Seven people with Ali, Bea and Cal no two adjacent: arrange the other in ways, which leaves gaps. Put Ali, Bea and Cal in of these gaps in ways. Total: .
Rows of seats
People seated in two rows are arrangements with fixed positions. Number every seat. If certain people must sit in a certain row, place them in that row first, then arrange everyone else in the remaining seats. Seats in different rows are different positions, so "front row" and "back row" are just restrictions on which positions are allowed.
For any arrangement question
- Decide what is being arranged and whether the objects are all different.
- Deal with the restricted items first: fixed positions, blocks that must be together, items that must be separated (gaps).
- Multiply the number of ways at each stage. Divide by for any repeated objects that remain.
- Sanity-check: the restricted count must be smaller than the unrestricted total, and complementary cases must add up to the total.
Permutations and probability
If all arrangements are equally likely (the letters are "arranged at random"), a probability is a ratio of counts:
For NEEDLESS arranged at random, the probability the arrangement starts with E: fix an E at the front, then arrange the other letters (two Es and two Ss among them) in ways. So the probability is , which agrees with the direct argument that of the letters are E.
Worked examples
Find the number of different arrangements of the letters of the word CAMBRIDGE.
(a) in total, (b) that begin with C and end with E, (c) in which the three vowels A, I, E are together.
Solution
All letters are different.
(a) .
(b) Fix C first and E last; arrange the other letters: .
(c) Glue A, I, E into one block. Arrange the block with the consonants: ways. Arrange the vowels inside the block: ways. Total .
Find the number of different arrangements of the letters of NEEDLESS
(a) in total, (b) in which the three Es are together, (c) in which the two Ss are not next to each other.
Solution
NEEDLESS: N, E, E, E, D, L, S, S (three Es, two Ss).
(a) .
(b) Treat EEE as one block. Items: [EEE], N, D, L, S, S, that is items with two Ss alike. The Es inside the block are identical, so there is only internal arrangement. Total .
(c) First count arrangements with the Ss together: block [SS] with N, E, E, E, D, L is items with three Es alike: . So Ss not together .
Seven people, including Ali, Bea and Cal, stand in a line. Find the number of arrangements in which
(a) Ali and Bea stand next to each other,
(b) Ali and Bea do not stand next to each other,
(c) no two of Ali, Bea and Cal stand next to each other.
Solution
(a) Block [Ali Bea] plus others: arrangements, times for the order inside the block: .
(b) Total , so .
(c) Gaps method. Arrange the other people: ways. This gives gaps: . Place Ali, Bea and Cal in different gaps: ways. Total .
Four-digit numbers are formed from the digits , with no digit repeated. Find how many of these numbers are
(a) possible in total, (b) even, (c) greater than , (d) even and greater than .
Solution
(a) .
(b) The last digit must be , or : ways. The first three digits are then chosen in order from the remaining : . Total .
(c) The first digit must be , or : ways, then . Total .
(d) Both the first and last digits are restricted, and they interact: whether the first digit is even affects how many even digits are left for the end. Split into cases.
- First digit or (odd): ways; last digit , or : ways; middle two from the remaining : . Subtotal .
- First digit : way; last digit or : ways; middle two: . Subtotal .
Total .
A family of adults and children sit for a photograph in two rows of seats, one row behind the other. Find the number of ways they can be arranged if
(a) there are no restrictions,
(b) all adults sit in the back row,
(c) all adults sit in the back row and two particular children, Dan and Eve, sit next to each other in the front row.
Solution
(a) people in different seats: .
(b) Place the adults in of the back-row seats: ways. The children fill the remaining seats: ways. Total .
(c) Adults in the back row: ways, as before. In the front row of seats there are pairs of adjacent seats, and Dan and Eve can sit in either order: ways. The other children fill the remaining seats (one back, two front): ways. Total .
The letters of the word STATISTICS are arranged in a line.
(a) Find the number of different arrangements.
(b) Find the number of arrangements that begin and end with S.
(c) Find the number of arrangements in which the two Is are not next to each other.
(d) An arrangement is chosen at random. Find the probability that it begins and ends with S.
Solution
STATISTICS: S three times, T three times, I twice, A once, C once.
(a) .
(b) Fix S at each end. The middle letters are S, T, T, T, A, I, I, C: one S, three Ts, two Is. .
(c) Is together: block [II] with S, S, S, T, T, T, A, C, that is items with three Ss and three Ts alike: . Not together: .
(d) . Check directly: .
Forgetting the arrangements inside a block. Gluing Ali and Bea together gives arrangements of the items, but each has Ali on the left or Bea on the left. Multiply by (or for a block of different objects). If the objects in the block are identical, as with EEE, there is only internal arrangement.
Subtracting for three or more separated objects. "Total minus all three together" counts arrangements where two of them are still adjacent. Use the gaps method whenever no two of three or more objects may touch.
Dividing out repeats too early or not at all. In "Ss together" for NEEDLESS, the two Ss are inside the block, so they no longer appear in the denominator, but the three Es outside still do: , not .
Interacting restrictions. When two restrictions can use the same object (first digit and last digit both drawn from the even digits), a single product is wrong. Split into cases and add.
- Write a short reason next to every factor: " for the block and 5 others, for the order inside the block". Method marks are given for the structure even if the arithmetic slips.
- Final answers are exact integers; give them in full (, not ).
- Use the complement (total minus together) whenever it is quicker, but state that is what you are doing.
- In probability parts, the total number of arrangements found earlier is usually the denominator; reuse it.
- Read "next to each other", "together", "at each end", "in the front row" very carefully: each phrase signals a specific technique.
- A sense check you can always do: the restricted answer must be smaller than the unrestricted one.
- Multiplication principle: successive choices multiply. Fill positions one at a time.
- different objects in a line: ways; .
- objects from , order mattering: .
- Repeated objects: .
- Fixed positions: fill them first.
- Together: glue into a block, arrange, then multiply by the arrangements inside the block.
- Not together (two objects): total minus together. No two of several: gaps method.
- Rows of seats: treat seats as positions and place restricted people first.
- Probability with random arrangements: favourable count total count.
Practice questions
- In how many ways can different books be arranged on a shelf? In how many of these are two particular books at the two ends of the shelf?
- Find the number of different arrangements of the letters of BANANA.
- Ten runners compete in a race. In how many ways can the gold, silver and bronze medals be awarded?
- Find the number of arrangements of the letters of PARALLEL (a) in total, (b) in which the three Ls are together.
- Five boys and three girls stand in a line. Find the number of arrangements in which (a) the three girls stand together, (b) no two girls stand next to each other.
- Three-digit numbers are formed from the digits with no repetition. (A number cannot begin with .) How many of these numbers are odd and greater than ?
- Find the number of arrangements of the letters of DECIDED (a) in total, (b) that begin and end with D, (c) in which the three vowels are together.
- Ten people sit in two rows of seats. Two of them, Fay and Gus, must sit in the front row. Find the number of arrangements (a) with this condition only, (b) if also Fay and Gus must sit next to each other.
- The letters of MISSISSIPPI are arranged at random. Find the probability that the arrangement begins and ends with S.
- Find the number of arrangements of NEEDLESS in which no two Es are next to each other.
Answers
-
. With two particular books at the ends: they can be placed in ways, and the other books arranged in ways, giving .
-
Six letters with three As and two Ns: .
-
Order matters (gold is different from silver): .
-
PARALLEL: P, A, A, R, L, L, L, E (two As, three Ls). (a) . (b) Block [LLL] with P, A, A, R, E: items with two As alike: .
-
(a) Block of girls plus boys: arrangements, times inside the block: . (b) Arrange the boys: . They create gaps; place the girls in different gaps: . Total .
-
The first digit is , or ; the last digit is , or , and these can clash. First digit : last digit or ( ways), middle digit from the remaining: . First digit : last digit , or ( ways), middle ways: . First digit : last digit or , middle ways: . Total .
-
DECIDED: D three times, E twice, C, I. (a) . (b) Fix D at each end; arrange D, E, E, C, I in the middle: . (c) The vowels are E, I, E. Block [vowels] with D, D, D, C: items with three Ds alike: . Inside the block, E, I, E can be arranged in ways. Total .
-
(a) Fay and Gus in of the front seats: ways. The other people fill seats: . Total . (b) A row of has adjacent pairs of seats, and Fay and Gus can sit in either order: ways. Total .
-
MISSISSIPPI: M once, I four times, S four times, P twice. Total arrangements . Beginning and ending with S: the middle letters are M, I, I, I, I, S, S, P, P: . Probability (3 s.f.). Check: .
-
Arrange N, D, L, S, S first: ways. This creates gaps. The three Es are identical, so we only choose which gaps receive an E: ways (this is , see combinations). Total .