EN FR

PR-3 Solutions: Counting Techniques

Solutions Reference · ← Back to Lesson PR-3

Section 5 — Guided Practice Solutions

Problem 1 — Fundamental Counting Principle (Variants 0–4)

The Fundamental Counting Principle (FCP) multiplies the number of choices at each independent stage. The critical requirement is that the number of options at each stage must not depend on choices made at earlier stages. Adding stage counts (instead of multiplying) gives only the total number of single-stage options — not the number of complete multi-stage outcomes.

Variant 0 (breakfast menu: 3 eggs × 4 toast × 2 drinks):

\[ 3 \times 4 \times 2 = 24 \text{ distinct breakfasts} \]

Each egg choice pairs with every toast choice, and each (egg, toast) pair combines with every drink option — 3 independent stages.

Variant 1 (locker dials: 6 × 6 × 6 with repetition allowed):

\[ 6 \times 6 \times 6 = 216 \text{ distinct settings} \]

Because repetition is allowed, each dial's 6 options are independent of the others. Stages are truly independent here.

Variant 2 (essay configuration: 5 topics × 3 formats × 4 fonts):

\[ 5 \times 3 \times 4 = 60 \text{ distinct configurations} \]

Variant 3 (license plate: 2 letters × 3 digits, repetition allowed):

\[ 26 \times 26 \times 10 \times 10 \times 10 = 676{,}000 \text{ plates} \]

Five independent stages: two letter positions (26 choices each) followed by three digit positions (10 choices each).

Variant 4 (one-topping pizza: 2 sizes × 3 sauces × 5 toppings):

\[ 2 \times 3 \times 5 = 30 \text{ distinct pizzas} \]

Why adding gives the wrong answer: Adding 3 + 4 + 2 = 9 counts the total number of individual options across all categories — not the number of ways to make a complete selection. To build one complete outcome, you must choose one option from every stage simultaneously, which is why multiplication is required.


Problem 2 — Permutation Calculation (Generator)

For any generated problem where order matters and items are selected without replacement, the general solution structure is:

\[ _nP_r = \frac{n!}{(n-r)!} = n \times (n-1) \times \cdots \times (n-r+1) \]

Write out the consecutive descending product from \(n\) down to \(n - r + 1\) to verify against the formula.

Example (\(n = 8\), \(r = 3\) — top 3 finishers in a race):

\[ _8P_3 = 8 \times 7 \times 6 = 336 \]

Stage 1 has 8 choices; stage 2 has 7 (one runner placed); stage 3 has 6. The stages are dependent because each placement removes one runner from the pool.


Problem 3 — Combination Calculation and Symmetry (Variants 0–4)

For each variant, both \(\binom{n}{r}\) and \(\binom{n}{n-r}\) are computed side by side to confirm the symmetry property \(\binom{n}{r} = \binom{n}{n-r}\). Choosing \(r\) objects to include from \(n\) is identical to choosing the \(n-r\) objects to exclude — both selections uniquely determine the same outcome.

Variant 0 (choose 3 from 10):

\[ \binom{10}{3} = \frac{10 \times 9 \times 8}{3 \times 2 \times 1} = \frac{720}{6} = 120 \]

\[ \binom{10}{7} = \frac{10!}{7!\,3!} = 120 \quad \checkmark \quad \binom{10}{3} = \binom{10}{7} \]

Variant 1 (choose 2 from 8):

\[ \binom{8}{2} = \frac{8 \times 7}{2} = 28, \qquad \binom{8}{6} = \frac{8!}{6!\,2!} = 28 \quad \checkmark \]

Variant 2 (choose 4 from 6):

\[ \binom{6}{4} = \frac{6 \times 5}{2 \times 1} = 15, \qquad \binom{6}{2} = \frac{6 \times 5}{2} = 15 \quad \checkmark \]

Variant 3 (choose 5 from 9):

\[ \binom{9}{5} = \frac{9 \times 8 \times 7 \times 6 \times 5}{5!} = \frac{15120}{120} = 126, \qquad \binom{9}{4} = \frac{9!}{4!\,5!} = 126 \quad \checkmark \]

Variant 4 (choose 3 from 7):

\[ \binom{7}{3} = \frac{7 \times 6 \times 5}{6} = 35, \qquad \binom{7}{4} = \frac{7!}{4!\,3!} = 35 \quad \checkmark \]

Symmetry as a shortcut: When \(r\) is large (e.g., \(\binom{20}{17}\)), always apply \(\binom{n}{r} = \binom{n}{n-r}\) first: \(\binom{20}{17} = \binom{20}{3}\), which is far easier to compute.


