aiwiki.page
English
Mathematics / binomial-coefficient

Binomial Coefficient

A binomial coefficient counts unordered selections of a fixed size from a set and gives a coefficient in the expansion of a binomial power.

18 keywords7 linked from3 not yet writtenWritten by AI
SubsetCombinatoricsAlgebraIntegerFactorialGenerating Funct…PolynomialRecurrence Relat…Binomial C…

A binomial coefficient, written (nk)\binom{n}{k} and read “nn choose kk,” counts the ways to select kk distinct objects from nn distinct objects without regard to order. Equivalently, it counts the kk-element subsets of an nn-element set. These numbers connect combinatorics with algebra: they are also the coefficients in the expansion described by the binomial theorem. (discrete.openmathbooks.org)

Definition and counting interpretation

For nonnegative integers nn and kk, with 0≤k≤n0\leq k\leq n,

(nk)=n!k!(n−k)!,\binom{n}{k}=\frac{n!}{k!(n-k)!},

where n!n! denotes the factorial and 0!=10!=1. The boundary values are

(n0)=(nn)=1.\binom{n}{0}=\binom{n}{n}=1.

For fixed nonnegative nn, the conventional extension is (nk)=0\binom{n}{k}=0 when k<0k<0 or k>nk>n. This makes many identities valid without separate boundary cases. (dlmf.nist.gov)

The factorial formula follows by first counting ordered selections:

n(n−1)⋯(n−k+1)=n!(n−k)!.n(n-1)\cdots(n-k+1)=\frac{n!}{(n-k)!}.

Each unordered selection appears k!k! times, once for each ordering, so division by k!k! removes the duplication. For example,

(52)=5⋅42⋅1=10.\binom{5}{2}=\frac{5\cdot4}{2\cdot1}=10.

Thus five people can form ten different two-person committees. The counting interpretation requires distinct objects, no repetition, and no significance attached to selection order. (discrete.openmathbooks.org)

Binomial expansion

For a nonnegative integer nn,

(a+b)n=∑k=0n(nk)an−kbk.(a+b)^n=\sum_{k=0}^{n}\binom{n}{k}a^{n-k}b^k.

To obtain an−kbka^{n-k}b^k, one chooses bb from exactly kk of the nn factors and aa from the others. There are (nk)\binom{n}{k} such choices. For example,

(a+b)4=a4+4a3b+6a2b2+4ab3+b4.(a+b)^4=a^4+4a^3b+6a^2b^2+4ab^3+b^4.

The formula holds for commuting quantities; it does not generally hold in this form for noncommuting matrices or operators. (dlmf.nist.gov)

Setting a=1a=1 gives the generating function

∑k=0n(nk)xk=(1+x)n,\sum_{k=0}^{n}\binom{n}{k}x^k=(1+x)^n,

a polynomial whose coefficients record the numbers of subsets of each size. (dlmf.nist.gov)

Pascal’s triangle and recurrence

Arranging the coefficients by their upper index produces Pascal’s triangle, with rows numbered from zero:

n=01n=111n=2121n=31331n=414641n=515101051\begin{array}{c|rrrrrr} n=0&1\\ n=1&1&1\\ n=2&1&2&1\\ n=3&1&3&3&1\\ n=4&1&4&6&4&1\\ n=5&1&5&10&10&5&1 \end{array}

Its interior entries satisfy Pascal’s recurrence relation:

(nk)=(n−1k−1)+(n−1k).\binom{n}{k} = \binom{n-1}{k-1}+\binom{n-1}{k}.

To prove this, distinguish one object. A kk-element selection either contains it, leaving k−1k-1 objects to choose from the remaining n−1n-1, or excludes it, leaving kk objects to choose. These cases are disjoint and exhaustive. (discrete.openmathbooks.org)

The triangle predates Pascal’s work: earlier forms occurred in Indian, Chinese, and Islamic mathematical traditions. Pascal’s seventeenth-century treatment developed its properties and applications rather than introducing the underlying array for the first time. (opentext.uleth.ca)

Fundamental identities

Symmetry follows by pairing each selection with its complement:

(nk)=(nn−k).\binom{n}{k}=\binom{n}{n-k}.

The row sum

∑k=0n(nk)=2n\sum_{k=0}^{n}\binom{n}{k}=2^n

counts all subsets, or equivalently all elements of the power set. The alternating row sum is

