Sub topic 6
Arranging Items When Some Are Identical
Assume you already know factorials and permutations. This chapter adds one complication: some items look exactly alike. When identical items are arranged, swapping two copies does not create a new arrangement.
Why ordinary factorials overcount
For \(n\) distinct items, the number of arrangements in a row is \(n!\). If some items repeat, \(n!\) counts the same visible arrangement several times.
Consider the word AAB. Treating all three positions as distinct gives \(3! = 6\) arrangements. However, swapping the two A's changes nothing. Each visible arrangement was counted \(2!\) times, so the actual count is:
\frac{3!}{2!}=3The three arrangements are AAB, ABA, and BAA.
The repeated-item formula
If there are \(n\) total items, with:
- \(r_1\) identical copies of one item,
- \(r_2\) identical copies of another item,
- and so on,
then the number of distinct arrangements is:
\frac{n!}{r_1!r_2!\cdots}The numerator first treats every item as distinct. Each denominator removes the overcount caused by swapping identical copies.
| Arrangement | Calculation | Number |
|---|---|---|
| BANANA | \(6!/(3!2!)\) | 60 |
BANANA has six letters. The letter A appears three times, N appears twice, and B appears once. Therefore:
\frac{6!}{3!2!}=\frac{720}{6\cdot2}=60The \(1!\) for B is omitted because dividing by 1 does not change the result.
import math
# BANANA: B once, A three times, N twice
arrangements = math.factorial(6) // (
math.factorial(3) * math.factorial(2)
)
print(arrangements) # 60A reliable counting procedure
Use these steps:
- Count the total number of items, including repeated copies.
- Compute the factorial of that total.
- Count each group of identical items.
- Divide by the factorial of every repeated group.
- Simplify before multiplying large numbers when possible.
For example, how many distinct arrangements can be made from MISSISSIPPI?
There are 11 letters. The counts are M: 1, I: 4, S: 4, and P: 2. Thus:
\frac{11!}{4!4!2!}The single M contributes \(1!\), which can be ignored.
Avoiding a common mistake
Do not divide by the number of repeated letters only. Divide by that number's factorial.
For three identical objects, the correction is \(3!\), not 3. The three objects can be swapped in:
3!=3\cdot2\cdot1=6different labeled ways, all of which look identical after the labels are removed.
Also, use this formula only when identical items are truly indistinguishable. Three identical-looking boxes may still be distinct if the problem labels them, such as Box 1, Box 2, and Box 3.
Seeing the overcount
The diagram shows how treating repeated letters as distinct creates duplicate versions of one visible arrangement.
GRE check
The answer must be a whole number. It should also be no larger than \(n!\), because treating repeated items as distinct gives an upper bound. If the repeated groups are large, the division should noticeably reduce the answer.
Exercise
How many distinct arrangements can be made from the letters in LEVEL?
Show answer
LEVEL has five letters, with E repeated twice and L repeated twice. The number is 5!/(2!2!) = 120/4 = 30.