Multinomial in LaTeX (\binom{n}{k_1, k_2, \ldots, k_m})

(nk1,k2,…,km)\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

Try Multinomial in a real LaTeX document

Open a ready-to-compile document that already uses \binom{n}{k_1, k_2, \ldots, k_m}, with the right packages loaded. Edit it and see the PDF, no install needed.

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.

(nk1,k2,…,km)=n!k1! k2!⋯km!\binom{n}{k_1, k_2, \ldots, k_m} = \frac{n!}{k_1!\, k_2! \cdots k_m!}
\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

All التوافقيات →

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.
Math poweredاكتب LaTeX باستخدام الذكاء الاصطناعي

أفضل محرر LaTeX بالذكاء الاصطناعي، بديل Overleaf

يساعد Octree الباحثين من أكثر من 15 جامعة على كتابة أوراق البحث بشكل أسرع باستخدام الذكاء الاصطناعي

  • أنشئ رسوم TikZ جميلة باستخدام الذكاء الاصطناعي
  • ارفع صورة وحولها إلى LaTeX بسلاسة
  • احصل على مساعدة فورية في كتابة وتنسيق أوراق البحث