Identical Objects
Every question with a fully worked solution.
- Identical Objects - Video - Arranging Identical Objects Watch
Theory
Permutations with identical objects count the arrangements of a set of objects when some of them are the same, such as the repeated letters of a word or counters of the same colour. This Year 11 Mathematics Extension 1 page explains the rule \(\dfrac{n!}{p!\,q!\,r!\cdots}\), shortest paths on a grid, and arrangements with restrictions: letters fixed in place, identical letters together or separated, the gap method, and probability.
When \(n\) objects are all different, they can be arranged in a row in \(n!\) ways. When some of the objects are identical (the two P's in APPLE, counters of the same colour, identical flags), swapping two identical objects does not give a new arrangement, so \(n!\) counts each arrangement more than once.
Arrangements with identical objects. \(n\) objects, of which \(p\) are identical of one kind, \(q\) are identical of a second kind, \(r\) of a third kind, and so on, can be arranged in a row in \(\dfrac{n!}{p!\,q!\,r!\cdots}\) ways. An object that appears only once gives a factor \(1!=1\), so it can be left out.
Why divide? Label the two A's of AAB as \(\text{A}_1\) and \(\text{A}_2\). The three letters can be arranged in \(3!=6\) ways, but each arrangement appears \(2!=2\) times: \(\text{A}_1\text{A}_2\text{B}\) and \(\text{A}_2\text{A}_1\text{B}\) are both AAB. So there are \(\dfrac{3!}{2!}=3\) arrangements: AAB, ABA and BAA.
Paths on a grid. A shortest path that takes \(a\) steps East (or Right) and \(b\) steps North (or Up) is a row of \(a\) identical E's and \(b\) identical N's, so there are \(\dfrac{(a+b)!}{a!\,b!}\) shortest paths.
Restrictions. Deal with the restriction first, then arrange what is left and divide by the repeats that are left. A letter fixed in a position is taken out. Letters that must be together become one block; a block of identical letters such as EE has only one order inside it. Separated means total minus together. For no two of a letter together, arrange the other letters, then put the repeated letter into the gaps.
Arrangements of \(n\) objects with \(p\), \(q\), \(r\), … identical:
Shortest grid paths with \(a\) steps East and \(b\) steps North:
Separated is the complement of together:
| Word | Letters | Repeats | Arrangements |
|---|---|---|---|
| KANGAROO | \(8\) | A twice, O twice | \(\dfrac{8!}{2!\,2!}=10\,080\) |
| SEESAW | \(6\) | S twice, E twice | \(\dfrac{6!}{2!\,2!}=180\) |
| WOOLLOOMOOLOO | \(13\) | O eight times, L three times | \(\dfrac{13!}{8!\,3!}=25\,740\) |
How to count arrangements with identical objects
- Count the objects and list each repeat, for example TOOWOOMBA: 9 letters, O four times.
- Apply the restriction first: fix letters in their places, join letters that must be together into a block, or set aside the letters that go into gaps.
- Recount the repeats among the objects that are left, then divide by the factorial of each repeat.
- Use the complement for "separated" or "not next to each other": total minus together.
- Multiply stages that follow each other (\(A\to C\) then \(C\to B\); the other letters, then the gaps) and add separate cases. Finish with a \(\therefore\) statement.
Using only some of the letters
Split into cases by the letter left out, because the repeats change. For 6-letter arrangements using 6 of the 7 letters of CARAVAN (A three times; C, R, V, N once):
| \(\text{Leave out an A}\) | \(:\) | \(\dfrac{6!}{2!}=360\) |
| \(\text{Leave out C, R, V or N}\) | \(:\) | \(4\times\dfrac{6!}{3!}=480\) |
| \(\text{Total}\) | \(=\) | \(360+480\) |
| \(=\) | \(840\) |
No two of a letter together: the gap method
Arrange the other letters first. \(m\) letters in a row make \(m+1\) gaps, including both ends. Put the repeated letters into different gaps: choosing \(k\) of the \(m+1\) gaps is arranging \(k\) identical letters and \(m+1-k\) empty markers, \(\dfrac{(m+1)!}{k!\,(m+1-k)!}\) ways. Multiply the two counts.
Probability
When an arrangement is chosen at random, every arrangement is equally likely, so \(P=\dfrac{\text{favourable arrangements}}{\text{total arrangements}}\). In KANGAROO (A twice, O twice) the two O's are together in \(\dfrac{7!}{2!}=2520\) of the \(10\,080\) arrangements, so \(P(\text{O's together})=\dfrac{2520}{10\,080}=\dfrac{1}{4}\).
(i) How many arrangements are possible?
(ii) How many of the arrangements begin with T?
TOOWOOMBA has 9 letters: O four times; T, W, M, B, A once.
(i)
| \(\text{Arrangements}\) | \(=\) | \(\dfrac{9!}{4!}\) |
| \(=\) | \(\dfrac{362\,880}{24}\) | |
| \(=\) | \(15\,120\) |
(ii) Put T first. The other 8 letters are O, O, O, O, W, M, B, A (O four times).
| \(\text{Arrangements}\) | \(=\) | \(\dfrac{8!}{4!}\) |
| \(=\) | \(\dfrac{40\,320}{24}\) | |
| \(=\) | \(1680\) |
\(\therefore\) (i) \(15\,120\) arrangements (ii) \(1680\) begin with T.
(i) how many shortest paths are there from \(A\) to \(B\)?
(ii) how many of these paths pass through \(C\)?
(i) Each path is a row of 7 steps: 4 identical E's and 3 identical N's.
| \(\text{Paths}\) | \(=\) | \(\dfrac{7!}{4!\,3!}\) |
| \(=\) | \(\dfrac{5040}{24\times 6}\) | |
| \(=\) | \(35\) |
(ii) Split the walk at \(C\) and multiply.
\(A\to C\): 1 E step and 2 N steps.
| \(\dfrac{3!}{1!\,2!}\) | \(=\) | \(3\) |
\(C\to B\): 3 E steps and 1 N step.
| \(\dfrac{4!}{3!\,1!}\) | \(=\) | \(4\) |
| \(\text{Paths through } C\) | \(=\) | \(3\times 4\) |
| \(=\) | \(12\) |
\(\therefore\) (i) \(35\) paths (ii) \(12\) pass through \(C\).
(i) In how many arrangements are the two F's separated?
(ii) If an arrangement is chosen at random, find the probability that the F's are separated and the E's are separated. Give your answer as a fraction in simplest form.
COFFEE has 6 letters: F twice, E twice; C and O once.
| \(\text{Total}\) | \(=\) | \(\dfrac{6!}{2!\,2!}=180\) |
(i) F's together: the block FF with C, O, E, E gives 5 objects (E twice). The block FF looks the same either way, so it is not multiplied by 2.
| \(\text{Together}\) | \(=\) | \(\dfrac{5!}{2!}=60\) |
| \(\text{Separated}\) | \(=\) | \(180-60\) |
| \(=\) | \(120\) |
(ii) Subtract the arrangements with at least one pair together. E's together is also \(60\). Both together: blocks FF, EE with C, O are 4 different objects.
| \(\text{Both together}\) | \(=\) | \(4!=24\) |
| \(\text{At least one together}\) | \(=\) | \(60+60-24\) |
| \(=\) | \(96\) | |
| \(\text{Both separated}\) | \(=\) | \(180-96\) |
| \(=\) | \(84\) | |
| \(P\) | \(=\) | \(\dfrac{84}{180}\) |
| \(=\) | \(\dfrac{7}{15}\) |
\(\therefore\) (i) \(120\) arrangements (ii) \(\dfrac{7}{15}\)
TENNESSEE has 9 letters: E four times, N twice, S twice, T once. Arrange the other letters first, then put the E's in the gaps.
Arrange T, N, N, S, S:
| \(\dfrac{5!}{2!\,2!}\) | \(=\) | \(30\) |
These 5 letters make 6 gaps (including both ends): \(\_\;\mathrm{T}\;\_\;\mathrm{N}\;\_\;\mathrm{N}\;\_\;\mathrm{S}\;\_\;\mathrm{S}\;\_\)
Put the 4 identical E's into 4 different gaps. This is arranging 4 E's and 2 empty markers in the 6 gaps:
| \(\dfrac{6!}{4!\,2!}\) | \(=\) | \(15\) |
| \(\text{Arrangements}\) | \(=\) | \(30\times 15\) |
| \(=\) | \(450\) |
\(\therefore\) in \(450\) arrangements no two E's are next to each other.
Common pitfalls
Frequently asked questions
How do you find the number of arrangements of a word with repeated letters?
Count the letters \(n\), then divide \(n!\) by the factorial of the number of times each letter is repeated. KANGAROO has 8 letters with A twice and O twice, so there are \(\dfrac{8!}{2!\,2!}=10\,080\) arrangements.
Why do you divide by the factorial of the repeated letters?
If the \(p\) identical letters were labelled, they could be swapped among themselves in \(p!\) ways without changing the word. So \(n!\) counts every arrangement \(p!\) times, and dividing by \(p!\) removes the repeats.
How do you count shortest paths on a grid?
Each shortest path is a row of steps, for example \(a\) steps East and \(b\) steps North. Steps in the same direction are identical, so there are \(\dfrac{(a+b)!}{a!\,b!}\) paths. For 3 steps Right and 2 steps Up there are \(\dfrac{5!}{3!\,2!}=10\) paths.
How do you count arrangements where two identical letters are not together?
Find the total number of arrangements, then subtract the arrangements with the two letters together. Treat the pair as one block, which has only one order because the letters are identical. In KANGAROO the block OO with K, A, A, N, G, R gives \(\dfrac{7!}{2!}=2520\) arrangements with the O's together, so they are separated in \(10\,080-2520=7560\).
What is the gap method in permutations?
To stop any two of a repeated letter being next to each other, arrange the other letters first, then put the repeated letters into different gaps between them, including both ends. Multiply the two counts.