Discrete MathematicsCounting: Choices, Arrangements and Selections4 of 7
Counting: Choices, Arrangements and Selections · 4

Correcting for Overcounting: The Division Rule

Some arrangements have no starting point or contain identical parts, so we can't count them directly step by step with the product rule.

1

Circular Tables and Bracelets

We want to find how many ways four people A,B,C,DA, B, C, D can sit around a circular dinner table when only their clockwise order matters, and how that count changes when A,B,C,DA, B, C, D are four beads on a bracelet that can also be picked up and flipped over.

Circular Tables and Bracelets
AA
BB
CC
DD
ways= ?\text{ways} = \,?
Text solution
Seat A,B,C,DA, B, C, D in a straight row of chairsPretending there is a first chair through a fourth chair lets us count every straight-line arrangement with the product rule.
4×3×2×1\displaystyle 4 \times 3 \times 2 \times 1 =4!\displaystyle = 4! =24 lines\displaystyle = 24 \text{ lines}
Divide by the 4\clumpsize{4} rotations for a circular tableBending a line into a circle means shifting everyone one seat clockwise gives the exact same table seating, which groups the 2424 lines into clumps of 4\clumpsize{4}.
244\displaystyle \frac{24}{\clumpsize{4}} =6 circular tables\displaystyle = \realcount{6} \text{ circular tables}
Divide by the 2\clumpsize{2} flips as well for a braceletFlipping a bracelet over in your hand turns clockwise A-B-C-D\groupone{A\text{-}B\text{-}C\text{-}D} into its mirror image A-D-C-B\grouptwo{A\text{-}D\text{-}C\text{-}B}, merging two clumps of 4\clumpsize{4} rotations into one clump of 8\clumpsize{8} lines.
AA
BB
CC
DD
A-B-C-D\htmlClass{lc-blue}{A\text{-}B\text{-}C\text{-}D}
AA
DD
CC
BB
A-D-C-B\htmlClass{lc-pink}{A\text{-}D\text{-}C\text{-}B}
flip\htmlClass{lc-violet}{\text{flip}}
244×2\displaystyle \frac{24}{\clumpsize{4 \times 2}} =248\displaystyle = \frac{24}{\clumpsize{8}} =3 bracelets\displaystyle = \realcount{3} \text{ bracelets}

Rotating the four-bead ring cycles through a box of 4\clumpsize{4} straight lines inside the board of 2424, and flipping the ring over merges that box with its mirror-image box of 4\clumpsize{4} to form a single clump of 8\clumpsize{8}.

Rotating a four-bead ring steps through a clump of 4 straight-line orders out of the 24, and flipping it over joins that clump with its mirror image to make a clump of 8.
2

Rearranging Words with Repeated Letters

Now we want to count the distinct 66-letter rearrangements of the word PEPPER\text{\groupone{P}\grouptwo{E}\groupone{P}\groupone{P}\grouptwo{E}R}, where the three P\groupone{\text{P}}'s look identical and the two E\grouptwo{\text{E}}'s look identical.

This "pretend order matters, then divide" move is where the combinations formula comes from: to choose an unordered group of kk people from nn, we divide the ordered lineups by the k!\clumpsize{k!} ways to rearrange the kk chosen people.

