Idea: Count a decision step by step
Split the outcome into steps, count the options at each step, and multiply.
- The options may change by path; only their number must stay fixed
- Do the restricted step first
Example: 3 jobs, 9 analysts
analysts, different jobs, nobody takes more than one. How many rosters?
- First job: options, then , then
- Rosters:
Idea: With repetition
Let one person hold several jobs, and every step has all the options again.
- Without repetition:
Formula: k of n in order
Order k of n distinct people. All n of them give n! orders, and 0! = 1.
Example: A code with no leading zero
How many codes of different digits have a first digit that is not zero?
- First digit first: options
- Then , , : zero is back, used digits are out
- Total:
Formula: Glue a block
A block of m who must sit together among n: order the units, then the inside of the block.
Common mistake: Forgetting the inside of the block
traders glued in a row of : counting only misses the order inside the block.
Instead Multiply by : . A block of removes only units.
Quick check: A pair side by side
people sit in a row. In how many orders do and sit side by side?
Show the answer
Answer:
Glue the pair: .
Idea: Say it in the room
Name the steps before you multiply, and why each count does not depend on earlier choices.
- Say you handle the restriction first
- Finish with a tiny case you can list
Courses / Combinatorics for interviews