LibraryQuant puzzles

Stars and Bars: Identical Units Into Buckets

Quant puzzle · intro · members

The question

Ten identical units are to be split among four labelled buckets, call them A, B, C and D. The units are interchangeable, so only the counts matter: giving A three units and B seven is one allocation, and giving A seven and B three is a different one.

  1. How many allocations are there?
  2. How many leave no bucket empty?
  3. How many give no bucket more than four units?

Hint

For the second question, hand out some units before counting anything. For the ceiling, count the allocations that break it rather than the ones that respect it.

The idea behind it

Stop thinking about the units and think about the dividers. An allocation is exactly a choice of where to place the walls in a row of items, which turns a counting problem with no obvious structure into a single binomial coefficient.

The worked solution is for members

You have the question, a hint and the idea. It counts the allocations for each version of the question, with a short check by hand on each count.

Further reading

Related problems

Topics

Also in the library