Up |
_scienceStatisticCombinationWithRepetition
Get the number of k-combinations with repetition (or k-multicombination) from
n given elements. The n elements are not necessarily distincts. The mathematic
formula is (n+k-1)! / (k!(n-1)!)
Prototype :
fun [I I] S
- I : n, with n < 170.
- I : k, with k < n.
Return : S a new string number or nil if error
See also :
_scienceStatisticCombinationWithoutRepetition
Example :
Note :