Stats 1 Week 5: Counting & Permutations
0. Prerequisites
NOTE
What you need to know:
- Factorials (): .
- Basic Arithmetic: Multiplication tables.
Quick Refresher
- (Definition).
- Multiplication Rule (AND): If you do A and then B, multiply choices.
- Addition Rule (OR): If you do A or B (mutually exclusive), add choices.
- Permutation (): Arrangement where Order Matters.
1. Core Concepts
1.1 Fundamental Principles of Counting
- Multiplication Principle:
- Scenario: 3 Shirts, 2 Pants. How many outfits?
- Calc: .
- Addition Principle:
- Scenario: Travel by Bus (3 routes) OR Train (2 routes). How many ways?
- Calc: .
1.2 Permutations (Order Matters)
- Formula: .
- Key Idea: Selecting items from distinct items and arranging them.
- Repetition Allowed: . (e.g., PIN codes).
- Circular Permutation: . (Sitting around a round table).
2. Pattern Analysis & Goated Solutions
Pattern 1: The “Together” Constraint (String Method)
Context: “How many ways to arrange 5 boys and 3 girls if all girls must sit together?”
TIP
Mental Algorithm:
- Bundle: Treat the “Together” group as 1 Super-Person.
- Outer Permutation: Arrange the Super-Person + Others.
- Total entities = 5 (Boys) + 1 (Girl-Bundle) = 6.
- Ways = .
- Inner Permutation: Arrange the people inside the bundle.
- 3 Girls = .
- Multiply: Total = .
Example (Detailed Solution)
Problem: 16 Men, 7 Women. Men sit together. Solution:
- Bundle: 16 Men = 1 Unit.
- Outer: 1 (Men-Unit) + 7 Women = 8 Units.
- Wait! Question usually implies circular or linear. Let’s assume Linear first. .
- Correction: If Circular (Round Table): .
- Inner: 16 Men can swap places: .
- Total: . Answer: .
Pattern 2: Digits & Numbers (with/without Repetition)
Context: “Form a 4-digit number using 0, 1, 2, 3, 4, 5. No repetition. Divisible by 4?”
TIP
Mental Algorithm:
- Slots: Draw 4 slots: [ ][ ][ ][ ].
- Constraint First: Fill the restricted slot first.
- Divisible by 4: Last 2 digits must be div by 4 (04, 12, 20, 24, 32, 40, 52…).
- Zero Trap: First digit cannot be 0.
- Fill Rest: Count remaining options for other slots.
Example (Detailed Solution)
Problem: 3-digit number from 0, 1, 2. No repetition. Solution:
- Slots: [H][T][U].
- Constraint: H cannot be 0.
- H options: {1, 2} (2 choices).
- Next: T options: Remaining 2 digits (including 0). (2 choices).
- Next: U options: Remaining 1 digit. (1 choice).
- Total: .
- (Check: 102, 120, 201, 210).
Pattern 3: Dictionary Rank (Lexicographic Order)
Context: “Rank of word ‘CAT’?”
TIP
Mental Algorithm:
- Sort Letters: A, C, T.
- Fix First:
- Start with A: [A] _ _ words. (ACT, ATC).
- Start with C: [C] _ _ Match!
- Fix Second:
- Next available is A: [C][A] _ Match!
- Fix Third:
- Next is T: [C][A][T] Match!
- Count: Previous full blocks + 1.
- 2 (from A) + 1 (CAT itself) = 3.
3. Practice Exercises
- Factorial: Calculate .
- Hint: .
- Arrangement: Ways to arrange letters of “DOG”?
- Hint: .
- Constraint: 5 people in a row, A and B must be at ends.
- Hint: A_ _ B or B _ _A. .
🧠 Level Up: Advanced Practice
Question 1: Circular Permutation with Grouping
Problem: 16 men and 7 women at a round table (23 chairs). 16 men must sit together. Logic:
- Group the Men: Treat 16 men as 1 unit ().
- Remaining Units: 7 women + 1 men-block = 8 units.
- Circular Arrangement: .
- Internal Arrangement: The 16 men can arrange themselves in ways.
- Total: . Answer: .
Question 2: Digit Problems (Divisibility)
Problem: 5-digit numbers from 0,2,4,5,7,9 (no repetition) divisible by 4. Logic:
- Divisibility by 4: Last two digits must be divisible by 4.
- Possible Endings (from given digits):
- 04, 20, 24, 40, 52, 72, 92. (Wait, 04, 20, 40 involve 0).
- Case 1 (Includes 0): Ends in 04, 20, 40. (3 endings).
- Remaining 3 spots filled by remaining 4 digits. .
- Total = .
- Case 2 (No 0): Ends in 24, 52, 72, 92. (4 endings).
- Remaining 3 spots: First spot cannot be 0.
- Slots: . (Total 18).
- Total = .
- Grand Total: . Answer: 144.
Question 3: The “At Least One” Logic
Problem: 6 classmates. How many groups with teacher such that at least one student is there? Logic:
- Total subsets of students: .
- Exclude empty set: .
- Add Teacher: Each group includes teacher. Answer: 63.