[Math] Number of ways to arrange different types of indistinguishable objects among boxes

combinatorics

I have a problem where I need to calculate the number of ways I can put $n_{1}$ indistinguishable objects and $n_{2}$ indistinguishable objects that are distinguishable from $n_{1}$,into $k$ distinguishable boxes, where each box can only hold one object.

Thank you 🙂

Edit:
$k \geq n_1 + n_2$

Best Answer

Here is how I put it: Choose $n_1$ boxes out of $k$ boxes and place all the $n_1$ objects into this selection. Among the remaining $k-n_1$ boxes, choose $n_2$ boxes and place all the $n_2$ boxes in this selection. So, the answer would be ${k \choose n_1}{k-n_1\choose n_2}$, which matches to your answer.

Probably similar to what is given by User58220