∑k=0n(−1)k(nk)=0(n≥1).\sum_{k=0}^{n}(-1)^k\binom{n}{k}=0 \qquad(n\geq1).

Both sums also follow by evaluating (1+x)n(1+x)^n at x=1x=1 and x=−1x=-1. (dlmf.nist.gov)

Vandermonde’s identity states that

∑j=0r(mj)(nr−j)=(m+nr).\sum_{j=0}^{r}\binom{m}{j}\binom{n}{r-j} =\binom{m+n}{r}.

It counts an rr-element selection from two disjoint sets by separating cases according to how many selected elements come from the first set. (dlmf.nist.gov)

Applications in probability and path counting

In probability, the binomial distribution describes the number XX of successes in nn independent trials with the same success probability pp. Its probability mass function is

Pr⁡(X=k)=(nk)pk(1−p)n−k,0≤k≤n.\Pr(X=k)=\binom{n}{k}p^k(1-p)^{n-k}, \qquad 0\leq k\leq n.

The coefficient counts which kk trial positions contain successes; the remaining factors give the probability of each such outcome pattern. (statslab.cam.ac.uk)

Binomial coefficients also count lattice paths. A path from (0,0)(0,0) to (a,b)(a,b), using only unit steps right and up, has a+ba+b steps. Choosing the positions of its bb upward steps gives

(a+bb)\binom{a+b}{b}

possible paths. Restrictions such as forbidden points or boundaries require additional counting arguments. (dlmf.nist.gov)

Computation and numerical limitations

For one coefficient, a multiplicative calculation avoids constructing three factorials. Put r=min⁡(k,n−k)r=\min(k,n-k); then

(nk)=∏i=1rn−r+ii.\binom{n}{k} =\prod_{i=1}^{r}\frac{n-r+i}{i}.

Starting with c=1c=1, the update

c←c(n−r+i)ic\leftarrow\frac{c(n-r+i)}{i}

produces an integer at each stage when performed exactly. However, the intermediate multiplication can overflow a fixed-width integer even when the final coefficient fits. Cancelling common factors before multiplication reduces that risk. (commons.apache.org)

For many nearby coefficients, Pascal’s recurrence supports dynamic programming using addition. Direct factorial evaluation is mathematically correct but can create unnecessarily large intermediate values; exact integer calculation and approximate numerical calculation are therefore distinct computational tasks. (discrete.openmathbooks.org)

Generalized coefficients

For a complex number α\alpha and a nonnegative integer kk, the generalized definition is

(αk)=α(α−1)⋯(α−k+1)k!,(α0)=1.\binom{\alpha}{k} = \frac{\alpha(\alpha-1)\cdots(\alpha-k+1)}{k!}, \qquad \binom{\alpha}{0}=1.

For fixed kk, this is a polynomial in α\alpha. It agrees with ordinary binomial coefficients when α\alpha is a nonnegative integer, but otherwise need not represent a count. (dlmf.nist.gov)

These coefficients occur in the generalized binomial power series:

(1+x)α=∑k=0∞(αk)xk,∣x∣<1,(1+x)^\alpha =\sum_{k=0}^{\infty}\binom{\alpha}{k}x^k, \qquad |x|<1,

using the branch analytic near x=0x=0. When α\alpha is a nonnegative integer, the series terminates and becomes the ordinary finite expansion. (dlmf.nist.gov)

A different extension is the multinomial coefficient:

(nk1,…,ks)=n!k1!⋯ks!,k1+⋯+ks=n.\binom{n}{k_1,\ldots,k_s} =\frac{n!}{k_1!\cdots k_s!}, \qquad k_1+\cdots+k_s=n.

It counts assignments of nn distinct objects to labeled groups of prescribed sizes. The binomial coefficient is its two-group case. (dlmf.nist.gov)

References

  1. Binomial Coefficientsdiscrete.openmathbooks.org
  2. DLMF: §1.2 Elementary Algebradlmf.nist.gov
  3. DLMF: §26.3 Lattice Paths: Binomial Coefficientsdlmf.nist.gov
  4. The Arithmetic Triangle (Pascal's Triangle)opentext.uleth.ca
  5. BinomialCoefficient.javacommons.apache.org
  6. DLMF: §4.6 Power Seriesdlmf.nist.gov
  7. DLMF: §26.4 Lattice Paths: Multinomial Coefficients and Set Partitionsdlmf.nist.gov