We can find all combinations in Sagemath using
C = Combinations(range(10),4)
Now instead of binomial, I want multinomial case. So out of 10 possible places, I want to find all combinations (4,3,3). How can we do this in Sagemath?
1 | initial version |
We can find all combinations in Sagemath using
C = Combinations(range(10),4)
Now instead of binomial, I want multinomial case. So out of 10 possible places, I want to find all combinations (4,3,3). How can we do this in Sagemath?