Ekuation

operation

Combination Calculator -- nCr

Calculate C(n, r) = n!/(r!(n-r)!) -- the number of unordered subsets of size r from a set of 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

Lottery: 6 from 49

How many distinct 6-number tickets exist in a 49-ball lottery?

Wichtige Werte: n = 49 · r = 6 · C(49,6) = 13,983,816

Committee Selection — 3 from 8

A company selects a 3-person committee from 8 candidates. How many possible committees?

Wichtige Werte: n = 8 · r = 3 · C(8,3) = 56

Dokumentation

The Combination Formula

A combination counts the number of ways to choose a subset of rr items from nn items, where order does not matter:

C(n,r)=(nr)=n!r!(nr)!C(n, r) = \binom{n}{r} = \frac{n!}{r!(n - r)!}

The notation (nr)\binom{n}{r} is read “n choose r.” Since order is irrelevant, {A,B,C}\{A, B, C\} and {C,A,B}\{C, A, B\} count as the same combination.


Common Values

Scenarionr(nr)\binom{n}{r}
Lottery (6 from 49)49613,983,816
Poker hand (5 from 52)5252,598,960
Committee of 3 from 10103120
Pizza toppings (3 from 8)8356
Handshakes among 6 people6215

Key Properties

  • Symmetry: (nr)=(nnr)\binom{n}{r} = \binom{n}{n-r} — choosing 3 items to include is equivalent to choosing 7 items to exclude (from 10).
  • Pascal's identity: (nr)=(n1r1)+(n1r)\binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r} — each entry in Pascal's triangle is the sum of the two entries above it.
  • Sum of a row: r=0n(nr)=2n\sum_{r=0}^{n} \binom{n}{r} = 2^n — the total number of subsets of nn items.
  • Boundary cases: (n0)=(nn)=1\binom{n}{0} = \binom{n}{n} = 1 — there is exactly one way to choose nothing or everything.

Combinations with Repetition

When items can be chosen more than once (e.g., scoops of ice cream from available flavors), use the stars and bars formula:

(n+r1r)=(n+r1n1)\binom{n + r - 1}{r} = \binom{n + r - 1}{n - 1}

Example: Choosing 3 scoops from 5 flavors (repeats allowed):

(5+313)=(73)=35\binom{5 + 3 - 1}{3} = \binom{7}{3} = 35

Frequently Asked Questions

What is the difference between a combination and a permutation?

In a combination, order does not matter: {A,B,C}\{A, B, C\} and {C,A,B}\{C, A, B\} count as the same selection. In a permutation, order matters: ABC and CAB are different arrangements. Combinations count subsets; permutations count sequences.

How do you calculate C(n, r)?

Use the formula C(n,r)=n!r!×(nr)!C(n, r) = \frac{n!}{r! \times (n - r)!}. For example, C(10,3)=10!3!×7!=7206=120C(10, 3) = \frac{10!}{3! \times 7!} = \frac{720}{6} = 120. This counts the number of ways to choose 3 items from 10 without regard to order.

What does “n choose r” mean?

“n choose r” (written as C(n,r)C(n, r) or the binomial coefficient) counts how many ways you can select rr items from a set of nn distinct items when order does not matter. For example, “52 choose 5” gives 2,598,960 possible poker hands.

When should I use combinations with repetition?

Use combinations with repetition when items can be chosen more than once, such as selecting scoops of ice cream from available flavors. The formula is C(n+r1,r)C(n + r - 1, r), also known as the stars and bars formula.

Why does C(n, r) equal C(n, n - r)?

This symmetry property reflects the fact that choosing rr items to include is equivalent to choosing nrn - r items to exclude. For example, picking 3 items from 10 (C(10,3)=120C(10, 3) = 120) is the same as picking 7 items to leave out (C(10,7)=120C(10, 7) = 120).

Related operation Variants

Explore more operation options

More Math Calculators

Explore the category

Rechnersuche

Rechner suchen und finden