Probabilistic Methods

Danylo Bevziuk
Index 45564 · Basic

List 2Combinatorics

Counting models — permutations, combinations, sequences

Task 1 — Recognizing Models

Identify the correct counting model for each scenario and compute the result.

  1. a)Arrange 7 students in a line.
  2. b)Choose 4 of 12 people for a committee.
  3. c)Award gold, silver, and bronze among 15 competitors.
  4. d)Create a 6-digit PIN (digits may repeat).
  5. e)Arrange the letters of BANANA.
  6. f)Seat 6 people around a round table.
Model key

Order matters + no repetition → permutation. Order irrelevant + no repetition → combination. Order matters + repetition allowed → sequence. Circular arrangement → circular permutation. Repeated elements present → permutation with repeats.

(1) Line of 7 students

Order matters, no repetition — full permutation of 7 distinct objects.

7!=50407! = 5040
(2) Committee of 4 from 12

Order does not matter, no repetition — combination.

(124)=495\binom{12}{4} = 495
(3) Gold / silver / bronze among 15

Order matters (different medals), no repetition — 3-permutation.

P(15,3)=15!(153)!=151413=2730P(15,3) = \frac{15!}{(15-3)!} = 15 \cdot 14 \cdot 13 = 2730
(4) 6-digit PIN with repetition

Each position independently chooses from 10 digits — sequence with repetition.

106=1,000,00010^{6} = 1{,}000{,}000
(5) Letters of BANANA

BANANA has 6 letters: B×1, A×3, N×2. Order matters but identical letters are indistinguishable — permutation with repeated elements.

6!3!2!1!=720621=60\frac{6!}{3!\,2!\,1!} = \frac{720}{6 \cdot 2 \cdot 1} = 60
(6) 6 people around a round table

Rotations of the same arrangement are identical — circular permutation. Fix one person to remove rotational equivalence.

(61)!=5!=120(6-1)! = 5! = 120
Visual: compare the counts

Comparing the five finite results (the 10610^6 PIN sequence is excluded — it dwarfs the rest).

Counts by model
Answer
5040,495,2730,106=1000000,60,1205040,\quad 495,\quad 2730,\quad 10^{6}=1000000,\quad 60,\quad 120
Explanation tip: The model is determined by two questions: does order matter? and is repetition allowed? Circular arrangements divide by n (equivalently fix one element) to remove rotational duplicates.

Task 2 — Permutations

Count arrangements of people subject to given conditions.

  1. a)8 distinct books arranged on a shelf.
  2. b)8 people seated in a row; two specific people must sit adjacent.
  3. c)8 people seated in a row; two specific people must NOT sit adjacent.
  4. d)10 exam questions arranged in a list; the first question is fixed.
(1) 8 books on a shelf

All 8 distinct objects, order matters — full permutation.

8!=403208! = 40320
(2) Two people must sit adjacent

Glue the pair into one unit, giving 7 objects to arrange. The pair can swap internally in 2! ways.

7!×2!=5040×2=100807! \times 2! = 5040 \times 2 = 10080
(3) Two people must NOT sit adjacent

Subtract the adjacent cases from the unrestricted total.

8!7!×2!=4032010080=302408! - 7! \times 2! = 40320 - 10080 = 30240
(4) First question fixed

One position is determined; freely arrange the remaining 9 questions.

9!=3628809! = 362880
Visual: compare the counts

The first three results share the same order of magnitude and are easy to compare directly (9! = 362880 is charted separately as it is nearly 9×\times larger).

Arrangements of 8 people
Answer
40320,10080,30240,36288040320,\quad 10080,\quad 30240,\quad 362880
Explanation tip: The "gluing" trick converts an adjacency constraint into a smaller permutation problem. Complement counting (subtract bad cases) handles "must NOT" constraints efficiently.

Task 3 — Permutations with Repeated Elements

Count distinct arrangements when some elements are identical.

  1. a)Arrange the letters of MISSISSIPPI.
  2. b)Arrange the letters of STATISTICS.
  3. c)Arrangements of STATISTICS that begin with the letter S.
