Free Combinations with Repetition Calculator
The total number of distinct objects available to choose from.
The number of items you want to select (repetition allowed).
C′(n,r) = (r + n − 1)! ÷ (r! × (n − 1)!)
Enter n and r values, then click Calculate
Combinations with Repetition: An Overview
Combinations with repetition—also called combinations with replacement or multiset selections—form a foundational counting technique in combinatorics. They quantify the number of ways to choose a sample of size from a set of distinct categories, where each category may be selected more than once. This concept arises in many practical scenarios: assessing lottery odds, analyzing hash collisions in computer science, or determining the variety of possible portfolios when assets can be bought repeatedly.
Understanding the underlying Combination with Repetition Formula is valuable even when using an automated tool. The formula itself is compact:
where is the number of distinct objects, is the sample size, and the prime symbol distinguishes this from ordinary combinations (without repetition). The same quantity is sometimes written as or as the multiset coefficient , and its derivation is often explained through the stars‑and‑bars method.
Worked Example: Five Digits from 0–9
Suppose you want to know how many combinations of five digits can be formed from the decimal digits 0 through 9 when repetition is permitted. Here and . Substituting into the formula gives:
\begin{aligned} C'(10,5) &= \frac{(5 + 10 - 1)!}{5!\,(10 - 1)!} = \frac{14!}{5! \times 9!} \$$4pt] &= \frac{87,\!178,\!291,\!200}{120 \times 362,\!880} = 2002. \end{aligned}Thus, there are 2002 distinct multisets (combinations) of five digits when repetition is allowed. If order were considered (permutations with repetition), the number would be . The dramatic difference highlights the effect of ignoring order.
Using the Online Combinations with Repetition Calculator
The Combinations with Repetition Calculator (also known as a Combinations with Replacement Calculator or Multiset Combination Calculator) handles all the factorial arithmetic instantly. You simply enter the values for and , and the tool returns without manual computation.
Importantly, this Combination with Repetition Online tool does more than just count: it acts as a combination generator with repetition, producing a readable list of every possible selection. This feature is especially useful for verification or when you need to inspect the combinations themselves rather than just their number.
Key Distinctions
To apply the results correctly, it is essential to differentiate combinations with repetition from related concepts:
- Combinations without repetition () allow each object to be chosen at most once, yielding smaller counts for the same and .
- Permutations with repetition () treat the order of selection as meaningful, which always gives larger counts than the corresponding combination case.
The calculator focuses on the “order does not matter, repetition allowed” scenario—a staple in probability problems, combinatorial design, and statistical sampling. By clarifying these distinctions, the tool serves as a reliable companion for both students and practitioners of discrete mathematics.
FAQ
1. How does the combination with repetition formula work?
The formula is C'(n,r) = (r+n-1)! / (r!(n-1)!). It counts the number of ways to choose r items from n types when repetition is allowed. The prime indicates this is the 'with repetition' version.
2. How many combinations with repetition are possible when picking 5 numbers from 0‑9?
There are 2,002 possible combinations. This is found by plugging n=10 and r=5 into the formula: (5+10-1)!/(5!×9!) = 14!/(5!×9!) = 2002.
3. Can the calculator also show me the actual combinations, not just the count?
Yes. The online tool functions as a combination generator with repetition, listing all distinct multisets in addition to reporting the total number.
4. What is the difference between combinations with repetition and permutations with repetition?
In combinations, the order of selection does not matter. For n=10, r=5, the number of combinations with repetition is 2,002, while the number of permutations with repetition (order matters) is 10^5 = 100,000.
5. What does the prime symbol (C') mean in the formula?
The prime distinguishes combinations with repetition from ordinary combinations (C). The same quantity is also called the multiset coefficient and is often written as ((n over r)) with double parentheses.
How to Use
- Enter the total number of objects (n) you want to choose from.
- Enter the sample size (r) you want to select.
- Click Calculate to instantly see the number of combinations with repetition.