Ice cream
- Input
- CR(5, 3)
- Expected output
- 35
5 flavors, 3 scoops, with repetition.
combinations with repetition CR(n,r)
CR(n,r) = C(n+r-1, r). Useful when the same element can be chosen multiple times: ice cream flavors, dice rolls, coin distributions.
5 flavors, 3 scoops, with repetition.
6 identical objects in 4 boxes.
A combination is a selection of r elements from a set of n, where the order of selected elements does not matter. For example, choosing 2 fruits from {apple, pear, grape} gives 3 combinations: {apple, pear}, {apple, grape}, {pear, grape}.
Yes, for r ≥ 2 and n ≥ 2, CR(n,r) ≥ C(n,r), since more options are available when repetition is allowed.
No. It helps explain the scenario and use the tool more safely, but real decisions should consider official sources, full context and qualified guidance when needed.
C(n, r) = n! / (r! × (n−r)!)
All calculations stay in your browser. No data is sent to any server.