Formula

When a word of length nn contains repeated letters with frequencies n1,n2,n_1, n_2, \ldots, the number of distinct arrangements is n!n1!n2!\frac{n!}{n_1!\,n_2!\,\cdots}.

(1) MISSISSIPPI

Letters: M×1, I×4, S×4, P×2. Total 11 letters.

11!1!4!4!2!=39916800124242=34650\frac{11!}{1!\,4!\,4!\,2!} = \frac{39916800}{1 \cdot 24 \cdot 24 \cdot 2} = 34650
(2) STATISTICS

Letters: S×3, T×3, A×1, I×2, C×1. Total 10 letters.

10!3!3!1!2!1!=362880066121=50400\frac{10!}{3!\,3!\,1!\,2!\,1!} = \frac{3628800}{6 \cdot 6 \cdot 1 \cdot 2 \cdot 1} = 50400
(3) STATISTICS starting with S

Fix one S in position 1. The remaining 9 letters are: S×2, T×3, A×1, I×2, C×1.

9!2!3!1!2!1!=36288026121=15120\frac{9!}{2!\,3!\,1!\,2!\,1!} = \frac{362880}{2 \cdot 6 \cdot 1 \cdot 2 \cdot 1} = 15120
Visual: compare the counts

All three results are within the same order of magnitude — a direct comparison is readable.

Distinct arrangements with repeated letters
Answer
34650,50400,1512034650,\quad 50400,\quad 15120
Explanation tip: Dividing by the factorials of each repeated-letter count corrects for arrangements that look identical when identical letters are swapped.

Task 4 — Circular Permutations

Count seating arrangements around a round table.

  1. a)8 people seated around a round table (no other restrictions).
  2. b)8 people; two specific people must sit next to each other.
  3. c)8 people; two specific people must sit directly opposite each other.
Circular permutation principle

In a circular arrangement of nn people, rotations are equivalent, so we fix one person and arrange the remaining n1n-1, giving (n1)!(n-1)! arrangements.

(1) Unrestricted circular arrangement of 8

Fix one person; arrange the other 7 freely.

(81)!=7!=5040(8-1)! = 7! = 5040
(2) Two specific people must be adjacent

Treat the two people as a single unit → 7 units in a circle, giving (71)!=720(7-1)! = 720 arrangements. The pair can sit in 2! = 2 internal orders.

(71)!×2!=720×2=1440(7-1)! \times 2! = 720 \times 2 = 1440
(3) Two specific people must sit directly opposite

Fix person A at one seat. In an 8-seat table there is exactly one seat directly opposite; person B must occupy it (1 way). The remaining 6 people fill the other 6 seats freely.

1×6!=7201 \times 6! = 720
(3) Alternative view with both orientations

If we also count A and B swapping positions (B fixed, A opposite), that doubles the count: 2×6!=14402 \times 6! = 1440. Whether we get 720 or 1440 depends on whether the two individuals are distinguishable in the "opposite" relation — since they are distinct people, fixing either one gives 6!=7206!= 720; however, noting that fixing A or fixing B gives the same set of arrangements, the answer is 6!=7206! = 720. We will state the careful derivation: fix A, B is forced to the opposite seat (no additional factor), arrange the remaining 6 people: 6!=7206! = 720.

6!=7206! = 720
Visual: compare the counts

All three results are of the same order of magnitude — the adjacency and opposite constraints reduce the unrestricted count by similar factors.

Circular seating arrangements (8 people)
Answer
5040,1440,7205040,\quad 1440,\quad 720
Explanation tip: For opposite-seat problems, fixing one of the constrained pair removes rotational equivalence and forces the other into a unique seat, leaving a straight permutation of the rest.

Task 5 — Combinations

A club has 7 men and 5 women (12 members total). Various committees are formed.

  1. a)How many committees of 4 are possible?
  2. b)How many committees of 4 contain a specific student?
  3. c)How many committees of 4 contain at least one of two specific students?
  4. d)How many committees of 4 contain exactly two women?
