Fiveable

🧮Combinatorics Unit 3 Review

QR code for Combinatorics practice questions

3.4 Multinomial coefficients and the Multinomial Theorem

3.4 Multinomial coefficients and the Multinomial Theorem

Written by the Fiveable Content Team • Last updated August 2025
Written by the Fiveable Content Team • Last updated August 2025
🧮Combinatorics
Unit & Topic Study Guides

Multinomial coefficients and the Multinomial Theorem

Multinomial coefficients expand on binomial coefficients by letting you divide objects into more than two groups at once. Where binomial coefficients answer "how many ways can I split nn objects into two groups?", multinomial coefficients handle three, four, or any number of groups. The Multinomial Theorem then generalizes the Binomial Theorem to expand expressions like (x1+x2++xm)n(x_1 + x_2 + \cdots + x_m)^n, which shows up constantly in probability, counting problems, and generating functions.

Multinomial coefficients and notation

Definition and calculation

A multinomial coefficient counts the number of ways to divide nn distinct objects into kk groups of specified sizes n1,n2,,nkn_1, n_2, \ldots, n_k, where the sizes must satisfy n1+n2++nk=nn_1 + n_2 + \cdots + n_k = n.

The notation is:

(nn1,n2,,nk)\binom{n}{n_1, n_2, \ldots, n_k}

and the formula is:

(nn1,n2,,nk)=n!n1!n2!nk!\binom{n}{n_1, n_2, \ldots, n_k} = \frac{n!}{n_1!\, n_2!\, \cdots\, n_k!}

How to compute it step by step:

  1. Confirm that n1+n2++nk=nn_1 + n_2 + \cdots + n_k = n. If the sizes don't add up to nn, the coefficient is 0.
  2. Compute n!n! in the numerator.
  3. Compute each ni!n_i! and multiply them together for the denominator.
  4. Divide.

For example, (103,4,3)=10!3!4!3!=36288006246=3628800864=4200\binom{10}{3, 4, 3} = \frac{10!}{3!\, 4!\, 3!} = \frac{3628800}{6 \cdot 24 \cdot 6} = \frac{3628800}{864} = 4200.

Connection to binomial coefficients. You can break a multinomial coefficient into a chain of binomial coefficients by choosing one group at a time:

(nn1,n2,,nk)=(nn1)(nn1n2)(nn1n2n3)(nknk)\binom{n}{n_1, n_2, \ldots, n_k} = \binom{n}{n_1} \cdot \binom{n - n_1}{n_2} \cdot \binom{n - n_1 - n_2}{n_3} \cdots \binom{n_k}{n_k}

This is sometimes easier to compute, and it also makes clear why the formula works: you're choosing the first group from all nn objects, then the second group from what's left, and so on.

Properties and interpretations

Symmetry. The multinomial coefficient doesn't change if you rearrange the group sizes. For instance:

(103,4,3)=(104,3,3)=(103,3,4)=4200\binom{10}{3, 4, 3} = \binom{10}{4, 3, 3} = \binom{10}{3, 3, 4} = 4200

This makes sense because you're still creating the same collection of groups, just listing them in a different order.

Counting arrangements (permutations with repetition). Multinomial coefficients also count the number of distinct permutations of nn objects when some objects are identical. If you have nin_i indistinguishable copies of type ii, the number of distinct arrangements is n!n1!n2!nk!\frac{n!}{n_1!\, n_2!\, \cdots\, n_k!}.

A classic example: how many distinct ways can you arrange the letters in MISSISSIPPI?

  • Total letters: 11
  • M appears 1 time, I appears 4 times, S appears 4 times, P appears 2 times

(111,4,4,2)=11!1!4!4!2!=39916800124242=34650\binom{11}{1, 4, 4, 2} = \frac{11!}{1!\, 4!\, 4!\, 2!} = \frac{39916800}{1 \cdot 24 \cdot 24 \cdot 2} = 34650

Multinomial Theorem and formula

Definition and calculation, Multinomial coefficient - Knowino

