Counting Set Partitions

Lesson · Intermediate

Combinatorics

A set partition divides a set of distinct elements into nonempty, disjoint groups whose union is the entire set.

For example, the number of ways to divide 1515 people as shown is

Partition of 15 people into three groups of 2, one group of 4, and one group of 5
(152)(132)(112)(94)(55)3!=15!2!3 4! 5! 3!\frac{\binom{15}{2}\binom{13}{2}\binom{11}{2}\binom{9}{4}\binom{5}{5}}{3!}=\frac{15!}{2!^3\,4!\,5!\,3!}