Overview
Distribution problems ask us to place objects into boxes, give objects to people, or assign items to recipients. The main questions are:
- Are the objects distinct or identical?
- Are the recipients distinct?
- Can someone receive nothing?
- Are there lower or upper bounds?
The answers determine which counting method we use.
Motivation
Suppose we want to distribute identical sweets among children.
If the children are named Alice, Ben, and Chloe, then an outcome is determined by three nonnegative integers:
Here, is the number of sweets Alice receives, is the number Ben receives, and is the number Chloe receives.
This is different from splitting sweets into unlabelled groups. The children are distinct, so
and
are different outcomes.
This is the setting where stars and bars becomes useful.
Distinct Objects to Distinct People
Suppose there are distinct objects and distinct people.
If each object can go to any person, then each object has choices.
So the number of distributions is
Example 1
How many ways are there to distribute distinct books among students?
Each book can go to any of the students.
Therefore, the number of ways is
Distinct Objects With No Empty Recipient
If every person must receive at least one distinct object, the problem is more subtle.
For small cases, we often use casework or inclusion exclusion.
Example 2
How many ways are there to distribute distinct books among students so that each student receives at least one book?
Without restriction, each book has choices, so there are
ways.
Now subtract the cases where one student gets no books.
There are such bad cases:
- All books go to the first student
- All books go to the second student
So the answer is
Identical Objects to Distinct People
Suppose we want to distribute identical objects among distinct people, and people are allowed to receive nothing.
This is the number of nonnegative integer solutions to
By stars and bars, the number of solutions is
Why Stars and Bars Works
Imagine stars representing the objects.
We need to divide them into groups, one for each person. This requires dividers.
So we arrange
stars and
bars in a row.
The total number of symbols is
Choosing the positions of the bars determines the distribution, so the number of distributions is
At Least One Each
If each of the people must receive at least one identical object, then we need positive integer solutions to
Give each person one object first. This uses objects.
Now distribute the remaining
objects freely among the people.
The number of ways is
Example 3
How many ways are there to distribute identical sweets among children if each child must receive at least one sweet?
We need positive integer solutions to
By stars and bars, the answer is
Upper Bounds
Sometimes each person can receive at most a certain number of objects.
These problems often require casework or complementary counting.
Example 4
How many ways are there to distribute identical sweets among children if no child receives more than sweets?
First ignore the upper bound.
The number of nonnegative solutions to
is
Now subtract distributions where some child receives at least sweets.
Suppose
Let
Then
The number of solutions is
The same applies to each of the children, so we subtract
No two children can both receive at least sweets, since that would require at least sweets.
So the answer is
Mixtures of Object Types
Some problems involve multiple types of identical objects.
For example, suppose we distribute identical red balls and identical blue balls among children.
We can distribute the red balls independently of the blue balls.
The red balls can be distributed in
ways.
The blue balls can be distributed in
ways.
Therefore, the total number of distributions is
Worked Examples
Example 5
How many ways are there to distribute identical balls among labelled boxes?
We need nonnegative integer solutions to
By stars and bars, the answer is
Example 6
How many ways are there to distribute identical balls among labelled boxes if each box must contain at least one ball?
We need positive integer solutions to
The answer is
Example 7
How many ways are there to distribute distinct books among students if one particular student must receive exactly books?
Choose the books for that student:
Each of the remaining books can go to either of the other two students, so there are
ways.
So the answer is
Key Contest Insight
Distribution problems depend heavily on whether the objects and recipients are distinct.
If the objects are distinct and the recipients aredistinct, think about choices for each object.
If the objects are identical and the recipients are distinct, think about integer solutions and stars and bars.
If there are restrictions, first count without the restriction, then subtract the invalid cases when possible.
Strategy Tips
- Identify whether the objects are distinct or identical
- Identify whether the recipients are distinct
- For distinct objects to distinct people, use choices for each object
- For identical objects to distinct people, use stars and bars
- For 'at least one each', give one object to each person first
- For upper bounds, use complementary counting or casework
- For multiple independent object types, count each type separately and multiply
Common Pitfalls
- Confusing distribution to labelled people with splitting into unlabelled groups
- Using stars and bars for distinct objects
- Forgetting that people may be allowed to receive nothing
- Forgetting to handle the 'at least one' condition
- Ignoring upper bounds
- Multiplying independent counts when the choices are not actually independent
Practice Problems
| Status | Source | Problem Name | Difficulty | Tags | ||
|---|---|---|---|---|---|---|
Module Progress:
Join the Discord Community!
Stuck on a problem, or don't understand a module? Join the Discord and get help with your doubts while making more math friends.