Model

Order does not matter, no repetition — combination.

(1) Any committee of 4 from 12

Choose any 4 of 12 members.

(124)=495\binom{12}{4} = 495
(2) Committee containing a specific person

Fix that person; choose 3 of the remaining 11.

(113)=165\binom{11}{3} = 165
(3) At least one of two specific students

Complement: subtract committees that include neither of the two specific students (choose 4 from the other 10).

(124)(104)=495210=285\binom{12}{4} - \binom{10}{4} = 495 - 210 = 285
(4) Exactly two women

Choose 2 women from the 5 women AND 2 men from the 7 men — multiply by the product rule.

(52)(72)=1021=210\binom{5}{2} \cdot \binom{7}{2} = 10 \cdot 21 = 210
Visual: compare the counts

All four committee counts sit in the same range, making a direct bar comparison straightforward.

Committee counts (12 members, size 4)
Answer
(124)=495,(113)=165,285,210\binom{12}{4}=495,\quad \binom{11}{3}=165,\quad 285,\quad 210
Explanation tip: Fixing a required member reduces both nn and kk by the number fixed. Complement counting efficiently handles "at least one" constraints.

Task 6 — Card Combinations

A standard 52-card deck. Count 5-card hands satisfying each condition.

  1. a)Exactly 2 hearts.
  2. b)At least one heart.
  3. c)No face cards (remove Jacks, Queens, Kings — 12 face cards total, leaving 40).
Total 5-card hands

There are (525)=2,598,960\binom{52}{5} = 2{,}598{,}960 equally likely hands.

(525)=2598960\binom{52}{5} = 2598960
(1) Exactly 2 hearts

Choose 2 hearts from the 13 hearts, and 3 non-hearts from the 39 non-hearts.

(132)(393)=789139=712842\binom{13}{2} \cdot \binom{39}{3} = 78 \cdot 9139 = 712842
(2) At least one heart

Complement: subtract hands with no hearts (all 5 drawn from 39 non-hearts).

(525)(395)=2598960575757=2023203\binom{52}{5} - \binom{39}{5} = 2598960 - 575757 = 2023203
(3) No face cards

Remove all 12 face cards (J, Q, K in each of 4 suits), leaving 40 cards. Choose all 5 from those 40.

(405)=658008\binom{40}{5} = 658008
Visual: compare the counts

All three hand counts are in the hundreds-of-thousands range and compare cleanly on one chart.

5-card hands from 52 cards
Answer
712842,2023203,658008712842,\quad 2023203,\quad 658008
Explanation tip: Separating the deck into a target group and its complement lets us apply the multiplication rule for "exactly k" problems. Complement counting is the standard tool for "at least one" problems.

Task 7 — k-Permutations

Count ordered selections of k objects from n distinct objects.

  1. a)How many ways can the top 3 finishers (1st, 2nd, 3rd) be determined among 12 runners?
  2. b)How many 4-digit numbers can be formed from digits 1–9 with all digits distinct?
  3. c)How many such 4-digit numbers (from 1–9, all distinct) are divisible by 5?
Model

Order matters, no repetition, selecting kk of nnkk-permutation: P(n,k)=n!(nk)!P(n,k)=\frac{n!}{(n-k)!}.

(1) Top 3 of 12 runners

Three distinct medals assigned to three distinct runners — order matters.

P(12,3)=12!9!=121110=1320P(12,3) = \frac{12!}{9!} = 12 \cdot 11 \cdot 10 = 1320
(2) 4-digit numbers, digits 1–9, all distinct

Place 4 digits in order from 9 choices without repetition.

P(9,4)=9!5!=9876=3024P(9,4) = \frac{9!}{5!} = 9 \cdot 8 \cdot 7 \cdot 6 = 3024
(3) Divisible by 5, digits 1–9, all distinct

