Combination with Replacement Calculator
Free online Combination with Replacement Calculator. Calculate multicombinations C(n + r - 1, r) using stars and bars, compare all 4 sampling models, and view step-by-step proofs.
1Enter Parameters
Multichoose Combinations Result
C(5 + 3 − 1, 3) = C(7, 3)Comparison: The 4 Fundamental Sampling Models
n = 5, r = 3Multichoose: C(n + r − 1, r)
Combinations: C(n, r) = n! / [r!(n − r)!]
Sequences: nr
Permutations: nPr = n! / (n − r)!
Multiset Enumerator (35 Unique Combinations)
Exact multichoose outcomes using labels A, B, C...
Step-by-Step Derivations & Proof
Total Symbols = n + r - 1To distribute 3 indistinguishable choices into 5 distinguishable categories, we use 4 dividers (bars) to separate 5 bins. The total number of symbol slots is 3 stars + 4 bars = 7 positions.
CR(n, r) = C(n + r - 1, r) = (n + r - 1)! / [r! × (n - 1)!]Choosing which 3 of the 7 total positions will hold the stars uniquely determines the count for each category.
C(N, k) = [N × (N-1) × ... × (N-k+1)] / [k × (k-1) × ... × 1]Multiplying the factors and dividing by 3! yields exactly 35 unique combinations with repetition.
How to Use the Combination with Replacement Calculator
Step-by-step instructions for computing multichoose arrangements and stars and bars partitions
Enter Category Types (n)
Input the total number of distinct types, flavors, item categories, or urns available to choose from (n > 0).
Enter Selection Count (r)
Input the total number of elements to select. Because replacement (repetition) is allowed, r can exceed n (e.g., choosing 12 donuts from 4 flavors).
Inspect Stars & Bars Mapping
Visualize how r stars (☆) and (n − 1) divider bars (|) form a total of (n + r − 1) symbol slots.
Compare Across All 4 Models
Review the 4-way comparison table contrasting combinations with replacement against standard combinations (nCr), permutations (nPr), and ordered powers (nr).
Combinations with Replacement Theory
The Stars and Bars theorem, multisets, and the 4 fundamental sampling regimes
In combinatorics, a combination with replacement (also called multicombination, multichoose, or k-combination with repetition) counts the number of ways to select r items from a set of n distinct types where the order of selection does not matter and elements can be chosen more than once.
The Multichoose Formula
Choosing r items from n categories with replacement is equivalent to standard combinations of (n + r − 1) items taken r at a time:
The Famous “Stars and Bars” Proof
To understand why the formula works, consider distributing r indistinguishable items (“stars”) into n distinguishable bins:
- To partition items into n separate bins, you need exactly (n − 1) dividers (“bars”).
- For example, with n = 3 bins and r = 5 items, one possible arrangement is:
☆☆ | ☆ | ☆☆(2 items in Bin 1, 1 item in Bin 2, 2 items in Bin 3). - The total number of symbols in any valid arrangement is r stars plus (n − 1) bars, which equals n + r − 1 total positions.
- Choosing which r positions will contain the stars (or equivalently, which n − 1 positions contain the bars) is a standard combination problem:
C(n + r − 1, r).
Taxonomy: The 4 Classical Sampling Regimes
| Sampling Model | Order Matters? | Replacement Allowed? | Mathematical Formula |
|---|---|---|---|
| Permutations (nPr) | Yes | No | n! / (n − r)! |
| Sequences / Tuples | Yes | Yes | nr |
| Combinations (nCr) | No | No | n! / [r!(n − r)!] |
| Multichoose (This Calculator) | No | Yes | C(n + r − 1, r) |
Real-World Worked Examples
3 Scoops from 5 Flavors
How many 3-scoop bowls can you create from 5 flavors if flavors may be repeated?
12 Donuts from 4 Varieties
A customer orders a box of a dozen donuts from 4 available varieties.
Unordered Dice Outcomes
How many unique outcomes exist when rolling 3 identical 6-sided dice?
Related Calculators
Quick SuggestionsCircular Permutation Calculator (Pn)
Free online Circular Permutation Calculator (Pn). Compute round table seating permutations (n - 1)!, necklace arrangements, and circular subsets with step-by-step proofs and BigInt precision.
Circle Calculator
Free online Circle Calculator. Compute radius, diameter, circumference, and area from any single known property with exact Pi representations, sector arc lengths, and step-by-step proofs.
Basic Calculator
Free online Basic Calculator with standard handheld keys, arithmetic operations, memory registers, percentages, square roots, rounding modes, and copyable paper tape audit log.
Algebra Word Problems: Coins
Free online Algebra Word Problems: Coins calculator. Solve two-coin count and value systems, relative coin quantities, and three-coin algebra problems with complete step-by-step proofs.
Algebra Word Problems: Age
Free online Algebra Word Problems: Age calculator. Solve 3-person age relationships, age shifts across time, and learn step-by-step linear equation modeling.
Percentage Calculator
Free online percentage calculator. Find percentages, percent change, and percentage difference with step-by-step explanation.