Problem 4 — Permutation vs. Combination Decision and Counting Probability

(a) Method identification:

This is a combination problem. The 3 students are selected for presentations but no ordering of the 3 presentation slots is specified — the same 3 students in any listed order form the same group. Order does not matter.

(b) Total outcomes:

\[ \binom{20}{3} = \frac{20 \times 19 \times 18}{3 \times 2 \times 1} = \frac{6840}{6} = 1140 \text{ equally-likely groups} \]

(c) Favorable outcomes (exactly 2 of 3 have completed volunteering):

Choose 2 from the 8 who completed volunteering, AND 1 from the 12 who have not. These two choices are independent, so multiply:

\[ \binom{8}{2} \times \binom{12}{1} = \frac{8 \times 7}{2} \times 12 = 28 \times 12 = 336 \]

Note: adding (\(28 + 12 = 40\)) would count ways to make one of the two choices, not both simultaneously. Multiplication gives the joint count.

(d) Probability:

\[ P(\text{exactly 2 volunteers selected}) = \frac{336}{1140} \approx 0.2947 \]

Both numerator and denominator used combinations — consistent counting method throughout.

Section 6 — Independent Practice Solutions

Problem 1 — FCP Probability (Generator)

For any generated FCP probability problem, the general solution structure is:

  1. Count total outcomes using FCP: multiply the number of options at each stage.
  2. Count favorable outcomes: apply the same FCP product but replace the restricted stage count with the smaller favorable count.
  3. Compute \(P(\text{event}) = \text{favorable} / \text{total}\).

