Use n! for an ordering of n distinct objects and (kn) for an unordered selection of . Count the numerator and denominator using the same convention. Constraints usually call for stages, blocks, or a complement.
More practice
Solve these questions here. More practice counts separately from lesson completion.
0 / 13 solved
Colorful Socks I
Practice
This question requires access to all of its assigned lessons.
Couple Handshakes
Practice
1424Permutations and combinationscoreNew
A room of four couples greet each other by shaking hands. If each person shakes the hand of every other person besides their partner, how many handshakes occur?
Digit Sum
Practice
1428Permutations and combinationscoreNew
Calculate the sum of the digits from 1 to 1 million, inclusive? For example, the sum of the digits of 46 is 10.
Four of a Kind
Practice
1264Permutations and combinationscoreNew
For a uniformly dealt five-card hand from a standard 52-card deck, find the probability of each exact hand type.
Marbles I
Practice
This question requires access to all of its assigned lessons.
Number 50
Practice
06Permutations and combinationscoreNew
How many 10 digit numbers are there whose digits are prime and whose product of its digits is exactly 100000?
Poker Hands I
Practice
1442Permutations and combinationscoreNew
A poker hand consists of five cards drawn from a standard deck of 52 cards. Let p represent the probability of having a four-of-a-kind (i.e four of the five cards share the same rank). Calculate the reciprocal of p.
The Sock Drawer
Practice
This question requires access to all of its assigned lessons.
Split a pile of 1000 coins into two nonempty piles. Add the product of their sizes to a running sum. Repeat on every nonsingleton pile until all piles are single coins.
Card game
Practice
This question requires access to all of its assigned lessons.
This question requires access to all of its assigned lessons.
Aces
Practice
1281Permutations and combinationscoreNew
A standard shuffled deck is dealt to four players, 13 cards each. What is the probability each player receives an ace?
Found a mistake in this lesson?
k
Worked example
A group contains six people. How many three-person committees can be formed?
Let n be the number of available people and k the committee size. Order does not distinguish committees, so divide the ordered selections by the k! orders of each committee. Here n=6 and k=3; the symbol ! means factorial.
(kn)=k!(n−k)!n!.
There are (36)=20 committees. Choosing a first, second, and third person gives 6⋅5⋅4=120 ordered lists. Every committee occurs in 3!=6 orders, so divide by six. If the three roles were distinct offices, the correct count would instead be 120.
Methods and variations
A. Decide what distinguishes an outcome
Start by asking whether order matters, whether replacement is allowed, and whether individual objects are distinguishable. These choices determine the sample space.
Situation
Number of possibilities
Order n distinct objects
n!
Select and order k from n without replacement
n!/(n−k)!
Select k from n without order or replacement
(kn)=n!/[k!(n−k)!]
Fill k labeled positions independently from n choices
nk
An unordered selection occurs in every internal order; divide the ordered count by that multiplicity. Labeled positions and replacement are separate decisions.
An outcome is something the question treats as different. A committee containing the same people is unchanged by listing them in another order; assigning those people to different offices changes the outcome. Write down that distinction before calculating.
For k different ordered selections from n objects, the choices decrease after each selection:
P(n,k)=n(n−1)⋯(n−k+1)=(n−k)!n!.
Now erase the order. Each particular set of k objects was counted once for each of its k! internal orders. Dividing by this same multiplicity for every set gives
(kn)=k!P(n,k)=k!(n−k)!n!.
This division is justified by equal overcounting. It would fail if different final outcomes had different numbers of representations. With replacement, each of the k labeled positions still has n choices, giving nk instead. Dividing nk by k! generally does not count unordered samples with repetition: a repeated-symbol string has fewer distinct internal orders than a string with all symbols different.
Practice
01Permutations and combinationscoreNew
How many four-person committees can be chosen from nine people?
02Permutations and combinationscoreNew
An archive selects four of nine distinct backup drives for an off-site package. The package does not distinguish drive order. How many selections are possible?
03Permutations and combinationshardNew
A four-character access code uses the symbols A, B, C. Repeated symbols are allowed. How many codes are possible?
B. Choose targets and non-targets separately
From N distinct objects containing K targets, an unordered sample of n objects has exactly k targets in (kK)(n−kN−K) ways. Divide by (nN) for its probability; infeasible counts contribute zero.
For at least one target, subtract the samples containing none. For a card hand, choose each rank and suit role once: a four-of-a-kind uses one rank and one card outside it.
Suppose a population contains N distinct objects, of which K are targets. Choose n objects uniformly without replacement, and let X be the number of targets selected. “Without replacement” means the same object cannot be chosen twice. “Uniformly” means every unordered sample of n objects is equally likely.
The probability of exactly k targets is
P(X=k)=(nN)(kK)(n−kN−K).
To understand the numerator, build a favorable sample in two steps. First choose its k targets from the K available targets; there are (kK) choices. The sample must contain n objects altogether, so it still needs n−k non-targets. Choose those from the N−K available non-targets; there are (n−kN−K) choices.
Every target selection can be paired with every non-target selection. Multiplying the counts therefore counts all favorable samples. It counts each sample once because a completed sample uniquely determines its target and non-target groups. This use of the multiplication rule does not assume that the successive draws are independent; draws without replacement generally are dependent.
The denominator (nN) counts every possible unordered sample of size n. Dividing favorable samples by all equally likely samples gives the probability. Use unordered counts in both numerator and denominator: the order in which a sample was drawn does not change its number of targets.
For example, take N=12, K=5 and n=4. A sample with exactly two targets can be built in (25)=10 target selections and (27)=21 non-target selections. Thus
P(X=2)=(412)(25)(27)=49510⋅21=3314≈0.4242.
Assume integer counts with 0≤K≤N and 0≤n≤N. The feasible target counts satisfy
max(0,n−(N−K))≤k≤min(n,K).
The upper bounds say that a sample cannot contain more targets than its size or than exist in the population. The lower bound says that if there are too few non-targets to fill the sample, some targets must be included. Outside this range the probability is zero. As a check, if every object is a target, then X=n with probability one.
For “at least one target,” it is usually easier to subtract the event of selecting none:
P(X≥1)=1−P(X=0)=1−(nN)(nN−K)
Here the subtracted numerator counts samples drawn entirely from the non-targets. If fewer than n non-targets exist, that count is zero and at least one target is guaranteed.
Practice
04Permutations and combinationscoreNew
Four objects are sampled uniformly without replacement from eleven, five of them marked. What is the chance exactly two are marked?
05Permutations and combinationscoreNew
An audit chooses three distinct invoices from nine; two contain errors. What is the chance exactly one erroneous invoice is selected?
06Permutations and combinationshardNew
How many five-card hands from a standard deck contain four cards of one rank? Explain whether their dealing order should appear in this count.
C. Distinguish one specified hand from several acceptable hands
A specified player receives each 13-card set with probability 1/(1352). Accepting several mutually exclusive sets adds their probabilities; accepting several players is different because their success events may overlap.
For a specified player, the random outcome is a set of 13 cards. A fair shuffle makes all (1352) sets equally likely. The denominator can be derived by listing the cards in order and then forgetting their order:
(1352)=13!52⋅51⋯40.
A prescribed all-spade hand is one acceptable set. Accepting any single suit permits four sets, and these events are mutually exclusive for that player:
An all-spade hand is no less likely than any one specified mixed-suit hand. Mixed-suit hands occur more often as a category because there are many more such sets. Changing the question to “at least one player” changes the event: two players can both succeed, so adding the four player probabilities counts some deals repeatedly. Use a union calculation with overlaps for that question.
Practice
07Permutations and combinationscoreNew
A specified player receives thirteen cards from a shuffled standard deck. What is the probability that the hand consists of all thirteen hearts?
08Permutations and combinationshardNew
A specified player receives thirteen cards from a uniformly shuffled standard 52-card deck dealt to four players. Find the probability that this player receives all thirteen cards of any one suit, and decide whether multiplying by four gives the probability that at least one player does so.
D. Count each pair once
There are (2n)=n(n−1)/2 unordered pairs among n distinct people. With c couples and no partner handshakes, subtract the c excluded pairs; summing personal totals counts every handshake twice.
A handshake is identified by its two endpoints. Choosing a first person and a second person gives n(n−1) ordered pairs, but Alice-Bob and Bob-Alice describe the same handshake. Therefore
H=2n(n−1)=(2n).
With c couples there are 2c people and exactly c forbidden partner pairs. Hence H=(22c)−c=2c(c−1). The alternative count gives each person 2c−2 eligible partners, then divides the personal total by two. Agreement between these two counts is a useful check that neither a partner pair nor a handshake direction has been counted incorrectly.
Practice
09Permutations and combinationscoreNew
Five couples attend a party. Each person shakes every other person’s hand except their partner’s, once. How many handshakes occur?
10Permutations and combinationshardNew
Six people each report shaking hands with four others. Is the total number of handshakes twenty-four?
E. Remove repeated-object orders and count digit positions
A word with n positions and multiplicities n1,…,nr has n!/(n1!⋯nr!) distinct arrangements. Swapping identical entries changes nothing.
For digit sums, pad 0 through 10d−1 with leading zeroes. Each digit occurs 10d−1 times in each position, so the total is 45d10d−1; replacing zero by the endpoint 10d adds one.
Imagine temporarily labeling repeated letters so that all n entries are distinct. There are n! orders. Erasing the temporary labels makes each displayed word appear n1!⋯nr! times, because the labels within each repeated group can be permuted independently. Thus
distinct words=n1!⋯nr!n!,n1+⋯+nr=n.
For digit sums, leading zeroes let every position range over the same ten digits. Fix one position in all 10d strings of length d. Each digit occurs 10d−1 times because the remaining positions are free. The digits sum to 0+1+⋯+9=45, so
j=0∑10d−1digitsum(j)=d⋅45⋅10d−1.
The factor d counts positions; it is not a place-value multiplier. If the interval instead includes 10d and excludes zero, add one: zero contributes nothing and the new endpoint has digit sum one.
Practice
11Permutations and combinationscoreNew
How many distinct arrangements of the letters in AABBC are there?
12Permutations and combinationscoreNew
A display has six positions containing three identical amber lamps, two identical blue lamps, and one green lamp. How many color patterns are possible?
13Permutations and combinationshardNew
Add the digit sums of every integer from 1 through 1000, including both endpoints. What is the total?
F. Assign a separate role to each stage
Choose marked positions rather than distinguishable marked cards when the remaining arrangements cancel. For four aces split one per 13-card hand, the favorable position sets number 134 out of (452).
Poker ranks with different roles are ordered choices; equal roles are unordered. Thus a full house has 13(34)12(24)=3744 hands, while two pairs have (213)(24).
For the ace problem, ignore the identities of the four aces initially. The useful outcome is the set of four positions occupied by them. Every position set admits the same 4! ace orders and 48! non-ace orders, so those factors cancel between favorable and total deals. Consequently
P(one ace per hand)=(452)13⋅13⋅13⋅13.
Each factor 13 chooses the ace's position in one labeled hand. Multiplying by another 4! would count information that was deliberately removed from both sides.
In poker, identify the role of every rank before multiplying. A full house has a triple rank and a different pair rank, so the roles distinguish the ranks. Two pairs have identical rank roles, so their ranks form an unordered pair:
NfullhouseNtwopairs=13(34)⋅12(24),=(
The last two factors in the second line choose a fifth rank outside both pair ranks and then its suit. Dividing either count by (552) turns it into a probability. A reliable check is to describe how a completed hand uniquely determines every choice made in the count.
Practice
14Permutations and combinationscoreNew
Twelve distinct cards, including three marked cards, are dealt into three labeled hands of four. What is the probability every hand gets one marked card?
15Permutations and combinationscoreNew
Six different prize tickets are placed among thirty numbered envelopes, grouped into six labeled boxes of five envelopes. What is the probability each box contains exactly one prize?
16Permutations and combinationshardNew
A proposed full-house count is (213)(34)(24). What factor is missing, and why is that factor not also missing when choosing the ranks of two pairs?
Lesson check
17Permutations and combinationscoreNew
Three cards are drawn without replacement from ten cards, four of them red. Find the probability of exactly two red cards.
18Permutations and combinationscoreNew
A committee of three is chosen from eight distinct people. How many committees include a specified person?
19Permutations and combinationscoreNew
A playlist is an unordered selection of four tracks from twelve distinct tracks, three by one artist. How many selections include at least one track by that artist?