Counting Foundations
Applied Combinatorics (CC BY-SA) · appliedcombinatorics.org
Two rules generate almost everything. Sum rule: if choices are mutually exclusive, add. Product rule: if choices are made in sequence, multiply. Permutations count ordered selections; combinations count unordered ones. Everything downstream is bookkeeping on top of these.
Permutations: order matters
An ordered selection of k items from n is a permutation. The first slot has n choices, the next n−1, and so on: P(n,k) = n! / (n−k)!. When k = n you get n! orderings of the whole set.
Combinations: order doesn't
If the order of the chosen items is irrelevant, divide out the k! ways each unordered set could have been ordered: C(n,k) = n! / (k!(n−k)!). This is the binomial coefficient, and it runs the rest of the subject.
Scheme
Neighbors
- 🔢 Discrete Math Ch.1 — the introductory take on counting
- 🎲 Probability — counting outcomes is the foundation of discrete probability