Lecture notes
- Rule of sum
- Rule of product
- Counting
- With order, with repetition
- With order, without repetition
- Without order, without repetition
- Without order, with repetition
Examples
Example 1
How many different 5-letter case-sensitive passwords can we generate?
→ Selection of k objects out of n objects: options
- 5 fields
- 26 letters (52 including cases)
- Order and repetition matter
Example 2
Committee with 10 members. Chairperson, treasurer and administrator. Each member can do at most 1 role. How many possibilities?
→ Selection of
- Order matters, no repetitions allowed
- 3 fields (k)
- 10 members
Example 3
Exam has 7 questions. You can answer 4 of them. How many combinations?
→ Selection of
- Order doesn’t matter, no repetitions allowed
- 4 fields
- 7 items
Example 4
3 Identical dice. If we throw them at the same time, how many different patterns are possible
- Order doesn’t matter
- Repetitions are allowed
- k = 3 fields
- n = 6
Example 5
How many ways can we distribute 10 chocolates over 7 people? What if each person gets at least 1 chocolate? What if each person gets at most 2 chocolates?
Part 1
- Repetition allowed, order doesn’t matter. n = 10, k=7
Part 2
- Repetition allowed, order doesn’t matter. take out all the combinations where 1 any person doesn’t get any chocolate
- We take out 7 chocolates and assign 1 to each person
Part 3
- Repetition allowed, order doesn’t matter