Centrus said:
In questions like these, it's good to consider one ball at a time:
Take one ball, how many possible options are there? Four, since there are four boxes in which it could be placed.
Take the second ball, how many possible options are there? Four again. So in total, for the two balls, I have 4 x 4 = 16 different combinations.
If you keep going, what do you end up with?
The wrong answer -- your method would work for distinguishable balls (and distinguishable boxes). However, the following two sequence of choices are the same outcome in the problem:
In problems like these, once you think you have a way to model the actual problem with descriptions you can count, it's usually a good idea to actually check the two sets are bijective: every actual outcome corresponds to some description, every description corresponds to some outcome, and that the two correspondences are actually inverses.
For your method, if you thought about how to turn an outcome into a description, you probably would have noticed the problem.
But now that I've thought about it, it gives me an idea... (@ the opening poster) the answer is 56, right?
(... process the idea ... remove a redundant part ...)
Lay the five balls out in a row:
* * * * *
Now, the first box begins on the left. Put a mark '|' in the space where the first box ends and the second box begins, and so forth. 3 marks in all.
Edit: Oh, hrm, it might have been even better to invert that: put the box edges in:
| | |
and now add 5 '*' marks in the spaces where the balls go.