Home › Pascal's Triangle › Lesson 10

Multinomial Coefficients and Pascal's Simplex

Lesson 10 of 14

Key idea of this section

C(n; k₁, …, km) = n! / (k₁! ⋯ km!)      (k₁ + ⋯ + km = n)
(x₁ + ⋯ + xm)ⁿ = ∑ C(n; k₁, …, km) x₁k₁ ⋯ xmkm
vp C(n; k₁, …, km) = (∑ sp(kⱼ) − sp(n))/(p − 1) = total carries in k₁ + ⋯ + km

Definition and the multinomial theorem

For nonnegative integers k₁, …, km with sum n, the multinomial coefficient C(n; k₁, …, km) = n!/(k₁! ⋯ km!) counts the words of length n over the alphabet {1, …, m} in which the letter j occurs kⱼ times; equivalently, the ordered partitions of [n] into blocks of sizes k₁, …, km. Choosing the positions of the letter 1, then of the letter 2, and so on gives the factorization

C(n; k₁, …, km) = C(n, k₁) C(n − k₁, k₂) ⋯ C(n − k₁ − ⋯ − km−1, km)

which proves integrality and reduces many properties to the binomial case. The multinomial theorem follows by expanding (x₁ + ⋯ + xm)ⁿ as a sum over all words of length n: the word w contributes the monomial ∏ xwᵢ, and the number of words with letter counts (k₁, …, km) is the multinomial coefficient. Setting all xⱼ = 1 gives ∑ C(n; k₁, …, km) = mⁿ, and the number of distinct monomials is the number of solutions of k₁ + ⋯ + km = n in nonnegative integers, which is C(n + m − 1, m − 1) by stars and bars.

[x²y³z] (2x − y + 3z)⁶ = C(6; 2, 3, 1) · 2² · (−1)³ · 3 = 60 · (−12) = −720

Pascal's simplex

Classifying words by their last letter gives the recurrence C(n; k₁, …, km) = ∑ⱼ C(n − 1; k₁, …, kⱼ − 1, …, km), with terms having a negative entry omitted. For m = 3 the coefficients of (x + y + z)ⁿ arranged in triangular layers form Pascal's pyramid (or tetrahedron); each entry is the sum of the three entries above it, the edges of each layer are rows of Pascal's triangle, and the entries of layer n with first index a form row n − a of the triangle multiplied by C(n, a), because C(n; a, b, c) = C(n, a) C(n − a, b). For general m one obtains Pascal's (m − 1)-simplex.

Maximal coefficients

Proposition 10.1. For fixed n and m, C(n; k₁, …, km) is maximal exactly when the kⱼ differ pairwise by at most 1. Proof. If kᵢ ≥ kⱼ + 2, replace (kᵢ, kⱼ) by (kᵢ − 1, kⱼ + 1); the coefficient is multiplied by kᵢ/(kⱼ + 1) > 1. So a maximizer is balanced, and all balanced vectors are permutations of each other and give the same value. ∎

max over (x + y + z)¹⁰:  C(10; 4, 3, 3) = 3628800 / (24 · 6 · 6) = 4200

Arithmetic: Lucas and Kummer for multinomials

Theorem 10.2. Let p be prime. (i) (Kummer for multinomials) vp C(n; k₁, …, km) = (sp(k₁) + ⋯ + sp(km) − sp(n))/(p − 1), and this equals the sum of all carries when k₁ + ⋯ + km is computed in base p (a carry at one position may now exceed 1). (ii) (Lucas for multinomials) Writing kⱼ = ∑ᵢ kj,i pⁱ and n = ∑ nᵢ pⁱ, C(n; k₁, …, km) ≡ ∏ᵢ C(nᵢ; k1,i, …, km,i) (mod p) if k1,i + ⋯ + km,i = nᵢ for every i, and ≡ 0 otherwise.

Proof. (i) Legendre's formula gives the digit-sum expression, and the carry argument of Theorem 8.2 applies verbatim to a multi-term addition: at position i, ∑ⱼ kj,i + ci−1 = nᵢ + p cᵢ. (ii) By (i) the coefficient is divisible by p exactly when some carry occurs, i.e. exactly when the digit columns do not add up without carrying. If no carry occurs, the factorization into binomial coefficients and Lucas' theorem give the product formula. ∎

v₂ C(12; 4, 4, 4) = 3 · s₂(4) − s₂(12) = 3 − 2 = 1      (C(12; 4, 4, 4) = 34650 = 2 · 17325)
v₃ C(9; 3, 3, 3) = (1 + 1 + 1 − 1)/2 = 1                 (C(9; 3, 3, 3) = 1680 = 3 · 560)

Consequently, Pascal's simplex modulo p is self-similar in the same way as the triangle, and modulo 2 the pyramid gives a discrete Sierpinski tetrahedron-type fractal: the number of odd entries in layers 0 through 2ʳ − 1 is 4ʳ, since a layer n has 3s₂(n) odd entries (each binary 1 of n can be given to any of the three letters) and ∑n<2ʳ 3s₂(n) = 4ʳ.

Multinomial coefficients also appear as the coefficients of the multinomial distribution, and the entropy estimates of Lesson 13 extend to them: for kⱼ = pⱼn, C(n; k₁, …, km) = exp(n H(p₁, …, pm) + O(log n)) with H the Shannon entropy in natural units.

Exercise

  • (a)
    Find the coefficient of a³b²c² in (a + b + c)⁷.
  • (b)
    How many distinct monomials occur in (x + y + z + w)¹⁰?
  • (c)
    Find the coefficient of x³yz² in (x − 2y + z)⁶.
Show solution

Answers: (a) C(7; 3, 2, 2) = 5040/(6 · 2 · 2) = 210. (b) C(10 + 3, 3) = C(13, 3) = 286. (c) C(6; 3, 1, 2) · (−2) = 60 · (−2) = −120.

V.3.1