Statement and explanation

The Multinomial Theorem says:

(x1+x2++xm)n=n1+n2++nm=nni0(nn1,n2,,nm)x1n1x2n2xmnm(x_1 + x_2 + \cdots + x_m)^n = \sum_{\substack{n_1 + n_2 + \cdots + n_m = n \\ n_i \geq 0}} \binom{n}{n_1, n_2, \ldots, n_m}\, x_1^{n_1}\, x_2^{n_2}\, \cdots\, x_m^{n_m}

The sum runs over every way to write nn as an ordered sum of mm non-negative integers. Each term in the expansion corresponds to one such tuple (n1,n2,,nm)(n_1, n_2, \ldots, n_m), and its coefficient is the matching multinomial coefficient.

When m=2m = 2, this reduces exactly to the Binomial Theorem: (x+y)n=k=0n(nk)xkynk(x + y)^n = \sum_{k=0}^{n} \binom{n}{k} x^k y^{n-k}.

Proof outline

The standard proof uses induction on the number of terms mm:

  1. Base case (m=2m = 2): The theorem is just the Binomial Theorem, which you've already proved.
  2. Inductive step: Assume the theorem holds for mm terms. Write (x1+x2++xm+xm+1)n(x_1 + x_2 + \cdots + x_m + x_{m+1})^n as ((x1++xm)+xm+1)n((x_1 + \cdots + x_m) + x_{m+1})^n. Apply the Binomial Theorem to this two-term expression, then apply the inductive hypothesis to expand (x1++xm)j(x_1 + \cdots + x_m)^j for each power jj that appears. Collecting terms gives the multinomial formula for m+1m+1 terms.

There's also a nice combinatorial argument: expanding (x1+x2++xm)n(x_1 + x_2 + \cdots + x_m)^n means choosing one term from each of nn copies of the parenthesis. The number of ways to end up with n1n_1 copies of x1x_1, n2n_2 copies of x2x_2, etc., is exactly (nn1,n2,,nm)\binom{n}{n_1, n_2, \ldots, n_m}.

Expanding multinomial expressions

Expansion techniques

To expand (x1+x2++xm)n(x_1 + x_2 + \cdots + x_m)^n systematically:

  1. List all exponent tuples. Find every tuple (n1,n2,,nm)(n_1, n_2, \ldots, n_m) of non-negative integers summing to nn.
  2. Compute each coefficient. For each tuple, calculate (nn1,n2,,nm)=n!n1!n2!nm!\binom{n}{n_1, n_2, \ldots, n_m} = \frac{n!}{n_1!\, n_2!\, \cdots\, n_m!}.
  3. Write out each term. Multiply the coefficient by x1n1x2n2xmnmx_1^{n_1} x_2^{n_2} \cdots x_m^{n_m}.
  4. Combine like terms if any variables are equal.

Example: Expand (x+y+z)3(x + y + z)^3.

The exponent tuples (a,b,c)(a, b, c) with a+b+c=3a + b + c = 3 give these terms:

TupleCoefficientTerm
(3,0,0)(3,0,0)3!3!0!0!=1\frac{3!}{3!0!0!} = 1x3x^3
(0,3,0)(0,3,0)11y3y^3
(0,0,3)(0,0,3)11z3z^3
(2,1,0)(2,1,0)3!2!1!0!=3\frac{3!}{2!1!0!} = 33x2y3x^2y
(2,0,1)(2,0,1)333x2z3x^2z
(1,2,0)(1,2,0)333xy23xy^2
(0,2,1)(0,2,1)333y2z3y^2z
(1,0,2)(1,0,2)333xz23xz^2
(0,1,2)(0,1,2)333yz23yz^2
(1,1,1)(1,1,1)3!1!1!1!=6\frac{3!}{1!1!1!} = 66xyz6xyz

So (x+y+z)3=x3+y3+z3+3x2y+3x2z+3xy2+3y2z+3xz2+3yz2+6xyz(x+y+z)^3 = x^3 + y^3 + z^3 + 3x^2y + 3x^2z + 3xy^2 + 3y^2z + 3xz^2 + 3yz^2 + 6xyz.