C(n,k)=n!(n−k)! k!⏟clump size\displaystyle \begin{aligned}\realcount{C(n, k)} &= \frac{n!}{(n - k)! \, \clumpsize{\underbrace{k!}_{\text{clump size}}}}\end{aligned}
Rearranging Words with Repeated Letters
P\htmlClass{lc-blue}{\text{P}}
E\htmlClass{lc-pink}{\text{E}}
P\htmlClass{lc-blue}{\text{P}}
P\htmlClass{lc-blue}{\text{P}}
E\htmlClass{lc-pink}{\text{E}}
R\text{R}
arrangements= ?\text{arrangements} = \,?
Text solution
Number the repeated letters to make all 66 letters distinctWriting the word as P1E1P2P3E2R\groupone{\text{P}_1} \grouptwo{\text{E}_1} \groupone{\text{P}_2} \groupone{\text{P}_3} \grouptwo{\text{E}_2} \text{R} lets us count every arrangement in a line with a factorial.
6!\displaystyle 6! =720 numbered words\displaystyle = 720 \text{ numbered words}
Count how many numbered words collapse into PEPPER\text{\groupone{P}\grouptwo{E}\groupone{P}\groupone{P}\grouptwo{E}R}Keeping the plain spelling fixed, we can scramble P1,P2,P3\groupone{\text{P}_1, \text{P}_2, \text{P}_3} across the three P\groupone{\text{P}} slots in 3!\groupone{3!} ways and E1,E2\grouptwo{\text{E}_1, \text{E}_2} across the two E\grouptwo{\text{E}} slots in 2!\grouptwo{2!} ways.
3!×2!\displaystyle \groupone{3!} \times \grouptwo{2!} =6×2\displaystyle = \groupone{6} \times \grouptwo{2} =12 numbered words per clump\displaystyle = \clumpsize{12} \text{ numbered words per clump}
Divide the numbered words by the clump sizeErasing the subscripts collapses every clump of 12\clumpsize{12} numbered arrangements into 1\realcount{1} real word.
6!3! 2!\displaystyle \frac{6!}{\groupone{3!} \, \grouptwo{2!}} =72012\displaystyle = \frac{720}{\clumpsize{12}} =60 distinct words\displaystyle = \realcount{60} \text{ distinct words}

Swapping two matching letters like P1\groupone{\text{P}_1} and P2\groupone{\text{P}_2} moves to another line inside the same clump of 3!×2!=12\groupone{3!} \times \grouptwo{2!} = \clumpsize{12} numbered words without changing the plain spelling, while swapping two different letters changes the spelling and jumps to a new clump of 12\clumpsize{12}.

Swapping identical letters stays inside the same clump of 12 numbered words for one plain spelling, while swapping different letters jumps to a new clump of 12.
3

Splitting People into Teams

Next, we want to count how many ways to split 44 friends A,B,C,DA, B, C, D into two unlabeled teams of 22 for a basketball game, and then compare three ways of splitting 66 people A,B,C,D,E,FA, B, C, D, E, F into teams when team names or team sizes change.

Splitting People into Teams
AA
BB
CC
DD
2-on-2 games= ?\text{2-on-2 games} = \,?
Text solution
Pick two teams of 22 in order from 44 playersUsing combinations to fill the left court slot and the right court slot already erases the player order inside each team.
C(4,2)×C(2,2)\displaystyle C(4, 2) \times C(2, 2) =6×1\displaystyle = 6 \times 1 =6 ordered team pairs\displaystyle = 6 \text{ ordered team pairs}
Divide by the 2!\clumpsize{2!} ways the two unlabeled teams can swap sidesBecause {A,B}∣{C,D}\groupone{\{A, B\}} \mid \grouptwo{\{C, D\}} and {C,D}∣{A,B}\grouptwo{\{C, D\}} \mid \groupone{\{A, B\}} are the exact same game, each matchup appears twice (starting from all 4!=244! = 24 player lines instead divides by 2×2\clumpsize{2 \times 2} for player swaps inside the two teams and 2\clumpsize{2} for swapping sides: 242×2×2=248=3\frac{24}{\clumpsize{2 \times 2 \times 2}} = \frac{24}{\clumpsize{8}} = \realcount{3}).
62!\displaystyle \frac{6}{\clumpsize{2!}} =62\displaystyle = \frac{6}{\clumpsize{2}} =3 games\displaystyle = \realcount{3} \text{ games}

When we split 66 people A,B,C,D,E,FA, B, C, D, E, F into teams using combinations, whether we divide depends on whether the teams can actually swap places without changing the outcome:

