COMBINA (NumberOfItems, NumberChosen) COMBINA (NumberOfItems; NumberChosen)
NumberOfItems
Number Number
The number of items.
NumberChosen
Number Number
The number of items in each combination.
Returns
Number Number
The number of combinations with repetitions.
Returns the number of combinations with repetitions for a certain number of items. This is the number of ways of choosing a number of items from a set of items, if the order of the chosen items does not matter and an item can be chosen more than once.
Examples
COMBINA (4, 2)
COMBINA (4; 2)
Returns 10, the number of ways of choosing two scoops of ice cream from four flavors, if both scoops may have the same flavor.
COMBINA (4, 4)
COMBINA (4; 4)
Returns 35.
COMBINA (8, 2)
COMBINA (8; 2)
Returns 36.
COMBINA (8, 4)
COMBINA (8; 4)
Returns 330.
COMBINA (8, { 2, 4 })
COMBINA (8; { 2; 4 })
Returns the array { 36, 330 }{ 36; 330 }.
COMBINA ({ 4, 8 }, { 2, 4 })
COMBINA ({ 4; 8 }; { 2; 4 })
Returns the array { 10, 330 }{ 10; 330 }.