Number of ways of putting n identical objects into s boxes,if one box can only fit n/2 at most.

62 Views Asked by At

How many ways of putting N objects into S boxes are there considering that one box can fit N/2 objects at most. When researching i came across these two solutions:

$\left(\begin{array}{c}N+S-1\\ S-1\end{array}\right)$ And $\left(\begin{array}{c}N-1\\ S-1\end{array}\right)$ But unfortunately neither gave the right answer for N=4 and S=3.