A number is divisible by 5 iff its last digit is 0 or 5. Since digits are from 1–9, the last digit must be 5 (only option). Fix last digit = 5, then choose and order 3 of the remaining 8 digits for the first three positions.

P(8,3)=876=336P(8,3) = 8 \cdot 7 \cdot 6 = 336
Visual: compare the counts

The three results span different magnitudes but are all in the low thousands, so a single chart remains readable.

k-Permutation counts
Answer
P(12,3)=1320,P(9,4)=3024,P(8,3)=336P(12,3)=1320,\quad P(9,4)=3024,\quad P(8,3)=336
Explanation tip: Fixing a constrained digit (last digit must be 5) and then counting permutations of the rest is a standard approach for digit-restriction problems.

Task 8 — Sequences with Repetition

Count 5-digit PINs (each digit 0–9) under various conditions.

  1. a)Digits may repeat freely.
  2. b)At least one digit is repeated.
  3. c)All digits are different.
Model

Each position independently chooses from 10 digits with repetition → sequence with repetition. "All distinct" uses a kk-permutation.

(1) Unrestricted 5-digit PIN

10 choices per position, 5 positions.

105=10000010^{5} = 100000
(2) All digits different (needed for complement)

First digit: 10 choices; second: 9; third: 8; fourth: 7; fifth: 6.

P(10,5)=109876=30240P(10,5) = 10 \cdot 9 \cdot 8 \cdot 7 \cdot 6 = 30240
(3) At least one repeated digit

Complement: total minus all-different.

10000030240=69760100000 - 30240 = 69760
Visual: compare the counts

The three PIN counts partition the total — all-different and at-least-one-repeat sum exactly to the unrestricted total.

5-digit PIN counts (digits 0–9)
Answer
100000,69760,P(10,5)=30240100000,\quad 69760,\quad P(10,5)=30240
Explanation tip: Repetition-allowed sequences grow as nkn^k, while no-repetition selections grow as P(n,k)P(n,k). Their difference gives the count with at least one repeat.

Task 9 — Digit Restrictions on 5-Digit Numbers

Count 5-digit positive integers (first digit cannot be 0) under various restrictions.

  1. a)Any 5-digit number.
  2. b)Even 5-digit numbers.
  3. c)No repeated digits.
  4. d)At least one repeated digit.
(1) Any 5-digit number

First digit: 1–9 (9 choices). Remaining 4 digits: 0–9 (10 choices each).

9×104=900009 \times 10^{4} = 90000
(2) Even 5-digit numbers

Last digit must be even (0,2,4,6,8 → 5 choices). First digit: 1–9 (9 choices). Middle three digits: 10 choices each.

9×103×5=450009 \times 10^{3} \times 5 = 45000
(3) No repeated digits

First digit: 9 choices (1–9). Second digit: 9 choices (0–9 except first). Third: 8. Fourth: 7. Fifth: 6.

9×9×8×7×6=272169 \times 9 \times 8 \times 7 \times 6 = 27216
(4) At least one repeated digit

Total 5-digit numbers minus those with no repeated digits.

9000027216=6278490000 - 27216 = 62784
Visual: compare the counts

All four counts are in the tens-of-thousands range — a single chart shows how each restriction trims the total.

5-digit number counts
Answer
90000,45000,27216,6278490000,\quad 45000,\quad 27216,\quad 62784
Explanation tip: The leading-digit constraint (no 0) means the first position has 9 choices while subsequent positions have 10. For no-repetition, the second position also has 9 choices (the digit 0 becomes available, but the first-position digit is excluded).

Task 10 — Urn Models

An urn contains 5 red, 4 blue, and 3 green balls (12 total). Balls are drawn.

  1. a)Draw 3 without replacement, order ignored.
  2. b)Draw 3 without replacement, order ignored; exactly two are red.
  3. c)Draw 3 without replacement, order recorded.
  4. d)Draw 3 without replacement, order recorded; exactly two are red.
(1) Unordered draw of 3 from 12

