# How to find all combinations in multinomial case

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?

Can you give an example of what you want?

We have 10 places {1,2,3,..,10}. We have to choose 4 places like {2,4,6,7}. Remaining 6 positions, we need to partition with two sets each having 3 numbers like {1,5,10} and {3,8,9}. I want to enumerate all such options.