Today I did combinatorics. It was about the following task:
A password consists of any sequence of upper-case letters (A-Z), lower-case letters (a-z) or numbers ($0-9$).
Question: How many such passwords with exactly 3 characters are there?
The answer is simple: $62\cdot 62 \cdot 62 = 238.328$.
Today the question came up from a student, why do we multiply instead of add? How would you explain this difference as simply as possible to someone who has never done anything with combinatorics or probability theory before.
For a single character you're adding the choices:
#[A-Z]: 26 #[a-z]: 26 #[0-9]: 10
Total: 62
Addition usually corresponds to "OR". Here, for each character it can either be uppercase, lowercase, or digit. Multiplication is usually for "AND". Here, you're choosing 3 char password. Loosely translate to choose 1st char AND 2nd char AND 3rd char.