Grouping and Distribution of Objects
On this page
Direct answer
Grouping and distribution of objects counts the ways items fall into groups, set by two distinctions: distinct or identical objects, labelled or unlabelled groups. Distinct objects into labelled groups sized n1 ... nk give n!/(n1!...nk!), while identical objects use stars and bars, C(n + r − 1, r − 1). Equal unlabelled groups need one more division: 12 students in three equal unnamed teams give 12!/(4!·4!·4!·3!) = 5775.
What you must remember
- Distinct into labelled groups: fixed sizes n1, ..., nk give n!/(n1!...nk!); if any group may take any number, each object chooses a group and the count is k^n.
- Equal-size correction: when groups are unlabelled and some sizes coincide, divide by the factorial of how many groups share each size; teams of 4, 4, 4 need an extra division by 3!.
- Identical into labelled groups: C(n + r − 1, r − 1) for n identical objects in r groups with empties allowed; if every group must be non-empty, the count becomes C(n − 1, r − 1).
- Unlabelled groups in general: distinct objects into non-empty unlabelled groups give Stirling partition counts, while identical objects give the number of partitions of n, usually enumerated for small cases.
- Cards and players: dealing 52 cards equally to 4 labelled players gives 52!/(13!)^4 with no 4! correction; four unnamed piles would divide by 4!.
- Constraint problems: conditions such as "at least one girl" are solved by complement, the total minus the forbidden case.
Why 12 into three teams gives 5775
Why does 12 into three teams of 4 give 5775 and not 34650? The answer depends on whether the teams carry names.
- Choose ordered teams: pick 4 of 12, then 4 of the remaining 8, then the last 4, giving C(12,4)·C(8,4)·C(4,4) = 12!/(4!·4!·4!) = 34650. This counts the teams as ordered: first, second and third.
- Remove the ordering: if the teams are genuinely indistinguishable, each unordered split was counted 3! times, so 34650/6 = 5775.
- Keep the division only when unnamed: once the question names the groups (team A, team B, rooms or coaches), the division disappears and 34650 stands.
- Switch to identical objects: give 12 identical toffees to 4 children, each getting at least one, by first giving every child one toffee.
- Apply stars and bars: the remaining 8 identical toffees go freely to 4 children, giving C(8 + 3, 3) = C(11, 3) = 165. Without the at-least-one condition the count would be C(15, 3) = 455.
Diagnose both adjectives before computing, because distinct objects care about who goes where while identical objects care only about how many go in each group.
Where the exam hides the group type
The exam hides the group-type question inside ordinary nouns such as teams, piles, rows and boxes.
- Trap: treating equal, unnamed piles or teams as labelled groups Correct: the division by the factorial of repeated sizes is needed exactly when the groups are unnamed and equal in size.
- Trap: treating three identical prizes among 10 students as distinct, which gives 10^3 = 1000 Correct: identical prizes use stars and bars, C(10 + 3 − 1, 3 − 1) = C(12, 2) = 66, a fifteenfold collapse caused by one adjective.
- Trap: placing the girls anywhere in a row of boys and hoping none touch Correct: the 5 boys create 6 gaps, so choose 3 gaps and arrange the girls there: C(6,3) × 5! × 3! = 14400 arrangements with no two girls together.
Frequently asked questions
In how many ways can 12 students form three equal unnamed teams?
The count is 12!/(4!·4!·4!·3!) = 5775 ways. The division by 3! removes the ordering of the three teams, because unnamed teams of equal size cannot be told apart.
How many ways can 12 identical toffees go to 4 children with each child getting at least one?
Twelve identical toffees given to 4 children, each getting at least one, can be distributed in C(11,3) = 165 ways. Giving each child one toffee first leaves 8 identical toffees to share freely, which gives C(8 + 3, 3) by stars and bars.
When do you divide by the factorial of group sizes?
You divide only when the groups are unlabelled and two or more groups have the same size, as with three teams of 4 students each. Labelled groups, or groups of unequal sizes, need no such correction.
What is the count for distributing n distinct objects freely into r labelled boxes?
The count is r^n, because each distinct object independently chooses one of the r labelled boxes. For example, 3 distinct prizes among 10 students give 10^3 = 1000 ways.
How does dealing 52 cards to 4 players differ from making 4 unnamed piles?
Dealing 52 cards equally to 4 labelled players gives 52!/(13!)^4 ways. Four unnamed piles of 13 cards divide this by 4! because the piles are unlabelled.