6

Where a group can consist of 1 or more items, groups don't have to be equally sized and items can be duplicates. Example - Choose 3 groups:

Items: 1 2 2 3

Groups:

(1) (2 2) (3)

(1 2) (2) (3)

(3 1) (2) (2)

(3 2) (2) (1)

Update Following Rasmus' comment, I see that this is more technically described as finding the possible partitions of a multiset where the number of cells is x.

Peter Taylor
  • 13,701
Dominic
  • 61

1 Answers1

1

Note that this corresponds to the partition of $4$ into $3$ nonzero parts (or $2+1+1 = 4$).

  • 3
    Not quite, since the items have identities (which may be shared). The general formula will be a mess (some coefficient of something in some generating function). – Yuval Filmus Mar 06 '11 at 17:49