The number of ways that the n items can be partitioned into subsets of the given sizes is n factorial divided by the product of the factorials of the different ni's. This particular expression is called the multinomial coefficient, and it generalizes the binomial coefficient.