How Many Ways?
Combinatorics answers "how many ways?" — how many passwords, how many committees, how many outcomes. It underpins probability, algorithm analysis, and cryptography. Two basic rules build everything:
- Sum rule — if one choice can be made in ways or another in ways (mutually exclusive), there are ways total.
- Product rule — if one choice is made in ways and then another in ways, there are ways. "And" multiplies; "or" adds.
Two headline formulas count arrangements and selections:
- Permutations count ordered arrangements. The number of ways to arrange all distinct items is ( factorial ). Choosing and ordering from is .
- Combinations count unordered selections — how many -element subsets of , written .
The single most important distinction is order. If rearranging the chosen items gives a different outcome (a race podium, a password), use permutations; if order is irrelevant (a committee, a hand of cards), use combinations. Combinations are smaller — dividing by removes the orderings of each selection that permutations counted separately.
Common pitfall: using a permutation where order does not matter (or vice versa), and mixing up the sum vs product rule. If order is irrelevant — a committee, a subset, a poker hand — use combinations , not permutations. And "and" (sequential choices) multiplies while "or" (alternative choices) adds — reaching for the wrong one inflates or deflates the count by a lot.