rsubmultisets
rsubmultisets, short for restricted submultisets, are a combinatorial generalization of multisets with upper bounds on the multiplicities of elements. Let X be a finite set with elements x1, x2, ..., xn, and let each xi occur with a maximum multiplicity mi ≥ 0 in a larger multiset A. An r-submultiset of A is a multiset B determined by counts ki for i = 1,...,n, where 0 ≤ ki ≤ mi for all i and sum(i) ki = r. Equivalently, B is specified by the vector (k1, ..., kn) with these constraints.
Notation and basic examples: If A has multiplicities mi and we fix r, the number of r-submultisets
Generating function and counting: The ordinary generating function for the r-submultisets is given by the coefficient
Number = sum over all subsets S of {1,...,n} of (−1)^{|S|} binomial(r − sum_{i∈S}(mi+1) + n − 1, n − 1),
Relation and applications: rsubmultisets are a special case of submultisets with a fixed total size, and they