Ekuation

operation

Binomial Coefficient Calculator -- n Choose k

Compute the binomial coefficient C(n,k) and explore Pascal\'s triangle row n.

Back to Combinatorics Calculator

Die Gesamtzahl der verschiedenen Elemente in der Menge

Die Anzahl der aus der Gesamtmenge gewählten oder angeordneten Elemente

Formel
C(n,r)=n!r!(nr)!C(n,\,r) = \dfrac{n!}{r!\cdot(n-r)!}

Beispiel ausprobieren

Wähle ein Szenario, um zu sehen, wie der Rechner funktioniert, und passe dann die Werte an

(a+b)⁵ Expansion — Find the Coefficient of a³b²

What is the coefficient of a³b² in the expansion of (a+b)⁵?

Wichtige Werte: n = 5 · k = 2 · C(5,2) = 10

Poker: 5-Card Hands from 52

How many distinct 5-card poker hands exist?

Wichtige Werte: n = 52 · k = 5 · C(52,5) = 2,598,960

Dokumentation

The Binomial Theorem

The binomial coefficient (nk)\binom{n}{k} appears as the coefficient in the expansion of (a+b)n(a + b)^n:

(a+b)n=k=0n(nk)ankbk(a + b)^n = \sum_{k=0}^{n} \binom{n}{k} a^{n-k} b^k

For example, (a+b)4=a4+4a3b+6a2b2+4ab3+b4(a + b)^4 = a^4 + 4a^3b + 6a^2b^2 + 4ab^3 + b^4, where the coefficients 1, 4, 6, 4, 1 are row 4 of Pascal's triangle.


Computing Binomial Coefficients

The factorial formula n!k!(nk)!\frac{n!}{k!(n-k)!} is conceptually simple but overflows for large nn. Two practical alternatives:

Multiplicative Formula

(nk)=i=1knk+ii\binom{n}{k} = \prod_{i=1}^{k} \frac{n - k + i}{i}

Multiply and divide step by step — each intermediate result is always an integer.

Pascal's Recurrence

(nk)=(n1k1)+(n1k)\binom{n}{k} = \binom{n-1}{k-1} + \binom{n-1}{k}

Build a table row by row — no multiplication needed, just addition.


Binomial Coefficients in Probability

The binomial distribution uses (nk)\binom{n}{k} to count the number of ways to get exactly kk successes in nn independent trials:

P(X=k)=(nk)pk(1p)nkP(X = k) = \binom{n}{k} p^k (1-p)^{n-k}
Scenarionk(nk)\binom{n}{k}Ways
3 heads in 5 coin flips5310HHHTT, HHTHT, …
2 sixes in 4 dice rolls426SSXX, SXSX, …
4 defects in 20 items2044,845Quality control

Useful Identities

  • Vandermonde's identity: (m+nr)=k=0r(mk)(nrk)\binom{m+n}{r} = \sum_{k=0}^{r} \binom{m}{k}\binom{n}{r-k}
  • Hockey stick: i=0r(n+ii)=(n+r+1r)\sum_{i=0}^{r} \binom{n+i}{i} = \binom{n+r+1}{r}
  • Absorption: k(nk)=n(n1k1)k\binom{n}{k} = n\binom{n-1}{k-1}

Frequently Asked Questions

What is a binomial coefficient?

The binomial coefficient C(n,k)C(n, k), also written as “n choose k,” counts the number of ways to choose kk items from nn items without regard to order. It equals n!k!×(nk)!\frac{n!}{k! \times (n - k)!} and appears as the coefficients in the expansion of (a+b)n(a + b)^n.

How does the binomial theorem use binomial coefficients?

The binomial theorem states that (a+b)n=C(n,k)×ank×bk(a + b)^n = \sum C(n, k) \times a^{n-k} \times b^k, summed from k=0k = 0 to nn. Each term's coefficient is the corresponding binomial coefficient from row nn of Pascal's triangle.

How do binomial coefficients relate to probability?

The binomial distribution uses C(n,k)C(n, k) to count outcomes. The probability of exactly kk successes in nn independent trials, each with probability pp, is C(n,k)×pk×(1p)nkC(n, k) \times p^k \times (1-p)^{n-k}. For example, getting exactly 3 heads in 5 fair coin flips has C(5,3)=10C(5,3) = 10 favorable outcomes.

What is the multiplicative formula for computing binomial coefficients?

Instead of computing full factorials (which overflow for large nn), use C(n,k)=nk+iiC(n, k) = \prod \frac{n - k + i}{i} for ii from 1 to kk. Each intermediate result is always an integer, making this method practical for large values.

What are the most useful binomial coefficient identities?

Key identities include symmetry C(n,k)=C(n,nk)C(n, k) = C(n, n-k), Pascal's recurrence C(n,k)=C(n1,k1)+C(n1,k)C(n, k) = C(n-1, k-1) + C(n-1, k), the row sum C(n,k)=2n\sum C(n, k) = 2^n, and Vandermonde's identity C(m+n,r)=C(m,k)×C(n,rk)C(m+n, r) = \sum C(m, k) \times C(n, r-k).

Related operation Variants

Explore more operation options

More Math Calculators

Explore the category

Rechnersuche

Rechner suchen und finden