If there is 3 distinguishable boxes and 5 indistinguishable balls, by dropping the balls into boxes randomly, then there will be 21 combinations profile of ball number in each box.
{{5, 0, 0}, {0, 5, 0}, {0, 0, 5}, {4, 1, 0}, {4, 0, 1}, {1, 4, 0}, {1,
0, 4}, {0, 4, 1}, {0, 1, 4}, {3, 2, 0}, {3, 0, 2}, {2, 3, 0}, {2,
0, 3}, {0, 3, 2}, {0, 2, 3}, {3, 1, 1}, {1, 3, 1}, {1, 1, 3}, {2, 2,
1}, {2, 1, 2}, {1, 2, 2}}
I am interested in the probability to get each profile, eg {3, 2, 0}(3 balls in in $B_1$, 2 balls in $B_2$, 0 ball in $B_3$).
Thus, the problem can be generalized as:
given $n$ distinguishable box and $k$ indistinguishable balls, what is the probability to get profile $\{k_1, k_2, k_3, ... , k_n\}$ in all trials?
More generally, if the boxes are different in size (by weights, $w_1, w_2, w_3, ... , w_n$), what will the probability become?
This is the multinomial distribution.
If you consider all $n^k$ outcomes for which ball goes in which box, there are $\frac{k!}{k_1! \cdots k_n!}$ outcomes that correspond to the profile $(k_1, \ldots, k_n)$. If each ball is equally likely to go in each box, then the probability is $\frac{k!}{k_1! \cdots k_n!} \frac{1}{n^k}$. More generally, if the probability of a ball going into box $i$ is $w_i$, then it is $\frac{k!}{k_1! \cdots k_n!} w_1^{k_1} \cdots w_n^{k_n}$.