Sie sind auf Seite 1von 3

8/19/13 Distributing Balls into Boxes

Like 266 Send 0 Share

Java J2EE Sample Quantitative Online Tests Speed RDBMS Crash Miscellaneous


Programs Aptitude Mathematics Course

You are here : Home > Quantitative aptitude questions and answers with explanation > Permutations and Combinations >
Distributing Balls into Boxes

Basics Concepts and Formulas  Distributing Balls into Boxes  
(Permutations and Combinations)
Here, we are dealing with the number of ways of distributing k balls into n boxes under various conditions.
Useful Relations 
(Permutations and Combinations)
The conditions that are generally asked are given below
More Concepts and Formulas 
(Permutations)
1.  The balls are either distinct or identical.
Permutations under Restrictions
More Concepts and Formulas  2.  The boxes are either distinct or identical.
(Combinations)
3.  No box can contain more than one ball or Any box may contain more than one ball.
Combinations under Restrictions
4.  No box can be empty or any box can be empty.
Division and Distribution of
Objects
Distributing Balls into Boxes This is an area which many students choose to ignore. However these concepts will help us in solving many
advanced problems in combinatorics and permutations and combinations.
Counting Integral Solutions
More Formulas We  can  use  the  principles  of  permutations  and  combinations  to  deal  with  problems  of  distributing  balls  into
(Permutations and Combinations) boxes.
Geometrical Figures
The concept of identical boxes are more complicated and generally studied in detail in combinatorics.
(Permutations and Combinations)
Solved Examples ­ Set 1 The below table explains the number of ways in which k balls can be distributed into n boxes under
various conditions.
Solved Examples ­ Set 2
All the below mentioned cases are derived under the assumption that the order in which the balls are placed
Solved Examples ­ Set 3 into the  boxes  is  not  important.  (i.e.,  if  a  box  has  many  balls,  the  order  of  the  balls  inside  the  box  is  not
Solved Examples ­ Set 4 important).

Solved Examples ­ Set 5
 
Distribution of How many balls boxes can contain
Loading
≤ 1 
Math into n ≥ 1  = 1 
k Balls No Restrictions (At most
Symbols  Boxes (At least one) (Exactly one)
one)

S(k,n) × n!  nP
nP n = n! if k = n
nk k
Distinct Distinct (formula 3)
0 if k ≠ n
(formula 1) (formula 2) (See more details
below) (formula 4)

(n+k­1)C nC (k­1)C 1       if k = n 


k k (n­1) 0       if k ≠ n 
Identical Distinct
(formula 5) (formula 6) (formula 7) (formula 8)
n 1       if k ≤
∑ S(k,i) n  S(k,n)
i=1 1       if k = n 
0       if k >
0       if k ≠ n 
Distinct Identical n  (formula 11)
(formula 9) (See more details
(See more details (formula 12)
(formula below)
below) 10)
n 1       if k ≤
∑ P(k, i) n  P(k, n) 1       if k = n 
i=1
0       if k > 0       if k ≠ n 
Identical Identical n  (formula 15)
(formula 13)
(See more details (formula 16)
(See more details
(formula below)
below)
14)

file:///home/RGUKT/IMP/aptitude material/aptitude2/Distributing Balls into Boxes.html 1/3


8/19/13 Distributing Balls into Boxes

S(k,n) Stirling number of the second kind and can be defined as 

1 n−1
S(k,n) = ∑ (−1) i n Ci (n − i) k
n! i=0
1
= [n (n − 0 ) k − n C1 (n − 1 ) k + n C2 (n − 2 ) k + ⋯ + (−1) n−1 n Cn−1 (1 ) k ]
n! C0
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.

Formula for P(k,n) is much harder than that of S(k, n). The following example will explain how we can find
the value of P(k,n).

What is the value of P(6,3) ?

The partitions of 6 into 3 parts are
4 + 1 + 1
3 + 2 + 1
2 + 2 + 2
(Note that 4 + 1 + 1 ,1 + 4 + 1, and 1 + 1 + 4. all are same. Similarly we need to consider all other cases as
well)

Hence the number of partitions of 6 into 3 parts are = 3
=> P(6,3) = 3

What is the value of P(6,2) ?

The partitions of 6 into 2 parts are
1 + 5
2 + 4
3 + 3
Hence the number of partitions of 6 into 2 parts are = 3
=> P(6,2) = 3

What is the value of P(6,1) ?

Here, we count the number of partitions of 6 into 1 part. 
Clearly the number of such partitions = 1
=> P(6,1) = 1

Now try to find out the value of P(6,4)

The partitions of 6 into 4 parts are
1 + 1 + 1 + 3
1 + 2 + 2 + 2
Hence the number of partitions of 6 into 4 parts are = 2
=> P(6,4) = 2

Special Cases: P(0, 0) = P(k, k) = P(k, k­1) = P(k, 1) = 1  

Comments(1)   Newest

suresh  09 Jul 2013 3:12 AM

nice

Like  |  Dislike  |  Reply |  Flag

file:///home/RGUKT/IMP/aptitude material/aptitude2/Distributing Balls into Boxes.html 2/3


8/19/13 Distributing Balls into Boxes

Add a new comment ...  

Sign in (optional)

Name     Email   

Please answer the simple math question given below 

3 + 0 = 

Submit

Home | careerbless@gmail.com | Copyright | Terms and Conditions | Privacy Policy 

Copyright © 2012­2013 www.careerbless.com.  All rights reserved.

file:///home/RGUKT/IMP/aptitude material/aptitude2/Distributing Balls into Boxes.html 3/3

Das könnte Ihnen auch gefallen