Multinomial in LaTeX (\binom{n}{k_1, k_2, \ldots, k_m})
- LaTeX command
\binom{n}{k_1, k_2, \ldots, k_m}- Package
- Add to your preamble:
\usepackage{amsmath} - Mode
- Math mode only
Where it is used
Multinomial coefficient: ways to split n items into groups of sizes k_1 through k_m, where the sizes sum to n.
The value is n! / (k_1!\,k_2!\cdots k_m!), with k_1 + \cdots + k_m = n, and it gives the coefficients in the multinomial theorem, (x_1 + \cdots + x_m)^n = \sum \binom{n}{k_1, \ldots, k_m} x_1^{k_1}\cdots x_m^{k_m}. It counts distinct arrangements of a word with repeated letters, for example 11!/(4!\,4!\,2!\,1!) for MISSISSIPPI. The construct reuses \binom with a comma list in the lower slot; the binomial case \binom{n}{k} is the special case \binom{n}{k, n-k}. Use \ldots between commas, not \cdots.
Minimal compilable example
Paste this into an empty .tex file and compile it with pdfLaTeX, XeLaTeX or LuaLaTeX.
\documentclass{article}
\usepackage{amsmath}
\begin{document}
Multinomial: $\binom{n}{k_1, k_2, \ldots, k_m}$
\[ \binom{n}{k_1, k_2, \ldots, k_m} = \frac{n!}{k_1!\, k_2! \cdots k_m!} \]
\end{document}Related symbols
- Falling Factorial
(n)_k - Permutation (nPr)
P(n, k) - Rising Factorial
n^{(k)} - Combination (nCr)
C(n, k) - Stirling First Kind
\genfrac{[}{]}{0pt}{}{n}{k} - Binomial Coefficient
\binom{n}{k}
Frequently asked questions
- How do I write Multinomial in LaTeX?
- Type \binom{n}{k_1, k_2, \ldots, k_m} in math mode, for example $\binom{n}{k_1, k_2, \ldots, k_m} = \frac{n!}{k_1!\, k_2! \cdots k_m!}$. Load amsmath first with \usepackage{amsmath}.
- Which package do I need for \binom{n}{k_1, k_2, \ldots, k_m}?
- \binom{n}{k_1, k_2, \ldots, k_m} needs amsmath: add \usepackage{amsmath} to your preamble before the document starts.
- Can I use \binom{n}{k_1, k_2, \ldots, k_m} in text mode, or only in math mode?
- Only in math mode. Outside $...$ LaTeX stops with "Missing $ inserted", so write $\binom{n}{k_1, k_2, \ldots, k_m}$ in running text.
Pinakamahusay na AI LaTeX Editor, Alternatibo sa Overleaf
Tinutulungan ng Octree ang mga researcher mula sa 15+ na unibersidad na sumulat ng research papers nang mas mabilis gamit ang AI
- Gumawa ng magagandang TikZ diagrams gamit ang AI
- Mag-upload ng larawan at i-convert ito sa LaTeX nang walang problema
- Makakuha ng instant na tulong sa pagsulat at pag-format ng research papers