Home › Permutations vs Combinations › Lesson 7

Subsets, Binomial Coefficients and Multinomial Coefficients

Lesson 7 of 13

Key idea of this section

C(n, k) = #{k-element subsets of [n]} = (n)ₖ/k! = n!/(k!(n − k)!).
Multinomial: n!/(a₁! a₂! ⋯ ar!) = #{words with aᵢ copies of letter i}.
Combinatorial identities are best proved by bijections and double counting.

The fundamental relation between permutations and combinations

Theorem 7.1. The number of k-element subsets of an n-element set is C(n, k) = (n)ₖ/k!.

Proof. Double count the set of pairs consisting of a k-element subset A ⊆ [n] and a linear ordering of A. On one hand such a pair is exactly an injection [k] → [n] (list the elements of A in the chosen order), and there are (n)ₖ of these. On the other hand each A admits k! orderings. Hence C(n, k) · k! = (n)ₖ. ∎

In Lesson 12 this argument will reappear as the orbit–stabiliser theorem: Sk acts freely on the injections [k] → [n] by permuting positions, and the orbits are the k-subsets. This is the conceptual content of the phrase "a combination is a permutation with the order forgotten".

The extension C(α, k) = (α)ₖ/k! makes sense for any α in a commutative ℚ-algebra, and Newton's binomial series (1 + x)α = ∑ₖ C(α, k)xᵏ holds as an identity of formal power series. For a negative integer, C(−n, k) = (−1)ᵏ C(n + k − 1, k), an identity that we will interpret combinatorially in Lesson 8.

Identities by bijection

Each of the following is proved by exhibiting two ways of counting the same set.

C(n, k) = C(n, n − k)                                  (complementation)
C(n, k) = C(n − 1, k) + C(n − 1, k − 1)                (does the subset contain n?)
∑ᵢ C(m, i) C(n, k − i) = C(m + n, k)                    (Vandermonde)
∑ⱼ₌ₖⁿ C(j, k) = C(n + 1, k + 1)                          (hockey stick)
∑ₖ k·C(n, k) = n·2ⁿ⁻¹                                    (committee with a chair)

For Vandermonde's identity, split the (m + n)-set into an m-set and an n-set and classify k-subsets by the number i of elements taken from the first part. For the hockey-stick identity, classify the (k+1)-subsets of [n+1] by their largest element j + 1: the remaining k elements form a k-subset of [j]. For the last identity, count pairs (committee, chair) either by first choosing the committee (∑ k C(n, k)) or by first choosing the chair and then any subset of the others (n · 2ⁿ⁻¹).

The binomial theorem (x + y)ⁿ = ∑ₖ C(n, k)xᵏyⁿ⁻ᵏ holds in any commutative ring, and more generally whenever xy = yx: expanding the product of n factors (x + y), each term corresponds to the subset of factors from which x is chosen. In a noncommutative setting the expansion instead has 2ⁿ distinct words, and the binomial theorem fails; this is one of the earliest places where the difference between ordered and unordered selection is visible in algebra.

Multinomial coefficients and permutations of multisets

Theorem 7.2. Let a₁ + ⋯ + ar = n with aᵢ ≥ 0. The number of words of length n containing exactly aᵢ copies of the letter i is the multinomial coefficient

C(n; a₁, …, ar) = n!/(a₁! a₂! ⋯ ar!).

Proof. Label the copies of each letter to make them distinct; there are then n! words. Erasing the labels identifies exactly a₁!⋯ar! labelled words with each unlabelled one. Alternatively, choose the positions of the 1s in C(n, a₁) ways, then of the 2s in C(n − a₁, a₂) ways, and so on, and multiply. ∎

Thus MISSISSIPPI, with letter multiplicities 1, 4, 4, 2, has 11!/(1! 4! 4! 2!) = 34,650 distinct arrangements. The multinomial theorem (x₁ + ⋯ + xr)ⁿ = ∑ C(n; a)x₁a₁⋯xrar follows as the binomial theorem did. Words with prescribed multiplicities are also in bijection with lattice paths: words in E and N with m copies of E and n copies of N are monotone lattice paths from (0, 0) to (m, n), so there are C(m + n, m) of them.

The reflection principle and the Catalan numbers

A Dyck path of semilength n is a lattice path from (0, 0) to (n, n) with unit steps E and N that never rises above the diagonal y = x. A path that does rise above it touches the line y = x + 1 for a first time; reflecting the portion of the path after that point in the line y = x + 1 gives a bijection from bad paths to all paths from (0, 0) to (n − 1, n + 1). Hence the number of Dyck paths is the Catalan number

Cₙ = C(2n, n) − C(2n, n + 1) = C(2n, n)/(n + 1),

so C₀, C₁, … = 1, 1, 2, 5, 14, 42, 132, 429, …. Catalan numbers count, among hundreds of other families, the permutations of [n] avoiding the pattern 231 (stack-sortable permutations, Knuth 1968), which is a first example of the theory of pattern avoidance.

Binomial coefficients modulo a prime

Theorem 7.3 (Lucas, 1878). Let p be prime, and write n = ∑ nᵢ pⁱ and k = ∑ kᵢ pⁱ in base p. Then C(n, k) ≡ ∏ᵢ C(nᵢ, kᵢ) (mod p), with the convention C(a, b) = 0 for b > a.

Proof. In 𝔽p[x] we have (1 + x)p = 1 + xp, since p divides C(p, j) for 0 < j < p. Hence (1 + x)ⁿ = ∏ᵢ (1 + xpⁱ)nᵢ. Expanding the right side, the coefficient of xᵏ comes from the unique choice of exponents kᵢ pⁱ (by uniqueness of base-p representation with digits less than p), and equals ∏ C(nᵢ, kᵢ). ∎

For example 12 = 22₅ and 5 = 10₅, so C(12, 5) ≡ C(2, 1)C(2, 0) = 2 (mod 5); indeed C(12, 5) = 792 ≡ 2. Kummer's companion theorem states that the exponent of p in C(n, k) equals the number of carries when k and n − k are added in base p.

Exercise

  • (a)
    How many distinct arrangements does the word BANANA have?
  • (b)
    Evaluate ∑ᵢ₌₀⁵ C(5, i)² by Vandermonde's identity.
  • (c)
    Use Lucas's theorem to find C(10, 3) mod 3, and check directly.
Show solution

Answers: (a) 6!/(3! 2! 1!) = 720/12 = 60. (b) ∑ C(5, i)C(5, 5 − i) = C(10, 5) = 252. (c) 10 = 101₃ and 3 = 010₃, so C(10, 3) ≡ C(1, 0)C(0, 1)C(1, 0) = 0 (mod 3); indeed C(10, 3) = 120 = 3 · 40.

V.3.1