[Math] How many ways we can place 3 balls into 4 boxes

combinatorics

How many ways we can place 3 balls into 4 boxes. One box may contain more than one balls.

Best Answer

If the balls are distinguishable each ball can be placed in any box without restrictions so the number of ways is $4^3$. Why?

If the balls are undistinguishable, use stars and bars.