Order irrelevant, no replacement — combination.

(123)=220\binom{12}{3} = 220
(2) Exactly two red, unordered

Choose 2 red balls from 5 red, and 1 non-red ball from the 7 non-red balls.

(52)(71)=107=70\binom{5}{2} \cdot \binom{7}{1} = 10 \cdot 7 = 70
(3) Ordered draw of 3 from 12

Order matters, no replacement — 3-permutation.

P(12,3)=121110=1320P(12,3) = 12 \cdot 11 \cdot 10 = 1320
(4) Exactly two red, ordered

Choose and order 2 red balls from 5: P(5,2)=20P(5,2)=20 ways. Choose 1 non-red from 7: 7 ways. The non-red ball can occupy any of the 3 positions: (31)=3\binom{3}{1}=3 ways.

P(5,2)×7×3=20×7×3=420P(5,2) \times 7 \times 3 = 20 \times 7 \times 3 = 420
Visual: compare the counts

Unordered and ordered draws pair naturally — the ordered counts are exactly 3!3! times larger when comparing total draws.

Urn draws (12 balls, draw 3)
Answer
(123)=220,70,P(12,3)=1320,420\binom{12}{3}=220,\quad 70,\quad P(12,3)=1320,\quad 420
Explanation tip: Whether order is recorded fundamentally changes the model: unordered → combination; ordered → permutation. For ordered draws with composition constraints, combine a permutation of the constrained group with a positional choice for the unconstrained element.

Task 11 — Modeling Outcomes

A bag contains 4 red, 4 blue, and 3 green balls (11 total). Consider several different experiments.

  1. a)Arrange all 11 balls in a row; balls of the same color are indistinguishable.
  2. b)Arrange all 11 balls in a row; every ball carries a unique label.
  3. c)Draw 3 balls; record only the color composition (unordered, unlabeled balls).
  4. d)Draw 3 labeled balls in order from 12 labeled balls (including a 12th hypothetical).
(1) All 11 indistinguishable-within-color arrangements

Permutation with repeated elements: 11 positions, groups of size 4, 4, 3.

11!4!4!3!=3991680024246=11550\frac{11!}{4!\,4!\,3!} = \frac{39916800}{24 \cdot 24 \cdot 6} = 11550
(2) All 11 individually labeled

Once every ball is distinguishable, this is a full permutation of 11 distinct objects.

11!=3991680011! = 39916800
(3) Labeling converts identical objects to distinct

The ratio 11!11550=4!4!3!=3456\frac{11!}{11550}=4!\,4!\,3!=3456 is exactly the number of ways to label balls within each color group — confirming that labeling multiplies the count by the product of within-group factorials.

(4) Color composition of unordered 3-ball draw (11 balls, no labels)

Possible color triples (r,b,g)(r,b,g) with r+b+g=3r+b+g=3, r4r \leq 4, b4b \leq 4, g3g \leq 3: list by r=0,1,2,3r=0,1,2,3. Weighted count using the combination formula gives (113)=165\binom{11}{3}=165 equally-likely labeled draws, but distinct color compositions number only 10 unweighted outcome types.

(5) Ordered draw of 3 from 12 labeled balls

Order matters, no replacement, 12 distinct balls.

121110=132012 \cdot 11 \cdot 10 = 1320
Visual: compare the counts

The fully-labeled arrangement (11!=39,916,80011! = 39{,}916{,}800) is astronomically larger than the other two results — it is omitted from the chart so the remaining bars remain readable.

Arrangement counts (11 balls, 3-draw)
Answer
11!4!4!3!=11550,11!=39916800,121110=1320\frac{11!}{4!\,4!\,3!}=11550,\quad 11!=39916800,\quad 12 \cdot 11 \cdot 10=1320
Explanation tip: The choice of model (labeled vs. unlabeled, ordered vs. unordered) must match the physical experiment. Labeling identical objects inflates the count by the product of within-group factorials.

Task 12 — Mixed Problem

