Counting techniques, permutations, combinations, and probability applications
Counting is the backbone of probability to equipriobable spaces. The key to these problems is identifying 'Order vs No Order' and 'Replacement vs No Replacement'. Always ask: "Does the order of selection matter?" and "Are the objects distinct or identical?".
From a group of 7 men and 6 women, five persons are to be selected to form a committee so that at least 3 men are there on the committee. In how many ways can it be done?
We need to pick 5 people total from (7M + 6W).
Constraint: Men count ≥ 3.
Valid compositions: (3M, 2W) OR (4M, 1W) OR (5M, 0W).
If cases are mutually exclusive (cannot happen at same time), ADD their counts.
If tasks happen in sequence (Select Men AND Select Women), MULTIPLY their counts.
Choose 3 men from 7: C(7,3)
Choose 2 women from 6: C(6,2)
Ways = C(7,3) × C(6,2) = 35 × 15 = 525
Choose 4 men from 7: C(7,4)
Choose 1 woman from 6: C(6,1)
Ways = C(7,4) × C(6,1) = 35 × 6 = 210
Choose 5 men from 7: C(7,5)
Choose 0 women from 6: C(6,0)
Ways = C(7,5) × 1 = 21
Total = Case 1 + Case 2 + Case 3
In how many ways can the letters of the word STATISTICS be arranged? In how many of these do the vowels occur together?
Number of ways to arrange n items where n1 are alike, n2 are alike...
To keep items together, treat them as a single unit. Then multiply by internal arrangements.
S-T-A-T-I-S-T-I-C-S (10 letters)
Vowels: {A, I, I}. Consonants: {S, S, S, T, T, T, C}.
Treat {A, I, I} as one unit X.
Now we arrange {S, S, S, T, T, T, C, X}. Total 8 units.
Total = [8! / (6×6)] × [3! / 2!]
= [40320 / 36] × 3
= 1120 × 3 = 3360
In how many ways can 5 men and 2 ladies be arranged at a round table if two ladies are never together?
Circular arrangement of 7 people.
Constraint: No two L are adjacent (L-L is forbidden).
Number of ways to arrange n distinct objects in a circle = (n-1)!.
To ensure NO TWO items of Type B are together: Arrange Type A first. Then put Type B in gaps.
5 Men in a circle.
Ways = (5 - 1)! = 4! = 24.
5 Men create 5 gaps (spaces between them) in a circle.
_ M _ M _ M _ M _ M _
We need to place 2 Ladies in 5 available gaps.
Order matters (Ladies are distinct persons).
Ways = P(5, 2) = 5 × 4 = 20.
In how many ways can 5 distinct prizes be distributed among 4 students if each student can receive any number of prizes?
Distribute 5 DISTINCT items into 4 DISTINCT bins.
No restriction on bin capacity (can be empty, can full).
If distributing 'r' distinct objects into 'n' distinct boxes with replacement (repetition allowed):
Total Ways = 4 × 4 × 4 × 4 × 4
In how many ways can 10 identical chocolates be distributed among 3 children so that each gets at least one?
Solve x1 + x2 + x3 = 10
Where x1, x2, x3 ≥ 1 (integers).
To distribute n identical items to r bins with each bin ≥ 1:
Visual: Place n items in a row. Choose (r-1) gaps out of (n-1) possible gaps to place dividers.
Number of items n = 10.
Number of bins r = 3.
Constraint: Each ≥ 1.
Ways = C(n-1, r-1)
= C(10-1, 3-1)
= C(9, 2)
In a room of n people, find the probability that at least two people share the same birthday. At what value of n does this probability exceed 50%?
Calculate P(At least one overlap).
Find minimum 'n' such that P > 0.5.
P(Match) = 1 - P(No Match)
P(n) = 1 - [P(365, n) / 365n]
Total possible birthday assignments for n people = 365n.
Favorable assignments (all distinct):
365 × 364 × ... × (365 - n + 1) = P(365, n).
We check values:
Urn contains 5 Red and 3 Black balls. Two balls are drawn. Find P(Both Red) if drawn (i) With Replacement (ii) Without Replacement.
Compare probabilities of RR outcome under two sampling methods.
With Rep = Binomial (Independent).
Without Rep = Hypergeometric (Dependent).
5 Red + 3 Black = 8 Balls.
Draw 1: P(R1) = 5/8. Ball put back.
Draw 2: P(R2) = 5/8.
Draw 1: P(R1) = 5/8. Ball kept out.
Draw 2: Total balls = 7. Red balls = 4.
P(R2 | R1) = 4/7.
In a 5-card poker hand dealt from a standard 52-card deck, find the number of ways to get a "Full House" (3 cards of one rank, 2 of another).
Count valid Full House combinations.
Ranks: 2,3...10,J,Q,K,A (13 total).
Suits: ♣, ♦, ♥, ♠ (4 total).
Any of 13 ranks can be the triplet. C(13, 1).
Choose 3 suits out of 4 for this rank: C(4, 3).
Ways = 13 × 4 = 52.
Any of remaining 12 ranks. C(12, 1).
Choose 2 suits out of 4: C(4, 2).
Ways = 12 × 6 = 72.
Find number of paths from (0,0) to (6,4) on a grid moving only Right (R) and Up (U). How many pass through (3,2)?
1. Total monotonic paths.
2. Constrained paths via intermediate point.
To go from (0,0) to (m, n), ways = C(m+n, m) or C(m+n, n).
m=6, n=4. Total steps = 10.
Phase A: (0,0) to (3,2)
steps = 3+2 = 5. Way A = C(5, 2) = 10.
Phase B: (3,2) to (6,4)
dx = 6-3 = 3. dy = 4-2 = 2. steps = 5.
Way B = C(5, 2) = 10.
4 people check their hats. In how many ways can they carry back hats such that NO ONE gets their own hat?
Number of permutations of {1, 2, 3, 4} such that p(i) ≠ i for all i.
D(n) ≈ n!/e (closest integer).
Recurrence: D(n) = (n-1) [D(n-1) + D(n-2)].
For n=4:
D(4) = 4! (1 - 1 + 1/2 - 1/6 + 1/24)
= 24 (1/2 - 1/6 + 1/24)
= 12 - 4 + 1
If Order is 1234:
Valid: 2143, 2341, 2413...
(Logic: 1 can go to 2, 3, or 4 - 3 options. Then solve reduced problems).
Find the coefficient of x³y⁴z² in the expansion of (x + y + z)⁹.
Coefficient of specific term in multinomial expansion.
Coefficient of x1^k1...xm^km in (x1+...+xm)^n is:
Provided k1 + k2 + ... + km = n.
n = 9
k1 (power of x) = 3
k2 (power of y) = 4
k3 (power of z) = 2
Check: 3 + 4 + 2 = 9. Valid.
Coef = 9! / (3! × 4! × 2!)
= 362,880 / (6 × 24 × 2)
= 362,880 / 288
Find the number of integers between 1 and 1000 (inclusive) that are divisible by 2 or 3 or 5.
Cardinality of Union of 3 sets.
N(A∪B∪C) = N(A)+N(B)+N(C) - [N(AB)+N(BC)+N(CA)] + N(ABC)
|2| = floor(1000/2) = 500
|3| = floor(1000/3) = 333
|5| = floor(1000/5) = 200
Sum = 1033
|2∩3| = |6| = floor(1000/6) = 166
|3∩5| = |15| = floor(1000/15) = 66
|2∩5| = |10| = floor(1000/10) = 100
Sum = 332
|2∩3∩5| = |30| = floor(1000/30) = 33
Find the number of non-negative integer solutions to x + y + z + w = 20 with x ≥ 1, y ≥ 2, z ≥ 0, w ≥ 0.
Number of solutions to linear Eq with constraints.
For x1 + ... + xr = n with xi ≥ 0:
x' = x - 1 => x = x' + 1
y' = y - 2 => y = y' + 2
z' = z, w' = w
Substitute into original eq:
(x' + 1) + (y' + 2) + z' + w' = 20
x' + y' + z' + w' = 17
n = 17 (new sum)
r = 4 (variables)
Ways = C(17 + 4 - 1, 4 - 1)
= C(20, 3)
A closet contains 10 pairs of shoes. If 4 shoes are selected at random, find the number of ways to select them such that there is (i) No making pair (ii) Exactly one matching pair.
Subset selection constraints from paired set.
Build the selection step-by-step.
An elevator starts with 7 passengers and stops at 10 floors. Find the probability that no two passengers get off at the same floor.
P(All passengers choose distinct floors).
P = Favorable / Total
Passenger 1: 10 choices
Passenger 2: 10 choices... etc.
Total = 10⁷ = 10,000,000.
Passenger 1: 10 choices
Passenger 2: 9 choices (cannot match P1)
...
Passenger 7: 4 choices
Favorable = P(10, 7) = 10×9×8×7×6×5×4 = 604,800.
In how many ways can the letters of MISSISSIPPI be arranged so that no two S's are next to each other?
Permutations with separation constraint on identical items.
1. Permute Non-Target (N) items: Ways A.
2. Choose k gaps for Target items: C(spaces, k).
Total = A × C(spaces, k).
(Note: Since S's are identical, we just CHOOSE gaps, we don't arrange them).
S: 4 (Target)
Non-S: {M:1, I:4, P:2}. Total 7.
Arrange {M, I, I, I, I, P, P}:
Ways = 7! / (4! 2! 1!) = 5040 / (24 × 2) = 105.
7 letters create 8 gaps: _ X _ X _ X _ X _ X _ X _ X _
We need to place 4 identical S's in 8 gaps.
Ways = C(8, 4) = 70.