A good thinking problem. Find the number of ways in putting n different objects in m different boxes. (any number of objects in any box)
are objects and boxes identical??
Nope. Distinct objects. And all boxes different too.
\( m^n \)
@FoolForMath I thought the same. But apparently in the answer ( which is a series) some cases have been deducted.
@siddhantsharan: what do you mean?
As in the anser is m^n - (something)
*Answer
Okay then your question is not stated correctly.
you are subtracting that means no boxes could be left empty.
Are you sure as to subtracting being incorrect. Also there was a hint : [ Think w.r.t. inculsion exclusion principle] Annnd how did you get the second series?
The series you are looking for is \[ \sum_{j=0}^m (-1)^{j}{m \choose j} (m-j)^n \]
I am very sure. This is elementary mutual inclusion-exclusion. Expand that series you will get what you are looking for.
Okay. Thanks a lot. But why that serries. How is it derieved?
How do you derive such series?
Annnd this subtraction (of that series) is to my question or is it when no box is empty?
Hiatus. Lunch time :)
im trying to understand the question. Is this the same as asking how many solutions does the equation:\[x_1+x_2+x_3+\cdots+x_m=n\]have, where each x_i must be non-negative? (think of each box as one of the variables, and the sum of the number of objects in each box must be n).
I think so.
Wow, joemath. I love the way you think.
If that is the case, then the answer is:\[\left(\begin{matrix}n+m-1 \\ m-1\end{matrix}\right)\]
That is not the case :)
How that is not the case? wait... yeah objects aren't identical.
That's right :)
Join our real-time social learning platform and learn together with your friends!