How many different ways can the balls be placed if each box gets at least $4$ balls each, but no box gets $20$ or more balls?
I was thinking about finding all the possible ways which every box gets at least $4$ balls which would be $47\choose44$ ways $\rightarrow$ $16215$ ways. Then subtracting that number by the number of possible ways that a box could get 20 or more balls ($16215$ - $20$ or more balls possibilities). The thing is I don't know how to get the number of ways if a box gets $20$ or more balls. Any tips?
You are expected to use the inclusion-exclusion principle. Compute the number of ways to distribute the balls without restriction. Then choose a box to get at least $20$ (4 ways), put $20$ in it, and distribute the rest of the balls among all the boxes. Subtract these arrangements. You have subtracted the ones with $20$ balls in two different boxes twice, so add them back. Finally the ones that have $20$ in three boxes...