For example, if a 3-stage process has \(a\), \(b\), and \(c\) options per stage, and a restriction limits stage 1 to \(a'\) choices:

\[ \text{Total} = a \times b \times c, \qquad \text{Favorable} = a' \times b \times c \]

\[ P = \frac{a' \times b \times c}{a \times b \times c} = \frac{a'}{a} \]

When the restriction applies to only one stage, the probability simplifies to the proportion of favorable options at that stage alone.


Problem 2 — Permutation vs. Combination Classification (Variants 0–4)

Variant 0 (ordered reading list: 4 books chosen from 9, order matters):

Variant 1 (jury of 5 from 12, no roles assigned):

Variant 2 (distinct medals for 1st, 2nd, 3rd from 7 runners):

Variant 3 (2 scoops from 8 flavours, stacking order irrelevant):

Variant 4 (4-character password from 10 distinct letters, ABCD ≠ DCBA):


Problem 3 — Combination-Based Probability (Generator)

For any generated combination probability problem of the form "from \(n\) people (\(k\) with a trait), choose \(r\) — find \(P(\text{exactly}\; m\; \text{have the trait})\)":

\[ P = \frac{\binom{k}{m} \times \binom{n-k}{r-m}}{\binom{n}{r}} \]

The numerator multiplies two independent combination counts: one for choosing \(m\) trait-holders from \(k\), and one for choosing the remaining \(r - m\) from the \(n - k\) without the trait.

Example (\(n = 20\), \(k = 8\), \(r = 5\), \(m = 2\)):

\[ \binom{8}{2} \times \binom{12}{3} = 28 \times 220 = 6160 \]

\[ \binom{20}{5} = 15504 \]

\[ P = \frac{6160}{15504} \approx 0.397 \]


Problem 4 — Find the Error (Variants 0–4)

Variant 0 (starting lineup of 4 from 7 players — student used \(_7P_4 = 840\)):

Variant 1 (3-digit code, all digits different — student used \(10 \times 10 \times 10 = 1000\)):

Variant 2 (hire 2 from 12, no titles — student computed \(\binom{12}{2} = 66\) then doubled to 132):

Variant 3 (5 people in a row — student used \(5^5 = 3125\)):

Variant 4 (student claimed \(\binom{10}{0} = 0\)):


Problem 5 — Synthesis: Hiring Committee

(a) Total ways to select 6 from 15 candidates:

\[ \binom{15}{6} = \frac{15 \times 14 \times 13 \times 12 \times 11 \times 10}{6!} = \frac{3{,}603{,}600}{720} = 5005 \]

(b) Selections with exactly 4 experienced candidates (and 2 inexperienced):

\[ \binom{9}{4} \times \binom{6}{2} = 126 \times 15 = 1890 \]

Choose 4 from the 9 experienced candidates AND 2 from the 6 inexperienced candidates. These are independent selections, so multiply — do not add.

(c) Probability:

\[ P(\text{exactly 4 experienced}) = \frac{1890}{5005} \approx 0.3776 \]

(d) Direct vs. complement for \(P(\text{at least 4 experienced})\):

Direct: sum over exactly 4, exactly 5, and exactly 6 experienced — 3 terms.

Complement: \(1 - P(\text{fewer than 4 experienced})\) requires summing exactly 0, 1, 2, and 3 experienced — 4 terms.

Direct is slightly fewer calculations here. The complement approach is preferable when the complement has fewer cases (the opposite of this situation).

Section 7 — Mastery Check Solutions

Question 1 — Feynman Test

Model answer:

The Fundamental Counting Principle multiplies the number of choices at each stage only when those choices are independent — meaning the number of options at any stage does not change based on what was chosen earlier. When you select items without replacement, the stages are dependent: each choice removes one option from the pool for the next stage.

Counterexample — distinct digits: "How many 4-digit codes can be formed from 0–9 with no repeated digit?" Incorrect: \(10 \times 10 \times 10 \times 10 = 10{,}000\) (treats all stages as having 10 independent choices). Correct: \(10 \times 9 \times 8 \times 7 = 5040\) — each digit used at one position cannot reappear at later positions. The signal words "no repeats," "distinct," and "without replacement" always indicate dependent stages.


Question 2 — Apply: Required Committee Member

A student council of 8 members must form a 3-person committee that always includes the student body president.

Part (a) — Number of valid committees:

Fix the president as one of the 3 committee members. The remaining 2 spots must be filled from the 7 other members (unordered selection):

\[ \binom{7}{2} = \frac{7 \times 6}{2} = 21 \text{ committees} \]

Part (b) — Probability the president is included:

Total unrestricted 3-person committees from 8 members: \(\binom{8}{3} = 56\).

\[ P(\text{president included}) = \frac{21}{56} = \frac{3}{8} = 0.375 \]

Verification via complement:

\(P(\text{president excluded}) = \binom{7}{3} / \binom{8}{3} = 35/56 = 5/8\). Therefore \(P(\text{included}) = 1 - 5/8 = 3/8\) ✓.


Question 3 — Error Analysis

Student's error: Used a combination \(\binom{8}{3} = 56\) for a ranking problem where the prizes are distinct (1st, 2nd, 3rd place). Combinations do not account for order — they treat "gold to A, silver to B" and "gold to B, silver to A" as the same outcome. In a ranked contest, these are two different outcomes.

Correct calculation:

\[ _8P_3 = 8 \times 7 \times 6 = 336 \text{ possible ranked outcomes} \]

Relationship between permutation and combination:

\[ _8P_3 = \binom{8}{3} \times 3! = 56 \times 6 = 336 \quad \checkmark \]

Each unordered group of 3 winners (counted by the combination) can be arranged in \(3! = 6\) distinct ranked orders. Permutation = Combination × internal arrangements.

Section 8 — Boss Fight Solutions

Path A — The Cryptographer

A security app uses passcodes of exactly 4 characters from a 36-character set (digits 0–9 and letters A–Z, case-insensitive). No character may be repeated.

Task 1 — Total 4-character passcodes (no repetition):

Apply FCP with dependent stages (each character used reduces the pool by 1):

\[ 36 \times 35 \times 34 \times 33 = 1{,}413{,}720 \]

Verification: \(36 \times 35 = 1260\); \(1260 \times 34 = 42{,}840\); \(42{,}840 \times 33 = 1{,}413{,}720\).

Task 2 — Passcodes with a digit as the first character:

Restrict stage 1 to digits only (10 choices). Stages 2–4 draw from the remaining 35, 34, 33 characters (the first character — whatever it was — is now used):

\[ 10 \times 35 \times 34 \times 33 = 392{,}700 \]

Task 3 — Probability the first character is a digit:

\[ P(\text{first is a digit}) = \frac{392{,}700}{1{,}413{,}720} = \frac{10}{36} \approx 0.2778 \]

Intuitively, 10 of the 36 characters are digits, so the fraction simplifies to exactly 10/36 — the proportion of digits in the full character set.

Task 4 — With repetition allowed (\(36^4\)):

\[ 36^4 = 1{,}679{,}616 \]

Key change: When repetition is allowed, each of the 4 positions independently has all 36 characters available — the stages are truly independent. In Task 1 (no repetition), using a character at one position removes it from subsequent positions, making the stages dependent (choices decrease from 36 to 35 to 34 to 33). The FCP "independent stages" assumption is satisfied in Task 4 but not in Task 1.


Path B — The Tournament Director

A hockey tournament has 10 teams. Two directors disagree about the number of possible gold-silver-bronze podium outcomes.

Task 1 — Who is correct?

Director B is correct: \(_{10}P_3 = 720\).

Director A's error: used a combination (\(\binom{10}{3} = 120\)) for an ordered outcome. Gold, silver, and bronze are distinct awards — "Team X gold, Team Y silver" is a different podium from "Team Y gold, Team X silver." Order matters → permutation is required. The combination counts the same 3 teams in all orderings as one outcome, undercounting by a factor of \(3! = 6\): \(120 \times 6 = 720\) ✓.

Task 2 — Organizing committee (3 teams, no hierarchy):

No team has a higher role than another → unordered selection → combination:

\[ \binom{10}{3} = \frac{10 \times 9 \times 8}{6} = 120 \text{ distinct committees} \]

Task 3 — Probability Falcons, Bears, Eagles take all three medals (any order):

\[ P = \frac{6}{720} = \frac{1}{120} \approx 0.0083 \]

Task 4 — Probability Falcons wins gold AND Bears wins silver:

\[ P = \frac{8}{720} = \frac{1}{90} \approx 0.0111 \]

Section 9 — Challenge Problem Solutions

Problem 1 — Algebraic Proof + Combinatorial Argument

(a) Algebraic proof that \(\binom{n}{r} = \binom{n}{n-r}\):

Substitute \((n - r)\) for \(r\) in the combination formula:

\[ \binom{n}{n-r} = \frac{n!}{(n-r)!\,(n-(n-r))!} = \frac{n!}{(n-r)!\,r!} = \binom{n}{r} \quad \checkmark \]

The key simplification is \(n - (n - r) = r\), so the denominator becomes \((n-r)! \cdot r!\) — exactly the same as in \(\binom{n}{r}\).

(b) Combinatorial word argument:

Every time you choose \(r\) objects to include from a set of \(n\), you simultaneously determine exactly \(n - r\) objects to exclude. Each inclusion decision uniquely determines its complementary exclusion decision, and vice versa. Therefore the number of ways to choose \(r\) to include equals the number of ways to choose \(n - r\) to exclude.

Verification with \(n = 5\), \(r = 2\): All \(\binom{5}{2} = 10\) pairs from {A, B, C, D, E} chosen, each paired with its complementary triple of excluded elements — 10 pairs map to exactly 10 complementary triples, confirming \(\binom{5}{2} = \binom{5}{3} = 10\).

(c) Efficient evaluation using symmetry:

\[ \binom{20}{17} = \binom{20}{20-17} = \binom{20}{3} = \frac{20 \times 19 \times 18}{3 \times 2 \times 1} = \frac{6840}{6} = 1140 \]

No need to compute \(20!\) — symmetry converts the large \(r = 17\) into the small \(n - r = 3\), making the calculation trivial.


Problem 2 — Complement Technique (Generator)

For the generated complement counting problem (5-card hand from 52 cards, at least one card from a specified suit):

It is far easier to count the complement (no cards from the suit) than to enumerate all ways of getting at least one card from that suit (which requires summing over exactly 1, 2, 3, 4, and 5 cards from the suit — 5 terms).

\[ P(\text{no cards from suit}) = \frac{\binom{39}{5}}{\binom{52}{5}} = \frac{575{,}757}{2{,}598{,}960} \approx 0.2215 \]

\[ P(\text{at least one card from suit}) = 1 - 0.2215 = 0.7785 \]

(The specific suit name varies between generated instances; the computation is identical for hearts, diamonds, clubs, or spades — each suit has 13 cards, leaving 39 non-suit cards.)


Problem 3 — Restricted Arrangements (Block Method)

Six friends (Alex, Blake, Cam, Dana, Evan, Fran) are seated in a row of 6 chairs.

(a) Total seating arrangements:

\[ 6! = 720 \]

All 6 friends are distinct and all 6 chairs are distinct — this is a full permutation of 6 objects.

(b) Arrangements where Alex and Blake sit next to each other (block method):

Treat Alex and Blake as a single "AB block." Now there are 5 entities to arrange (the block + Cam, Dana, Evan, Fran):

\[ 5! \text{ arrangements of 5 entities} \]

Within the block, Alex and Blake can be ordered in \(2! = 2\) ways (Alex–Blake or Blake–Alex). Multiply:

\[ 2 \times 5! = 2 \times 120 = 240 \text{ arrangements with Alex and Blake adjacent} \]

(c) Arrangements where Alex and Blake are NOT adjacent:

\[ 720 - 240 = 480 \]

(d) Probability Alex and Blake are not adjacent:

\[ P(\text{not adjacent}) = \frac{480}{720} = \frac{2}{3} \approx 0.667 \]

Equivalently, \(P(\text{adjacent}) = 240/720 = 1/3\), so \(P(\text{not adjacent}) = 1 - 1/3 = 2/3\) ✓.