In how many ways can 5 distinct balls be placed into 3 distinct boxes so that no box is empty?
Enter an integer
Show solution
Total placements: 35=243. Subtract placements using at most 2 boxes: (13)⋅25=96. Add back placements using exactly 1 box: (23)⋅15=3. By inclusion-exclusion: 243−96+3=150.