In mathematics, the multinomial theorem describes how to expand a power of a sum in terms of powers of the terms in that sum. It is the generalization of the binomial theorem from binomials to multinomials.
Theorem[]
For any positive integer m and any non-negative integer n, the multinomial formula describes how a sum with m terms expands when raised to an arbitrary power n:
![{\displaystyle (x_{1}+x_{2}+\cdots +x_{m})^{n}=\sum _{k_{1}+k_{2}+\cdots +k_{m}=n\ k_{1},k_{2},\cdots ,k_{m}\geq 0}{n \choose k_{1},k_{2},\ldots ,k_{m}}\prod _{t=1}^{m}x_{t}^{k_{t}}\,,}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a493b7e8ec152e24ae20b24e459ec3dbfffe9e8a)
where
![{n \choose k_{1},k_{2},\ldots ,k_{m}}={\frac {n!}{k_{1}!\,k_{2}!\cdots k_{m}!}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3c7165fdb93f8d28ab738a85570ce10529dcdad8)
is a multinomial coefficient. The sum is taken over all combinations of nonnegative integer indices k1 through km such that the sum of all ki is n. That is, for each term in the expansion, the exponents of the xi must add up to n. Also, as with the binomial theorem, quantities of the form x0 that appear are taken to equal 1 (even when x equals zero).
In the case m = 2, this statement reduces to that of the binomial theorem.
Example[]
The third power of the trinomial a + b + c is given by
![(a+b+c)^{3}=a^{3}+b^{3}+c^{3}+3a^{2}b+3a^{2}c+3b^{2}a+3b^{2}c+3c^{2}a+3c^{2}b+6abc.](https://wikimedia.org/api/rest_v1/media/math/render/svg/515b39087a5bd2172cc7c65b2e118932c93fd30e)
This can be computed by hand using the distributive property of multiplication over addition, but it can also be done (perhaps more easily) with the multinomial theorem. It is possible to "read off" the multinomial coefficients from the terms by using the multinomial coefficient formula. For example:
has the coefficient ![{\displaystyle {3 \choose 2,0,1}={\frac {3!}{2!\cdot 0!\cdot 1!}}={\frac {6}{2\cdot 1\cdot 1}}=3.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/4a094ab32909420461db07a3730eff4bc94c4944)
has the coefficient ![{\displaystyle {3 \choose 1,1,1}={\frac {3!}{1!\cdot 1!\cdot 1!}}={\frac {6}{1\cdot 1\cdot 1}}=6.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/19aa73ee4548c4f3b7326c3a65ddea61f490a04e)
Alternate expression[]
The statement of the theorem can be written concisely using multiindices:
![(x_{1}+\cdots +x_{m})^{n}=\sum _{{|\alpha |=n}}{n \choose \alpha }x^{\alpha }](https://wikimedia.org/api/rest_v1/media/math/render/svg/ecc6ec7c98dbbb25a3f874ee1118e2892a128822)
where
![{\displaystyle \alpha =(\alpha _{1},\alpha _{2},\dots ,\alpha _{m})}](https://wikimedia.org/api/rest_v1/media/math/render/svg/99a6126660396526ff1c7cc0e1d3b838a724a0c6)
and
![{\displaystyle x^{\alpha }=x_{1}^{\alpha _{1}}x_{2}^{\alpha _{2}}\cdots x_{m}^{\alpha _{m}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e3c55634a7a0607e1ba144f45b0e609ba860bc83)
Proof[]
This proof of the multinomial theorem uses the binomial theorem and induction on m.
First, for m = 1, both sides equal x1n since there is only one term k1 = n in the sum. For the induction step, suppose the multinomial theorem holds for m. Then
![{\displaystyle {\begin{aligned}&(x_{1}+x_{2}+\cdots +x_{m}+x_{m+1})^{n}=(x_{1}+x_{2}+\cdots +(x_{m}+x_{m+1}))^{n}\\[6pt]={}&\sum _{k_{1}+k_{2}+\cdots +k_{m-1}+K=n}{n \choose k_{1},k_{2},\ldots ,k_{m-1},K}x_{1}^{k_{1}}x_{2}^{k_{2}}\cdots x_{m-1}^{k_{m-1}}(x_{m}+x_{m+1})^{K}\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/1adc5f8add6e0ee01e9fc422b22e5d75ac722cc7)
by the induction hypothesis. Applying the binomial theorem to the last factor,
![=\sum _{{k_{1}+k_{2}+\cdots +k_{{m-1}}+K=n}}{n \choose k_{1},k_{2},\ldots ,k_{{m-1}},K}x_{1}^{{k_{1}}}x_{2}^{{k_{2}}}\cdots x_{{m-1}}^{{k_{{m-1}}}}\sum _{{k_{m}+k_{{m+1}}=K}}{K \choose k_{m},k_{{m+1}}}x_{m}^{{k_{m}}}x_{{m+1}}^{{k_{{m+1}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/700d5ffcfe1326131b0a75b1c16b5bfa5a10410f)
![=\sum _{{k_{1}+k_{2}+\cdots +k_{{m-1}}+k_{m}+k_{{m+1}}=n}}{n \choose k_{1},k_{2},\ldots ,k_{{m-1}},k_{m},k_{{m+1}}}x_{1}^{{k_{1}}}x_{2}^{{k_{2}}}\cdots x_{{m-1}}^{{k_{{m-1}}}}x_{m}^{{k_{m}}}x_{{m+1}}^{{k_{{m+1}}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/22353333d5fb55b5b01c209c7aefafe1f630bbe6)
which completes the induction. The last step follows because
![{n \choose k_{1},k_{2},\ldots ,k_{{m-1}},K}{K \choose k_{m},k_{{m+1}}}={n \choose k_{1},k_{2},\ldots ,k_{{m-1}},k_{m},k_{{m+1}}},](https://wikimedia.org/api/rest_v1/media/math/render/svg/c0b2f4b3a147691c33e91e95242ce7323ed2232d)
as can easily be seen by writing the three coefficients using factorials as follows:
![{\frac {n!}{k_{1}!k_{2}!\cdots k_{{m-1}}!K!}}{\frac {K!}{k_{m}!k_{{m+1}}!}}={\frac {n!}{k_{1}!k_{2}!\cdots k_{{m+1}}!}}.](https://wikimedia.org/api/rest_v1/media/math/render/svg/3cfe00db0b498412d198e56b4af8b4d2d8c1c73a)
Multinomial coefficients[]
The numbers
![{\displaystyle {n \choose k_{1},k_{2},\ldots ,k_{m}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7a96fa79c67c62c56f09607af0e0ba24a2d56782)
appearing in the theorem are the multinomial coefficients. They can be expressed in numerous ways, including as a product of binomial coefficients or of factorials:
![{\displaystyle {n \choose k_{1},k_{2},\ldots ,k_{m}}={\frac {n!}{k_{1}!\,k_{2}!\cdots k_{m}!}}={k_{1} \choose k_{1}}{k_{1}+k_{2} \choose k_{2}}\cdots {k_{1}+k_{2}+\cdots +k_{m} \choose k_{m}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/0618a64f7b9624fd8ae0df67100096d16cf016c2)
Sum of all multinomial coefficients[]
The substitution of xi = 1 for all i into the multinomial theorem
![{\displaystyle \sum _{k_{1}+k_{2}+\cdots +k_{m}=n}{n \choose k_{1},k_{2},\ldots ,k_{m}}x_{1}^{k_{1}}x_{2}^{k_{2}}\cdots x_{m}^{k_{m}}=(x_{1}+x_{2}+\cdots +x_{m})^{n}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/61d180aaa841eb80841959a48ba78a0b2068a467)
gives immediately that
![{\displaystyle \sum _{k_{1}+k_{2}+\cdots +k_{m}=n}{n \choose k_{1},k_{2},\ldots ,k_{m}}=m^{n}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/2099df0e9c29db97d9e588ea5ef39a5afcda2178)
Number of multinomial coefficients[]
The number of terms in a multinomial sum, #n,m, is equal to the number of monomials of degree n on the variables x1, …, xm:
![{\displaystyle \#_{n,m}={n+m-1 \choose m-1}.}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9c29ce06f15b43f19f6d3c92bee787f95ba83cd2)
The count can be performed easily using the method of stars and bars.
Valuation of multinomial coefficients[]
The largest power of a prime
that divides a multinomial coefficient may be computed using a generalization of Kummer's theorem.
Interpretations[]
Ways to put objects into bins[]
The multinomial coefficients have a direct combinatorial interpretation, as the number of ways of depositing n distinct objects into m distinct bins, with k1 objects in the first bin, k2 objects in the second bin, and so on.[1]
Number of ways to select according to a distribution[]
In statistical mechanics and combinatorics, if one has a number distribution of labels, then the multinomial coefficients naturally arise from the binomial coefficients. Given a number distribution {ni} on a set of N total items, ni represents the number of items to be given the label i. (In statistical mechanics i is the label of the energy state.)
The number of arrangements is found by
- Choosing n1 of the total N to be labeled 1. This can be done
ways.
- From the remaining N − n1 items choose n2 to label 2. This can be done
ways.
- From the remaining N − n1 − n2 items choose n3 to label 3. Again, this can be done
ways.
Multiplying the number of choices at each step results in:
![{\displaystyle {N \choose n_{1}}{N-n_{1} \choose n_{2}}{N-n_{1}-n_{2} \choose n_{3}}\cdots ={\frac {N!}{(N-n_{1})!n_{1}!}}\cdot {\frac {(N-n_{1})!}{(N-n_{1}-n_{2})!n_{2}!}}\cdot {\frac {(N-n_{1}-n_{2})!}{(N-n_{1}-n_{2}-n_{3})!n_{3}!}}\cdots .}](https://wikimedia.org/api/rest_v1/media/math/render/svg/25915f8c54c4a0bdacebdd92ec034cf0fb42bc67)
Cancellation results in the formula given above.
Number of unique permutations of words[]
Multinomial coefficient as a product of binomial coefficients, counting the permutations of the letters of MISSISSIPPI.
The multinomial coefficient
is also the number of distinct ways to permute a multiset of n elements, where ki is the multiplicity of each of the ith element. For example, the number of distinct permutations of the letters of the word MISSISSIPPI, which has 1 M, 4 Is, 4 Ss, and 2 Ps, is
![{11 \choose 1,4,4,2}={\frac {11!}{1!\,4!\,4!\,2!}}=34650.](https://wikimedia.org/api/rest_v1/media/math/render/svg/6d3ca758de254769f21464cb04f8af80ae36f4a4)
Generalized Pascal's triangle[]
One can use the multinomial theorem to generalize Pascal's triangle or Pascal's pyramid to Pascal's simplex. This provides a quick way to generate a lookup table for multinomial coefficients.
See also[]
References[]