More generally, each element of S ( n , g ) is a multiset of cardinality n (number of dice) with elements taken from the set { 1 , … … , g } of cardinality g (number of possible values of each die), and the number of such multisets, i.e., w ( n , g ) is the multiset coefficient