A collection of independent combinatorics sub-problems.

  1. a)Student IDs: 2 letters from {A,B,C,D,E} followed by 3 digits — count IDs (i) with repetition allowed in both parts, (ii) letters distinct, digits repeat, (iii) neither part repeats.
  2. b)Medals (gold/silver/bronze) among 12 runners: total ways; ways if two specific runners must both medal.
  3. c)Committee of 4 from 10 people (6 men, 4 women): total; exactly 2 women; at least 1 woman.
  4. d)7 people around a round table: unrestricted; two specific people must sit together.
  5. e)Passwords of length 5 over 36 symbols (0–9 and A–Z): with repetition; without repetition.
(1a) Letters and digits both allow repetition

5 choices per letter position (repetition ok), 10 choices per digit position.

52×103=25×1000=250005^{2} \times 10^{3} = 25 \times 1000 = 25000
(1b) Letters distinct, digits repeat

Choose and order 2 distinct letters from 5; digits still repeat freely.

P(5,2)×103=20×1000=20000P(5,2) \times 10^{3} = 20 \times 1000 = 20000
(1c) Neither letters nor digits repeat

Order 2 of 5 letters; order 3 of 10 digits.

P(5,2)×P(10,3)=20×720=14400P(5,2) \times P(10,3) = 20 \times 720 = 14400
(2a) Medals among 12 runners

Three distinct medals assigned to three distinct runners — 3-permutation.

P(12,3)=121110=1320P(12,3) = 12 \cdot 11 \cdot 10 = 1320
(2b) Two specific runners must both medal

Assign 2 of the 3 medal positions to the two specific runners: P(3,2)=6P(3,2)=6 ordered assignments. The third medal goes to any of the remaining 10 runners.

P(3,2)×10=6×10=60P(3,2) \times 10 = 6 \times 10 = 60
(3a) Committee of 4 from 10

Choose any 4 of 10 people.

(104)=210\binom{10}{4} = 210
(3b) Exactly 2 women

Choose 2 women from 4 and 2 men from 6.

(42)(62)=615=90\binom{4}{2} \cdot \binom{6}{2} = 6 \cdot 15 = 90
(3c) At least 1 woman

Complement: subtract committees with no women (all 4 from 6 men).

(104)(64)=21015=195\binom{10}{4} - \binom{6}{4} = 210 - 15 = 195
(4a) 7 people around a round table

Circular permutation — fix one person, arrange the other 6.

(71)!=6!=720(7-1)! = 6! = 720
(4b) Two specific people must sit together

Glue the pair into one unit → 6 units around a circle, times 2! internal orders.

(61)!×2!=5!×2=120×2=240(6-1)! \times 2! = 5! \times 2 = 120 \times 2 = 240
(5a) Passwords of length 5, 36 symbols, repetition allowed

36 choices per position independently.

365=6046617636^{5} = 60466176
(5b) Passwords of length 5, 36 symbols, no repetition

Choose and order 5 of 36 symbols.

P(36,5)=3635343332=45239040P(36,5) = 36 \cdot 35 \cdot 34 \cdot 33 \cdot 32 = 45239040
Visual: compare the counts

The ID sub-problems share a comparable scale; the committee sub-problems form a second coherent group — both are charted together for a concise overview.

ID counts (2 letters + 3 digits)
Visual: committee counts

Comparing the three committee outcomes from sub-problem (3) on one chart.

Committee counts (10 people, size 4)
Answer
25000;  20000;  144001320;  60210;  90;  195720;  240365=60466176;  P(36,5)=4523904025000;\; 20000;\; 14400 \quad|\quad 1320;\; 60 \quad|\quad 210;\; 90;\; 195 \quad|\quad 720;\; 240 \quad|\quad 36^{5}=60466176;\; P(36,5)=45239040
Explanation tip: Each sub-problem is solved by first identifying the model (sequence with/without repetition, permutation, combination, circular permutation) and then applying the corresponding formula. Mixed problems test model recognition more than computation.