Sub topic 2
Selections with At Least, At Most and Mixed Conditions
This chapter assumes you know nPr and nCr, factorials, and the addition and multiplication principles.
Selections with Conditions
Many selection problems add a rule such as "at least 2 women." Count the cases that satisfy the rule, or count everything and subtract the cases that break it (the complement method).
Example: choose a committee of 5 from 6 men and 4 women with at least 2 women.
- Total selections: C(10,5) = 252
- No women: C(6,5) = 6
- Exactly one woman: C(4,1) × C(6,4) = 60
- At least 2 women: 252 − 6 − 60 = 186
import math
total = math.comb(10, 5)
no_women = math.comb(6, 5)
one_woman = math.comb(4, 1) * math.comb(6, 4)
print(total - no_women - one_woman) # 186Arrangements with Repeated Letters
Identical objects make arrangements look the same. Divide by the factorial of each repeat count. MISSISSIPPI has 11 letters (I and S four times each, P twice), so it gives 11!/(4! × 4! × 2!) = 34650 arrangements.
Restrictions: Together, Never Together and Fixed Positions
- Together: Glue the pair into one block. Five people with A and B together give 4! × 2! = 48.
- Never together: Subtract the together count from the total: 120 − 48 = 72.
- Fixed position: Place one object, then arrange the rest. Five letters with one fixed give 4! = 24.
Forming Numbers from Digits
Form 4-digit even numbers from 1, 2, 3, 4, 5 without repetition. The last digit must be 2 or 4 (2 choices). The first digit has 4 choices left, and the middle two have 3 × 2 = 6. Total: 2 × 4 × 6 = 48.
Circular Arrangements
Fix one person to remove rotations, leaving (n − 1)! arrangements. Five people at a round table give 4! = 24. If a seating and its mirror image count as one, divide by 2 to get 12.
Exercise
Exercise
Five people sit around a round table. Two specific people must sit next to each other. How many seatings are possible, with rotations counted as the same?
Show answer
Treat the pair as one unit. That gives 4 units, so (4 − 1)! = 6 arrangements. The pair can swap order inside, so 6 × 2! = 12.