Multinomial theorem
≈ 7 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
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.
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 and any non-negative integer , the multinomial theorem describes how a sum with terms expands when raised to the th power: (x_1 + x_2 + \cdots + x_m)^n = \sum_{\begin{array}{c} k_1+k_2+\cdots+k_m=n \\ k_1, k_2, \cdots, k_m \geq 0\end{array}} {n \choose k_1, k_2, \ldots, k_m} x_1^{k_1} \cdot x_2^{k_2} \cdots x_m^{k_m} where {n \choose k_1, k_2, \ldots, k_m} = \frac{n!}{k_1!\, k_2! \cdots k_m!} is a multinomial coefficient. The sum is taken over all combinations of nonnegative integer indices through such that the sum of all is . That is, for each term in the expansion, the exponents of the must add up to . In the case , this statement reduces to that of the binomial theorem. ===Example=== The third power of the trinomial is given by (a+b+c)^3 = a^3 + b^3 + c^3 + 3 a^2 b + 3 a^2 c + 3 b^2 a + 3 b^2 c + 3 c^2 a + 3 c^2 b + 6 a b c. This can be computed by hand using the distributive property of multiplication over addition and combining like terms, 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, the term a^2 b^0 c^1 has coefficient {3 \choose 2, 0, 1} = \frac{3!}{2!\cdot 0!\cdot 1!} = \frac{6}{2 \cdot 1 \cdot 1} = 3 , the term a^1 b^1 c^1 has coefficient {3 \choose 1, 1, 1} = \frac{3!}{1!\cdot 1!\cdot 1!} = \frac{6}{1 \cdot 1 \cdot 1} = 6 , and so on. ===Alternate expression=== The statement of the theorem can be written concisely using multi-indices: (x_1+\cdots+x_m)^n = \sum_{|\alpha|=n}{n \choose \alpha}x^\alpha where \alpha=(\alpha_1,\alpha_2,\dots,\alpha_m) and x^\alpha=x_1^{\alpha_1} x_2^{\alpha_2} \cdots x_m^{\alpha_m}. ===Proof=== This proof of the multinomial theorem uses the binomial theorem and induction on . First, for , both sides equal since there is only one term in the sum. For the induction step, suppose the multinomial theorem holds for . Then \begin{align} & (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{align} 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}} = \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}} 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}}, 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}!}. ==Multinomial coefficients== The numbers {n \choose k_1, k_2, \ldots, k_m} 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: {n \choose k_1, k_2, \ldots, k_m} = \frac{n!}{k_1!\, k_2! \cdots k_m!} = {n\choose k_1}{n-k_1\choose k_2}\cdots{n-(k_1+k_2+\cdots+k_{m-1})\choose k_m} ===Sum of all multinomial coefficients=== The substitution of for all into the multinomial theorem \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 gives immediately that \sum_{k_1+k_2+\cdots+k_m=n} {n \choose k_1, k_2, \ldots, k_m} = m^n. ===Number of multinomial coefficients=== The number of terms in a multinomial sum, , is equal to the number of monomials of degree on the variables : \#_{n,m} = {n+m-1 \choose m-1}. 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. By Stirling's approximation, or equivalently the log-gamma function's asymptotic expansion, \log\binom{kn}{n, n, \cdots, n} = k n \log(k) + \frac{1}{2} \left(\log(k) - (k - 1) \log(2 \pi n)\right) - \frac{k^2 - 1}{12kn} + \frac{k^4 - 1}{360k^3n^3} - \frac{k^6 - 1}{1260k^5n^5} + O\left(\frac{1}{n^6}\right) so for example, \binom{2n}{n} \sim \frac{2^{2n}}{\sqrt{n\pi }} ==Interpretations== ===Ways to put objects into bins=== The multinomial coefficients have a direct combinatorial interpretation, as the number of ways of depositing distinct objects into distinct bins, with objects in the first bin, objects in the second bin, and so on. ===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 on a set of total items, represents the number of items to be given the label . (In statistical mechanics is the label of the energy state.) The number of arrangements is found by Choosing of the total to be labeled 1. This can be done \tbinom{N}{n_1} ways. From the remaining items choose to label 2. This can be done \tbinom{N-n_1}{n_2} ways. From the remaining items choose to label 3. Again, this can be done \tbinom{N-n_1-n_2}{n_3} ways. Multiplying the number of choices at each step results in: {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. Cancellation results in the formula given above. ===Number of unique permutations of words=== The multinomial coefficient \binom{n}{k_1, \ldots, k_m} is also the number of distinct ways to permute a multiset of elements, where is the multiplicity of each of the th 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. ===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. A related structure is the multinomial triangle, or generalized Pascal triangle of order m, which may be constructed using the recurrence relation: \binom{n}{k}_{m-1} = \sum_{i=0}^{m-1} \binom{n-1}{k-i}_{m-1} from which Pascal's rule is recovered when m=2 . These multinomial coefficients can be written as closed-form expressions with bounded integer compositions: \binom{n}{k}_{m-1} = \sum_{\begin{array}{c} k_0 + k_1 + \cdots + k_{m-1} = n \\ k_1 + 2k_2 + \cdots + (m-1)k_{m-1} = k\end{array}} {n \choose k_0, k_1, \ldots, k_{m-1}} and without: \binom{n}{k}_{m-1} = \sum_{i = 0}^{\lfloor k / m \rfloor} (-1)^i \binom{n}{i} \binom{n - 1 + k - im}{n-1} ==See also== Multinomial distribution Stars and bars (combinatorics) ==References==
Text derived from https://en.wikipedia.org/w/index.php?oldid=1370488787 under CC BY-SA 4.0; modifications have been made.