1.5 Counting and Combinatorics
Basic Principles
Addition Principle
If a task can be done in either of two disjoint ways, then the total ways are summed: when .
Multiplication Principle
If a task consists of two steps with ways for step and ways for step , then total ways.
Permutations and Combinations
Permutations
Distinct: Number of ways to arrange distinct items: .
Partial: Number of ways to choose and order from : .
With Repetition: sequences of length from types.
Combinations
Without Repetition: Number of ways to choose from : .
With Repetition: Number of multisets of size from types: .
Binomial Theorem
For any integer :
Pigeonhole Principle
If pigeons are placed into holes and , then some hole contains at least two pigeons. More generally: at least one hole has at least pigeons.