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.
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
The Combination Formula
A combination counts the number of ways to choose a subset of items from items, where order does not matter:
The notation is read “n choose r.” Since order is irrelevant, and count as the same combination.
Common Values
| Scenario | n | r | |
|---|---|---|---|
| Lottery (6 from 49) | 49 | 6 | 13,983,816 |
| Poker hand (5 from 52) | 52 | 5 | 2,598,960 |
| Committee of 3 from 10 | 10 | 3 | 120 |
| Pizza toppings (3 from 8) | 8 | 3 | 56 |
| Handshakes among 6 people | 6 | 2 | 15 |
Key Properties
- Symmetry: — choosing 3 items to include is equivalent to choosing 7 items to exclude (from 10).
- Pascal's identity: — each entry in Pascal's triangle is the sum of the two entries above it.
- Sum of a row: — the total number of subsets of items.
- Boundary cases: — 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:
Example: Choosing 3 scoops from 5 flavors (repeats allowed):
Frequently Asked Questions
What is the difference between a combination and a permutation?
In a combination, order does not matter: and 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 . For example, . 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 or the binomial coefficient) counts how many ways you can select items from a set of 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 , 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 items to include is equivalent to choosing items to exclude. For example, picking 3 items from 10 () is the same as picking 7 items to leave out ().
Related operation Variants
Explore more operation options
Permutation
Permutation Calculator -- nPr
BinomialCoefficient
Binomial Coefficient Calculator -- n Choose k
PascalTriangle
Pascal\'s Triangle Generator
Factorial
Factorial Calculator -- n!
StarsAndBars
Stars and Bars Calculator -- Combinations with Repetition
More Math Calculators
Explore the category