The idea

Distributing identical items among people is the same as writing stars and bars in a row: ways. Lower bounds are removed by handing them out first; upper bounds by subtracting the cases that exceed them.
Textbook vs exam method
Textbook method
- Classify: identical/distinct objects, identical/distinct recipients, empty allowed or not.
- Identical to distinct: shift every lower bound to , then stars and bars; subtract cap violations.
- Distinct to distinct: each object picks a recipient (); none empty by inclusion-exclusion.
- Distinct to identical or identical to identical: list the possible group sizes.
Exam method
- Shift then count. , , sum , four variables: .Indore 2024
- Ranges. in positive integers: , or by the hockey stick.
- Identical boxes. Rohtak 2020 racquets: patterns and : .
- Odd parts. turns 'odd positive' into 'non-negative'.
Worked examples
Example 1Sitter
apples to children, each at least
.
Example 2
(d2, Indore 2024 Q35) with ,
.
Example 3
(d2, Indore 2023 SA Q3) positive solutions of
.
Example 4
(d3, Rohtak 2020 Q8) different racquets in identical boxes, none empty
.
Example 5
(d5, Indore 2024 Q32, corrected) identical balloons, girls and boys, each at least one, no girl below any boy
split by the largest boy share: .
Traps
- Lower index off by one; 'at least one' vs 'zero allowed'; equal groups counted twice; a bound forgotten.

Formulas
Non-negative solutions (stars and bars)
n identical items among k people, zero allowed; shift lower bounds first (Indore 2024: 50 - 1 - 2 = 47, C(50, 3) = 19600).
Positive solutions
Everyone gets at least one: give one each, then stars and bars.
Solutions of an inequality
Add a slack variable; a range L to U is a sum of equalities (Indore 2023: 1160).
Distinct objects into distinct boxes
Inclusion-exclusion on the empty boxes when none may be empty.
Dividing into equal groups
Divide by k! only when the groups are unlabelled; equal shares to k people: (mk)!/(m!)^k.
In the exam
Shortcuts
- Decide two things first: are the objects identical? are the boxes identical? - the four cases use different tools.
- Identical into distinct: stars and bars. Distinct into distinct: . Distinct into identical: list the size patterns (Rohtak 2020: ). Identical into identical: list partitions.
- Upper caps: stars and bars minus the cases over a cap (inclusion-exclusion), or list when small.
- Coins: fix the number of the largest coin and count the rest (Indore 2026: to make gives ).
- Ordered factorisations: share each prime's exponent among the factors, per prime for three factors.
~70 s per question at exam speed
When to skip: Plain stars and bars is 30-45 s. Order constraints between people (Indore 2024 balloons) or many caps take 3 minutes - skip in a first pass.
Before this
What the exams ask here
- x+y+z=n solutions with x>=a
- distribute 5 distinct balls in 3 identical boxes
- solutions with sum in a range