Advanced Study Notes: Permutations & Combinations
Target Audience: KVPY (Historic) / Olympiad Aspirants
Level: Advanced University (MIT-level) treatment from first principles.
1. Fundamental Philosophy & Foundational Axioms
Combinatorics is the branch of mathematics concerned with finite discrete structures. At its core, counting is a mapping problem. If $A$ and $B$ are finite sets, establishing a bijection (one-to-one correspondence) $|A| = |B|$ allows us to count $A$ by counting $B$.
Axiom 1: The Addition Principle (Sum Rule)
If a set $A$ can be partitioned into pairwise disjoint subsets $A_1, A_2, \dots, A_n$ such that $A = \bigcup_{i=1}^n A_i$ and $A_i \cap A_j = \emptyset$ for $i \neq j$, then: $$|A| = \sum_{i=1}^n |A_i|$$
Axiom 2: The Multiplication Principle (Product Rule)
If a procedure can be broken down into a sequence of $k$ independent stages, where stage $i$ has $n_i$ possible outcomes regardless of the outcomes of preceding stages, the total number of composite outcomes is: $$\prod_{i=1}^k n_i = n_1 \cdot n_2 \cdots n_k$$
2. Core Enumeration Structures
2.1 Permutations (Ordered Arrangements)
A permutation of a set of $n$ distinct objects is a linear ordering of those objects.
- $r$-Permutations: The number of ways to choose and order $r$ objects from a pool of $n$ distinct objects is: $$P(n, r) = \frac{n!}{(n-r)!}$$
- Derangements ($D_n$): A permutation $\pi$ of the set ${1, 2, \dots, n}$ such that no element appears in its original position ($\pi(i) \neq i$ for all $i$). Deriving $D_n$ via the Principle of Inclusion-Exclusion (PIE): $$D_n = n! \sum_{i=0}^n \frac{(-1)^i}{i!}$$
2.2 Combinations (Unordered Selections)
An $r$-combination of a set of $n$ distinct objects is a subset of $r$ elements, where order is irrelevant. $$\binom{n}{r} = \frac{n!}{r!(n-r)!}$$
Algebraic Identities of Binomial Coefficients:
- Symmetry: $\binom{n}{r} = \binom{n}{n-r}$
- Pascal's Identity: $\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r}$
- Vandermonde's Identity: $\sum_{k=0}^{r} \binom{m}{k}\binom{n}{r-k} = \binom{m+n}{r}$
(Proof via generating functions: compare coefficients of $x^r$ on both sides of $(1+x)^m(1+x)^n = (1+x)^{m+n}$.)
3. Advanced Theoretical Frameworks
3.1 Stars and Bars (Bose-Einstein Statistics)
The number of ways to distribute $k$ identical items into $n$ distinct bins is equivalent to arranging $k$ stars ($\star$) and $n-1$ bars ($|$). $$\text{Number of solutions to } x_1 + x_2 + \dots + x_n = k \quad (x_i \ge 0)$$ $$\binom{k + n - 1}{n - 1}$$
- Strictly Positive Solutions ($x_i \ge 1$): $$\binom{k - 1}{n - 1}$$
3.2 The Principle of Inclusion-Exclusion (PIE)
Let $A_1, A_2, \dots, A_n$ be subsets of a finite universe $U$. The size of their union is: $$\left| \bigcup_{i=1}^n A_i \right| = \sum_{i} |A_i| - \sum_{i < j} |A_i \cap A_j| + \sum_{i < j < k} |A_i \cap A_j \cap A_k| - \dots + (-1)^{n-1} |A_1 \cap \dots \cap A_n|$$
Compactly: $$\left| \bigcup_{i=1}^n A_i \right| = \sum_{\emptyset \neq J \subseteq {1,\dots,n}} (-1)^{|J|-1} \left|\bigcap_{j