Fractions and roots\binom

\binomCommand

Binomial coefficients and parenthesized combinations such as choosing k from n.

\binom{n}{k}
Available in
ams
Kind
prefix
Allowed mode
math
Frequency
0.52% of corpus formulasrank 64 of 263
Commonality
medium
Renderer support
PackageMathJaxKaTeXXeTeX
amsMathJax: FullKaTeX: FullXeTeX: Full
About the test scope

Syntax#

\binomm{a}math contentm{b}math content

Argspec m m — two mandatory arguments. Reading argspecs

Common tasks#

How to write a binomial coefficient#

\binom{n}{k}

How to write a binomial in a sum#

\sum_{k=0}^n \binom{n}{k} = 2^n

How to write a compact inline binomial#

\binom follows the current style; \dbinom / \tbinom lock display or text size.

\tbinom{n}{k}

In TeXForm#

TeXForm parses this entry as prefix syntax; the package determines its argument specification.

Equivalent forms#

  • \genfrac{(}{)}{0}{}{#1}{#2}exact

    This AMS mapping fixes \genfrac to use ( and ) delimiters, linethickness 0, and empty style.

  • n \choose kapproximate

    \choose is a TeX primitive with different grouping scope; \binom is preferred in LaTeX

See also#

Test cases#

ams
InputCaseMathJaxKaTeXXeTeX
\binom{a}{b}Positive · baselinePassPassPass
\binom a{b}Positive · bare[0]PassPassPass
\binom{a}bPositive · bare[1]PassPassPass
All 21 in Fractions and roots