combinationsWithRep#
Compute the number of combinations of n items taken k at a time with replacements.
Available in: math cells, REPL.
Syntax#
combinationsWithRep(n, k)
Arguments and behavior#
Integer counts must satisfy the function domain. Random functions do not promise a fixed sample. The example returns scalar (number).
Example#
Edit the inputs, then use Run or Reset. Changes stay in this example.
Example
combinationsWithRep(7, 5)Interactive examples could not load. You can still copy the expressions.
Expected result: 462.