PrecalculusSequences, Series and Probability4 of 5
Sequences, Series and Probability · 4
Permutations and Combinations
We often need to count how many different arrangements or groups are possible without listing every single one by hand.
1
Counting with Slots
Suppose we want to know how many outfits we can make from 3 shirts, 4 pairs of pants, and 2 pairs of shoes, or how many 4-digit passcodes we can form using the digits 0 through 9.
Counting with Slots
Here is how the slot method works on the 4-digit passcode using the 10 digits from 0 to 9:
Text solution
Four slots with repeats allowedEach of the 4 slots can take any of the 10 digits, so we multiply all four counts together.
10×10×10×10=10,000
Four slots with no repeatsEach chosen digit uses up one option for the next slot, so the number of choices drops by 1 each time.
10×9×8×7=5,040
2
Factorials and Permutations
Now we want to count how many ways 5 people can line up in 5 chairs for a photo, and how many ways 10 runners can win the Gold, Silver, and Bronze medals in a race.
Factorials and Permutations
Scrambling all n items in a line multiplies from n all the way down to 1, which we write as n!:
ways to scramble 5 items5×4×3×2×1=5!=120
When we have more distinct items than slots and cannot repeat an item, like 10 runners competing for 3 different medals, we stop counting down as soon as the slots are full.
Text solution
Fill the 3 labeled medal slotsStart with all 10 runners for Gold, then 9 remaining runners for Silver, and 8 for Bronze.
Gold10×Silver9×Bronze8=720
Cancel the unused numbers with factorialsThe permutation formula writes the full 10! countdown on top and divides by 7! on the bottom to cancel 7 down to 1, where there are no slots left.
On a test, you don't need to plug into the factorial fraction. Just start counting down at 10 and stop after 3 slots.
3
Combinations: Dividing Out the Scrambles
Awarding Gold, Silver, and Bronze gave 720 outcomes because switching who gets Gold and who gets Silver changes the result. Next, we want to pick an unlabeled group, such as 3 people out of 10 to help carry boxes, or a committee of 4 people from 12, where the order in which we call their names does not matter.
Combinations: Dividing Out the Scrambles
Swapping the same 3 people across the slots gives 3!=6 different medal results on the podium, while the unlabeled group of 3 carrying boxes stays the exact same group across all 6 rows.
Swapping the same 3 people across the 3 slots creates 6 different medal results on the podium, but leaves the unlabeled group of 3 completely unchanged.
Dividing the ordered slot countdown by the k! ways to scramble those k slots gives the combination formula, read "n choose k":
(kn)=C(n,k)=nCk=k!(n−k)!n!=k! scrambles on bottomk×(k−1)×⋯×1n×(n−1)×⋯k slots on top
Let's use this setup to pick a committee of 4 people from 12:
Text solution
Fill 4 slots on top starting from 12Count down 4 slots as if the order you pick them mattered.
12×11×10×9
Divide by the 4! scrambles on the bottomSince the 4 committee spots have no labels, divide by the 4×3×2×1 ways to scramble the same 4 people.
(412)=4×3×2×112×11×10×9
Cancel common factors before multiplyingCancel 4×3 with 12, and divide 10 by 2 to leave 5.
11×5×9=495
4
Words with Repeated Letters
Dividing out scrambles also works when we rearrange items and some of them are identical. Suppose we want to count how many different ways we can rearrange the letters of a word like MOM or BANANA.
Words with Repeated Letters
Swapping the three A's or the two N's among themselves in 3!×2!=12 ways still spells the exact same word BANANA, while swapping two different letters like B and A makes a new word.
Every word made from BANANA bundles 12 tagged scrambles together, so swapping matching letters stays in the same bundle while swapping different letters makes a new word.
Here is the step-by-step count for the different rearrangements of BANANA:
Text solution
Scramble all 6 letters on topCount the 6! ways to arrange all 6 letters as if every letter were different.
6!=6×5×4×3×2×1
Divide out the identical-letter scramblesDivide by 3! for the three identical A's and by 2! for the two identical N's that can swap places without changing the word.
3!×2!6!=(3×2×1)×(2×1)6×5×4×3×2×1=60
5
Committees: Multiply, Add, or Subtract
Now that we can count a single group using combinations, we want to form committees from a club of 6 men and 7 women (13 people total) that combine multiple groups or follow rules like "either/or" and "at least one."
Committees: Multiply, Add, or Subtract
Depending on how the committee is described, we either multiply steps, add separate cases, or subtract the one unwanted case from the total:
Text solution
Two men AND three women (multiply steps)Fill one slot for the group of 2 men and a second slot for the group of 3 women, then multiply because every pair of men can be matched with every group of 3 women.
Two men OR two women (add separate cases)Count the 2-man committees and the 2-woman committees separately, then add them because a single 2-person committee cannot be both at once.
all men(26)+all women(27)=15+21=36
Four people with AT LEAST ONE woman (subtract the "none" case)Count all possible 4-person committees from the 13 people, then subtract the unwanted committees with 0 women (where all 4 are chosen from the 6 men).
total(413)−0 women(46)=715−15=700
6
Restrictions, Boxes, and Gaps
Finally, we want to count arrangements that put a special rule on certain slots, like forming a 4-digit even number from {1,2,3,4,5} without repeats, or lining up 5 friends (A,B,C,D,E) in 5 chairs when certain friends must sit right next to each other or cannot sit next to each other.
Restrictions, Boxes, and Gaps
Seating D and E first as buffers leaves a buffer person between every pair of gaps, so putting at most one of A,B, and C into each gap keeps all of them apart.
Because Charlie, David, and Eve separate the gaps around them, putting Alice and Bob into two different gaps guarantees someone will sit between them when the empty gaps close up.
Here are the steps for each type of restriction:
Text solution
Four-digit even number from {1,2,3,4,5} (fill the restricted slot first)Put one of the 2 even digits (2 or 4) into the last slot first, then fill the remaining three slots from the 4 leftover digits.
4×3×2×even2=48
Alice and Bob must sit together (box method)Put A and B in one box so you are arranging 4 units ([AB],C,D,E) in 4! ways, then multiply by the 2! ways A and B can swap seats inside their box.
4 units4!×inside box2!=24×2=48
Only two people (A and B) must stay apart (subtract "together" from total)Out of all 5!=120 lineups, A and B are either together or apart, so subtract the 48 "together" lineups from the total.
total120−together48=72
Three people (A,B,C) must all stay apart (gaps method)Seat the buffer people (D and E) first in 2! ways to create 3 separated gaps (ADBEC), then place A,B, and C into the 3 gaps in 3×2×1 ways.
buffers2!×gaps(3×2×1)=2×6=12
Key concepts
In these counting problems, draw slots for the decisions and ask whether the roles have different labels or restrictions:
Labeled slots (order matters)
When choosing distinct items without repetition, count down one slot at a time and multiply. Do not divide by k! when the slots have different roles like Gold, Silver, and Bronze (10×9×8=720 is already finished).
Unlabeled slots (combinations)
When picking a group of k from n where order doesn't matter, put k slots on top starting from n and divide by k! on the bottom to remove the scrambles:
(kn)(38)=k!(n−k)!n!=3×2×18×7×6=56
Repeated letters
Start with the factorial of all letters on top, and divide by the factorial of each repeated letter on the bottom (BANANA→3!×2!6!=60).
Combining steps vs. cases
AND → Multiply step counts when each earlier choice gives the same number of options at the next step ((26)×(37) for 2 men and 3 women).
OR → Add separate cases that cannot happen together ((26)+(27) for 2 men or 2 women).
AT LEAST ONE → Subtract the "none" case from the total, keeping any other restrictions in both counts ((413)−(46)).
Slot restrictions, boxes, and gaps
Restricted slot: Consider filling a restricted slot first (4×3×2×even2=48).
Must stay together: Put them in a single box, arrange the units, and multiply by the scrambles inside the box (4!×2!=48).
Must stay apart: For 2 people who cannot sit together, subtract the "together" count from the total (120−48=72). If no two of 3 people may sit next to each other, subtracting "all three together" is not enough (120−36 still leaves pairs sitting next to each other); instead, seat the other people first and place the 3 into separate gaps (2!×(3×2×1)=12).
7
Practice
1
A lunch special lets you choose 1 of 4 soups, 1 of 5 sandwiches, and 1 of 3 drinks. How many different lunch specials can you order?
Do not add them (4+5+3=12 would count the ways to pick just one single item from the menu).
Are you picking a soup, a sandwich, and a drink together to build one meal, or only one item total? Draw a slot for each decision.
We are filling three steps of a single meal (soup AND sandwich AND drink), so we draw 3 slots and multiply the choices. Do not add them (4+5+3=12 would count the ways to pick just one single item from the menu).
4×5×3=60
2
A club with 9 members is electing a President, a Vice President, and a Treasurer, with no member holding more than one office. In how many ways can the 3 offices be filled?
Do not divide by 3!=6 (which would give 84, the count for an unlabeled 3-person committee).
Do the 3 slots have different titles, or are they an unlabeled group of 3?
Draw 3 slots for President, Vice President, and Treasurer, and count down starting from 9. Because the three offices have different titles, stop after multiplying. Do not divide by 3!=6 (which would give 84, the count for an unlabeled 3-person committee).
9×8×7=504
3
An ice cream shop offers 10 flavors. How many different bowls of 3 different flavors can you order?
Forgetting to divide by 3!=6 gives 10×9×8=720, which counts every bowl 6 separate times.
Once the 3 scoops are in the bowl, does the order you named them change the bowl?
Put 3 slots on top starting from 10, then divide by 3! on the bottom because the 3 scoops sit in the same unlabeled bowl (forgetting to divide by 3!=6 gives 10×9×8=720, which counts every bowl 6 separate times).
(310)=3×2×110×9×8=120
4
How many different ways can the letters of the word SUCCESS be arranged?
Dividing by only 3! and missing the two C's gives 840.
Count the total number of letters first, then check which letters appear more than once.
There are 7 letters total, with three identical S's and two identical C's. Divide 7! by both 3! and 2! on the bottom (dividing by only 3! and missing the two C's gives 840).
3!×2!7!=(3×2×1)×(2×1)7×6×5×4×3×2×1=420
5
Using the digits {1,2,3,4,5,6} without repeating any digits, how many 4-digit odd numbers can be formed?
Going left to right as 6×5×4 first and then multiplying by 3 at the end gives 360, ignoring that earlier slots could have already used up the odd digits.
Which of the 4 slots decides whether the number is odd? Fill that slot first.
Fill the restricted last slot first using one of the 3 odd digits (1,3, or 5). That leaves 5 digits available for the first slot, 4 for the second, and 3 for the third (going left to right as 6×5×4 first and then multiplying by 3 at the end gives 360, ignoring that earlier slots could have already used up the odd digits).
5×4×3×odd3=180
6
An animal shelter has 5 dogs and 8 cats. In how many ways can a family adopt a group of 2 dogs and 3 cats?
Adding them gives 10+56=66, which would count adopting either 2 dogs OR 3 cats, not both.
You are choosing a group of 2 dogs AND a group of 3 cats. How do you count each group, and how do you combine the two steps?
Choose 2 dogs out of 5 in (25) ways and 3 cats out of 8 in (38) ways, then multiply the two steps together (adding them gives 10+56=66, which would count adopting either 2 dogs OR 3 cats, not both).
(25)×(38)=2×15×4×3×2×18×7×6=10×56=560
7
A reading list has 6 history books and 5 science books. In how many ways can you choose 3 books if all 3 must be on the same subject?
Multiplying them gives 20×10=200, which counts ways to pick 3 history books AND 3 science books for a 6-book stack.
Can a single selection of 3 books be all history AND all science at the same time?
Split into two separate cases, 3 history books OR 3 science books, and add the two counts together (multiplying them gives 20×10=200, which counts ways to pick 3 history books AND 3 science books for a 6-book stack).
(36)+(35)=3×2×16×5×4+3×2×15×4×3=20+10=30
8
A club has 5 juniors and 6 seniors. How many 4-person committees can be formed that include at least 1 junior?
Picking 1 junior first in 5 ways and multiplying by (310)=120 gives 600, which counts every committee with more than one junior multiple times.
Out of all possible 4-person committees from the 11 members, what is the only case that has no juniors at all?
Count all possible 4-person committees from the 11 members, then subtract the unwanted committees with 0 juniors, where all 4 members are chosen from the 6 seniors (picking 1 junior first in 5 ways and multiplying by (310)=120 gives 600, which counts every committee with more than one junior multiple times).
Six friends line up in 6 chairs for a photo. In how many ways can they sit if 3 specific friends insist on sitting right next to each other?
Forgetting to scramble inside the box leaves just 4!=24.
Put the 3 friends who must sit together into a single box first. How many total units are you arranging in a line now?
Arrange the 4 units (the box of 3 friends plus the 3 other friends) in 4! ways, then multiply by the 3! ways the 3 friends can scramble inside their box (forgetting to scramble inside the box leaves just 4!=24).
4!×3!=24×6=144
10
Four adults and 3 children line up in 7 chairs for a photo. If no two children are allowed to sit next to each other, how many seating arrangements are possible?
Do not simply subtract the "all 3 children together" cases, 7!−5!×3!=4,320, which still leaves pairs of children sitting together.Don't forget the two end gaps, which would leave only 3 middle gaps and give 4!×3!=144.
Seat the 4 adults first as buffers. How many gap spaces do 4 seated adults create when you include the two ends?
Seat the 4 adults first in 4! ways, creating 5 separated gaps (CACACACAC), then place the 3 children into those 5 gaps in 5×4×3 ways (do not simply subtract the "all 3 children together" cases, 7!−5!×3!=4,320, which still leaves pairs of children sitting together; and don't forget the two end gaps, which would leave only 3 middle gaps and give 4!×3!=144).