Watch out for repeated variables. If you're expanding something like (x+y+y)4=(x+2y)4(x + y + y)^4 = (x + 2y)^4, you'll need to combine like terms or simplify before expanding.

Definition and calculation, co.combinatorics - Important formulas in Combinatorics - MathOverflow

Applications and examples

Quick identity check. Setting all variables equal to 1 gives a useful identity. Since (1+1++1)n=mn(1 + 1 + \cdots + 1)^n = m^n, the sum of all multinomial coefficients for a given nn and mm is mnm^n:

n1++nm=n(nn1,,nm)=mn\sum_{\substack{n_1 + \cdots + n_m = n}} \binom{n}{n_1, \ldots, n_m} = m^n

For m=3m = 3: i+j+k=n(ni,j,k)=3n\sum_{i+j+k=n} \binom{n}{i,j,k} = 3^n.

Generating functions. Multinomial expansions appear naturally in generating functions. For example, expanding (1+x+x2)n(1 + x + x^2)^n produces coefficients that count the number of ways to write integers as sums of 0s, 1s, and 2s from nn terms.

Probability. In a multinomial experiment (like rolling a die nn times), the probability of getting outcome 1 exactly n1n_1 times, outcome 2 exactly n2n_2 times, etc., involves the multinomial coefficient:

P=(nn1,n2,,nm)p1n1p2n2pmnmP = \binom{n}{n_1, n_2, \ldots, n_m}\, p_1^{n_1}\, p_2^{n_2}\, \cdots\, p_m^{n_m}

where pip_i is the probability of outcome ii on a single trial.

Combinatorial problems with multinomial coefficients

Problem-solving strategies

Distributing distinct objects into labeled groups. This is the most direct application. If you need to split 12 students into three project teams of sizes 4, 5, and 3, the answer is (124,5,3)=12!4!5!3!=27720\binom{12}{4, 5, 3} = \frac{12!}{4!\, 5!\, 3!} = 27720.

Counting distinct arrangements with repeated elements. For the word MATHEMATICS (11 letters: M×2, A×2, T×2, H×1, E×1, I×1, C×1, S×1):

(112,2,2,1,1,1,1,1)=11!2!2!2!1!1!1!1!1!=4989600\binom{11}{2, 2, 2, 1, 1, 1, 1, 1} = \frac{11!}{2!\, 2!\, 2!\, 1!\, 1!\, 1!\, 1!\, 1!} = 4989600

Finding specific coefficients. To find the coefficient of x2y3zx^2 y^3 z in (x+y+z)6(x + y + z)^6, just compute (62,3,1)=6!2!3!1!=60\binom{6}{2, 3, 1} = \frac{6!}{2!\, 3!\, 1!} = 60.

Common mistake: Don't confuse multinomial coefficients with the stars-and-bars method. Stars and bars counts ways to distribute identical objects into groups. Multinomial coefficients deal with distinct objects. For distributing 20 identical candies among 5 children with no restrictions, you'd use (244)\binom{24}{4} (a binomial coefficient from stars and bars), not a multinomial coefficient.

Advanced applications

Multiset permutations. The word ABRACADABRA has 11 letters: A×5, B×2, R×2, C×1, D×1. The number of distinct arrangements is:

(115,2,2,1,1)=11!5!2!2!1!1!=83160\binom{11}{5, 2, 2, 1, 1} = \frac{11!}{5!\, 2!\, 2!\, 1!\, 1!} = 83160

Algorithm analysis. When analyzing sorting algorithms on inputs with repeated elements, multinomial coefficients describe the number of distinct permutations the algorithm must distinguish between. Fewer distinct permutations can mean faster sorting.

Generating functions for constrained problems. If you need to count sequences of length nn using symbols from an alphabet of size kk with specific frequency requirements, the multinomial coefficient gives you the count for each valid frequency tuple, and the Multinomial Theorem ties these counts together into a single generating function.