Distributing Balls into Boxes


Here, we are counting the number of ways in which k balls can be distributed into n boxes under various conditions.

The conditions which are generally asked are
1. The balls are either distinct or identical.
2. The boxes are either distinct or identical.
3. No box can contain more than one ball or any box may contain more than one ball.
4. No box can be empty or any box can be empty.

The concept of identical boxes are more complicated and generally studied in detail in combinatorics.

The table below explains the number of ways in which k balls can be distributed into n boxes under various conditions. All the below mentioned cases are derived under the assumption that the order in which the balls are placed into the boxes is not important. (i.e., if a box has many balls, the order of the balls inside the box is not important).

S(k,n)=1n!i=0n1(1)inCi(ni)k
=1n![nC0(n0)knC1(n1)k +nC2(n2)k++(1)n1nCn1(1)k]

Special Cases
S(0,0) = 1
S(k,0) = 0 for k ≥ 1
S(k,n) = 0 for k < n

P(k,n) = The number of partitions of the integer k into n parts.

No comments

Powered by Blogger.