📘 Chapter 1: Elementary counting principles – the backbone of combinatorics
Hello, dear student! 🇪🇹 Welcome to your first step in discrete mathematics. Counting might sound simple, but in combinatorics we count huge possibilities systematically. By the end of this lesson you’ll master the two pillars: addition and multiplication principles. I’ll give you everything you need for your Mid, Final or even Exit Exam – with examples, exercises and hidden answers (click to check yourself!).
1.1 Basic counting principles – the two rules that rule them all
➕ Addition principle (the “or” rule)
Think of it as: you go to a café and can order one drink or one cake. If there are 5 drinks and 7 cakes, you have 5 + 7 = 12 different choices (because you never take both). In set language: disjoint sets → add sizes.
➕ Solution: 23 + 15 + 19 = 57 projects.
(Using addition principle because the lists are disjoint.)
• Sum 4: (1,3), (2,2), (3,1) → 3 ways.
• Sum 8: (2,6), (3,5), (4,4), (5,3), (6,2) → 5 ways.
They are disjoint (a roll can’t sum both), so total = 3 + 5 = 8.
✖️ Multiplication principle (the “and” rule – tasks in sequence)
Example: choose a password: first choose a letter (26 ways) and then choose a digit (10 ways) → 26 × 10 = 260 possibilities.
✖️ This is a sequence of independent choices: 5 × 6 × 2 × 4 = 240 ways.
(Multiplication principle because we choose one from each category.)
Step 1 – total without restriction: each char 26+10=36 choices.
For length 6: 36⁶, length 7: 36⁷, length 8: 36⁸.
Step 2 – subtract those with no digit (all letters): 26⁶, 26⁷, 26⁸.
Step 3 – add them: P = (36⁶−26⁶)+(36⁷−26⁷)+(36⁸−26⁸) = 2 684 483 063 360.
| Length | Total (36ⁿ) | all letters (26ⁿ) | at least one digit |
|---|---|---|---|
| 6 | 2 176 782 336 | 308 915 776 | 1 867 866 560 |
| 7 | 78 364 164 096 | 8 031 810 176 | 70 332 353 920 |
| 8 | 2 821 109 907 456 | 208 827 064 576 | 2 612 282 842 880 |
Sometimes both rules work together. For example: two‑digit numbers with distinct nonzero digits. You can count directly by multiplication: tens digit (9 ways) × units digit (8 ways) = 72.
Or by addition: total two‑digit numbers (90) minus those with zero (9) minus those with equal digits (9) = 72. Both give same answer.
✍️ Exam‑style questions – test yourself (answers hidden – click!)
Addition principle: 8+6 = 14 (choose one from disjoint groups).
Step1: 1st letter 26 ways, 2nd letter 25 (different). Step2: 1st digit 10 ways, 2nd digit 9, 3rd digit 8 (all distinct). Multiplication rule gives that product.
First digit: 1‑9 (9 ways). Middle three digits: each 0‑9 (10 ways). Last digit: cannot be zero, so 1‑9 (9 ways). Multiply → 9·10·10·10·9.
Part b – even sum: outcomes: (1,1),(1,3),(1,5),(2,2),(2,4),(2,6),(3,3),(3,5),(4,4),(4,6),(5,5),(6,6) → 12 ways.
(Hint: use symmetry – even sum occurs exactly half of the 36 ordered pairs, but dice are identical so careful counting needed.)
📚 Exercise 1.1 (from your module) – selected answers
Problem 1: A→B (2 ways), B→C (5), C→D (3) → travel A to D = 2·5·3 = 30 ways.
Problem 2: digits {2,3,5,6,7,9}
a) three‑digit numbers (reps not allowed) = 6·5·4 = 120.
b) less than 400 → first digit 2 or 3 (2 ways), then any 2 of remaining → 2·5·4 = 40.
c) even → last digit even (2 or 6) → case 1: last=2 (first 5 choices, middle 4) =20; case 2: last=6 (first 5, middle 4)=20 → total 40.
Problem 4: license plates: 2 non‑repeating letters (26·25) followed by 3 even digits {0,2,4,6,8} (even digits, repetition? not specified, so with repetition → 5³ =125) → 26·25·125 = 81 250.
📌 Important points – at a glance
- Addition principle (OR): disjoint events → sum of individual ways.
- Multiplication principle (AND): sequential tasks → multiply possibilities.
- Both together: break problem into disjoint cases (add) and inside each case count step by step (multiply).
- Zero restriction: “numbers cannot start with zero” – first digit choices reduce.
- Common exam trick: “at least one special character” = total without restriction minus the case with no special characters.
🎯 ASCII set diagram – addition vs multiplication:
🤔 You ask: “teacher, how do I know whether to add or multiply?”
Great question! If the choice is this OR that (and they don’t happen together), add. If the process is do this AND then that, multiply. Example: choose a drink (tea or coffee) – addition. Choose a drink AND a cake – multiplication.
⚡ more practice (click to reveal)
🌟 Keep practicing – counting is the language of possibilities. See you in the next lesson: permutations! 🌟