A\htmlClass{lc-blue}{A}
B\htmlClass{lc-blue}{B}
C\htmlClass{lc-pink}{C}
D\htmlClass{lc-pink}{D}
E\htmlClass{lc-violet}{E}
F\htmlClass{lc-violet}{F}
clump size\text{clump size}
3!=6\htmlClass{lc-orange}{3! = 6}
Cooking\text{Cooking}
Cleaning\text{Cleaning}
Shopping\text{Shopping}
A\htmlClass{lc-blue}{A}
B\htmlClass{lc-blue}{B}
C\htmlClass{lc-pink}{C}
D\htmlClass{lc-pink}{D}
E\htmlClass{lc-violet}{E}
F\htmlClass{lc-violet}{F}
clump size\text{clump size}
1\htmlClass{lc-orange}{1}
A\htmlClass{lc-blue}{A}
B\htmlClass{lc-blue}{B}
C\htmlClass{lc-blue}{C}
D\htmlClass{lc-blue}{D}
E\htmlClass{lc-pink}{E}
F\htmlClass{lc-pink}{F}
clump size\text{clump size}
1\htmlClass{lc-orange}{1}
C(6,2)×C(4,2)×C(2,2)3!=15×6×16=906=15 pairings\displaystyle \begin{aligned} &\frac{C(6, 2) \times C(4, 2) \times C(2, 2)}{\clumpsize{3!}} \\[8pt] &= \frac{15 \times 6 \times 1}{\clumpsize{6}} = \frac{90}{\clumpsize{6}} \\[6pt] &= \realcount{15} \text{ pairings} \end{aligned}
C(6,2)×C(4,2)×C(2,2)=15×6×1=90 assignments\displaystyle \begin{aligned} &C(6, 2) \times C(4, 2) \times C(2, 2) \\ &= 15 \times 6 \times 1 \\ &= \realcount{90} \text{ assignments} \end{aligned}
C(6,4)×C(2,2)\displaystyle C(6, 4) \times C(2, 2) =15×1\displaystyle = 15 \times 1 =15 splits\displaystyle = \realcount{15} \text{ splits}
4

When Clumps Aren't the Same Size

Finally, we want to find how many different outcomes can appear when we roll two identical white dice together, where rolling a 11 and a 22 is a single unpainted outcome {1,2}\{1, 2\}.

When Clumps Aren't the Same Size
outcomes= ?\text{outcomes} = \,?
Text solution
Pretend the dice are painted red and blueWith two distinct dice, the product rule counts every ordered (Red,Blue)(\grouptwo{\text{Red}}, \groupone{\text{Blue}}) pair.
6×6\displaystyle 6 \times 6 =36 painted rolls\displaystyle = 36 \text{ painted rolls}
Check the clump sizes when the paint washes offA non-double like {1,2}\{1, 2\} comes from 2\clumpsize{2} painted rolls, (Red 1,Blue 2)(\grouptwo{\text{Red } 1}, \groupone{\text{Blue } 2}) and (Red 2,Blue 1)(\grouptwo{\text{Red } 2}, \groupone{\text{Blue } 1}), while a double like {3,3}\{3, 3\} comes from only 1\clumpsize{1} painted roll, (Red 3,Blue 3)(\grouptwo{\text{Red } 3}, \groupone{\text{Blue } 3}), so we cannot divide all 3636 by 2\wrongcount{2}.
Separate the doubles from the non-doubles before dividingPulling the 6\realcount{6} doubles (clump size 1\clumpsize{1}) aside leaves 3030 non-doubles that all have clump size 2\clumpsize{2}.
6+302\displaystyle \realcount{6} + \frac{30}{\clumpsize{2}} =6+15\displaystyle = \realcount{6} + \realcount{15} =21 outcomes\displaystyle = \realcount{21} \text{ outcomes}

In the 6×66 \times 6 grid of painted (Red,Blue)(\grouptwo{\text{Red}}, \groupone{\text{Blue}}) rolls, every off-diagonal outcome {a,b}\{a, b\} pairs two symmetric cells (a,b)(a, b) and (b,a)(b, a) into a clump of 2\clumpsize{2}, while every diagonal double {a,a}\{a, a\} sits alone in a clump of 1\clumpsize{1}.

On unpainted dice, every non-double comes from two matching cells across the diagonal, while every double on the diagonal comes from just one cell.

Key concepts

When a problem ignores starting seats, identical-item labels, or team order, add fake details so you can count it in order. Then see how many fake versions collapse into one real outcome and divide, as long as every clump is the same size:

