There are identical pieces of candy and identical cookies to distribute to children (two boys and a girl). In how many ways can this be done if
(a) each child must receive at least of each type of item?
(b) each child must receive exactly items?
(c) the girl must receive more pieces of candy than either boy, and the boys must receive an equal number of cookies?
Set up the tool. The number of ways to split identical items among distinct children with each getting at least is ; if zero is allowed it is . Candies and cookies are distributed independently, so in each part the two counts multiply.
Part (a): each child gets at least one of each. For the candies, ; for the cookies, . Multiplying,
Part (b): each child gets exactly four items. Here the two distributions are no longer independent — the cookie count determines the candy count. If child gets cookies then it gets candies, and automatically forces candies. So it is enough to count cookie splits with zeros allowed:
Part (c), cookies: the boys must get equal numbers. If each boy gets cookies then the girl gets , which needs — three possibilities.
Part (c), candies: the girl beats both boys. Enumerate by the girl's share , with the boys' shares summing to and each below :
and is impossible since then the boys would need candies between them with each below . That totals candy distributions.
Combine for part (c) and summarise.
So the three answers are , and . A direct computer enumeration over all distributions reproduces each of these counts exactly.
Need to solve a different problem like this? Open the solver →