Actual outcomes=Ordered count (with fake details)Clump size⏟ways to scramble one outcome’s fake details\displaystyle \begin{aligned}&\realcount{\text{Actual outcomes}} \\[6pt] &= \frac{\text{Ordered count (with fake details)}}{\clumpsize{\underbrace{\text{Clump size}}_{\text{ways to scramble one outcome's fake details}}}}\end{aligned}
Circular arrangements (nn distinct items)

Bending n!n! straight lines into a circle groups them into clumps of n\clumpsize{n} clockwise rotations, giving n!n\frac{n!}{\clumpsize{n}} table seatings (for 44 people, 4!4=244=6\frac{4!}{\clumpsize{4}} = \frac{24}{\clumpsize{4}} = \realcount{6}). If the circle is a bracelet or keyring that can also be flipped over, each rotation clump merges with its mirror image into a clump of 2n\clumpsize{2n}, giving n!2n\frac{n!}{\clumpsize{2n}} rings (for 44 beads, 244×2=3\frac{24}{\clumpsize{4 \times 2}} = \realcount{3}).

Words with repeated letters

Number the identical letters to get n!n! words, then divide by the factorial of each repeated letter's count to erase the subscripts (for PEPPER\text{\groupone{P}\grouptwo{E}\groupone{P}\groupone{P}\grouptwo{E}R}, three P\groupone{\text{P}}'s and two E\grouptwo{\text{E}}'s give 6!3! 2!=72012=60\frac{6!}{\groupone{3!} \, \grouptwo{2!}} = \frac{720}{\clumpsize{12}} = \realcount{60}).

Unlabeled teams

Picking teams in order with combinations already erases the order of people inside each team. Only divide afterward by k!\clumpsize{k!} if kk unlabeled teams have the exact same size (for 33 unlabeled pairs from 66 people, C(6,2)C(4,2)C(2,2)3!=906=15\frac{C(6,2)C(4,2)C(2,2)}{\clumpsize{3!}} = \frac{90}{\clumpsize{6}} = \realcount{15}).

When NOT to divide directly

Do not divide when teams have distinct jobs or different sizes: for a group of 44 and a group of 22, C(6,4)C(2,2)=15C(6,4)C(2,2) = \realcount{15} is already the answer, because a 44-person group cannot swap slots with a 22-person group (and 152\wrongcount{\tfrac{15}{2}} isn't even a whole number). Do not divide the whole board at once when identical-parts outcomes have unequal clump sizes: for two identical dice, separate the 6\realcount{6} doubles (clump size 1\clumpsize{1}) from the 3030 non-doubles (clump size 2\clumpsize{2}) to get 6+302=21\realcount{6} + \frac{30}{\clumpsize{2}} = \realcount{21}.

5

Practice

1

In how many ways can 6 friends sit around a circular dinner table if only their clockwise order around the table matters?

Seat all 6 friends in a straight row of 6 chairs first: when you bend that row into a circle, how many different straight rows rotate into the exact same table?

Seating the 6 friends in a straight line gives 6!=7206! = 720 lineups. Bending the line into a circle groups the lineups into clumps of 6\clumpsize{6} rotations (watch out: do not divide by an extra 2\wrongcount{2} for flips, which would give 60\wrongcount{60}, because a dinner table cannot be flipped upside down, and do not stop at 720720 before erasing the starting chair). Dividing by the clump size gives 7206=\frac{720}{\clumpsize{6}} = 120
2

How many different keyrings can be made by placing 5 distinct keys on a circular ring that can be both rotated and flipped over?

Count the straight-line orderings of the 5 keys first, then ask how many lines collapse into one keyring when you can both rotate the ring around its 5 spots and flip it over.

Arranging the 5 keys in a line gives 5!=1205! = 120 orderings. Each keyring appears in a clump of 5 rotations×2 flips=10\clumpsize{5} \text{ rotations} \times \clumpsize{2} \text{ flips} = \clumpsize{10} lines (watch out: dividing by only the 5\clumpsize{5} rotations and forgetting the 2\clumpsize{2} flips gives the common wrong answer 24\wrongcount{24}). Dividing the 120 lines by the clump size of 10 gives 12010=\frac{120}{\clumpsize{10}} = 12
3

How many distinct 7-letter arrangements can be formed using all the letters of the word SUCCESS?

Count the arrangements as if all 7 letters were numbered, then check which letters repeat and how many ways each repeated letter can be scrambled within its own slots.

Pretending all 7 letters are numbered gives 7!=50407! = 5040 words. Erasing the numbers on the three S\groupone{\text{S}}'s and two C\grouptwo{\text{C}}'s collapses clumps of 3!×2!=6×2=12\groupone{3!} \times \grouptwo{2!} = \groupone{6} \times \grouptwo{2} = \clumpsize{12} numbered words into one (watch out: dividing by the raw counts 3×2=6\groupone{3} \times \grouptwo{2} = \wrongcount{6} instead of 3!×2!=12\groupone{3!} \times \grouptwo{2!} = \clumpsize{12}, or overlooking the two C\grouptwo{\text{C}}'s and dividing only by 3!=6\groupone{3!} = \groupone{6}, gives 840\wrongcount{840}). Dividing by the clump size gives 504012=\frac{5040}{\clumpsize{12}} = 420
4

In how many ways can 9 students be split into 3 unlabeled study groups of 3 students each?

Pick a first, second, and third group of 3 using combinations; then ask how many ways those 3 equal-sized unlabeled groups can swap places across the 3 slots.

Picking the three groups in order gives C(9,3)×C(6,3)×C(3,3)=84×20×1=1680C(9, 3) \times C(6, 3) \times C(3, 3) = 84 \times 20 \times 1 = 1680 ordered groupings. Since the 3 unlabeled groups are the same size, they can swap places in 3!=6\clumpsize{3! = 6} ways (watch out: dividing by 3\wrongcount{3} instead of 3!=6\clumpsize{3! = 6} gives 560\wrongcount{560}, and forgetting to erase the group order leaves 16801680). Dividing by the clump size gives 16806=\frac{1680}{\clumpsize{6}} = 280
5

In how many ways can 7 people be split into three unlabeled groups: one group of 3 and two groups of 2?

Use combinations to pick the group of 3 and then the two groups of 2; before dividing, check which of the three group slots actually hold the same number of people.

Picking the group of 3 and then the two groups of 2 in order gives C(7,3)×C(4,2)×C(2,2)=35×6×1=210C(7, 3) \times C(4, 2) \times C(2, 2) = 35 \times 6 \times 1 = 210 ordered groupings. Only the two unlabeled groups of 2 have the same size and can swap places in 2!=2\clumpsize{2! = 2} ways, while the group of 3 cannot swap with a group of 2 (watch out: dividing by 3!=6\wrongcount{3! = 6} just because there are 3 groups gives the wrong answer 35\wrongcount{35}). Dividing by 2 gives 2102=\frac{210}{\clumpsize{2}} = 105
6

A wooden baton is made by painting each of its two ends with one of 5 available colors (the two ends may be the same color or different colors). Since the baton can be flipped end-for-end, painting the left end red and the right end blue gives the exact same baton as painting the left end blue and the right end red. How many different batons can be made?

Start with the 5×5=255 \times 5 = 25 ordered (left, right) colorings, then check whether a baton with two matching ends has the same clump size as a baton with two different ends when flipped.

Painting a left end and a right end gives 5×5=255 \times 5 = 25 ordered colorings. When flipped end-for-end, the 5\realcount{5} batons with matching ends have a clump size of 1\clumpsize{1}, while the remaining 2020 batons with different ends collapse in clumps of 2\clumpsize{2} (watch out: dividing all 2525 by 2\wrongcount{2} without separating the matching ends gives 12.5\wrongcount{12.5}, and forgetting to add the 5\realcount{5} matching-end batons back gives 10\wrongcount{10}). Adding the two buckets together gives 5+202=5+10=\realcount{5} + \frac{20}{\clumpsize{2}} = \realcount{5} + \realcount{10} = 15