Unit 3
Unit 3
Counting Principles
Basics of counting
• In many discrete problems,we are
encountered with the problem of counting so
permutation and combination is the branch of
discrete math concerned with counting
problem.
• The fundamental principles:
1.The rule of sum
2.The rule of product
1.The rule of sum
• If an event can occur in m ways and another
event can occur in n ways ,and if these two
events can not occur simultaneously, then
one of the two event can occur in m+n ways.
Eg. 1 If there are 10 boys and 8 girls in a class,
find the number of ways of selecting one
student as a class representative
Solution: using the rule of sum ,there are 10+8
=18 ways of selecting one student (either boy
or girl)as class representative.
Eg2 IF a student is getting admission in 4
different engineering colleges and 2 medical
colleges. Find the number of ways of choosing
one of the above colleges.
Solution:
Using the rule of sum , there are 4+2=6 ways of
choosing one of the college
2.The rule of product
• If an event can occur in m ways and a second
event can occur n ways ,and if number of ways
the second event occurs, does not depend
upon the occurrence of the first event, then
the two events can occur simultaneously in
m*n ways.
Eg.1 Three persons enter into car ,where there
are 5 seats .In how many ways can they take up
their seats.
Solution:The first person has a choice of 5 seats
and can sit in any one of those 5 seats.so there
are 5 ways to occupy the first seat.
The second person has a choice of 4 seats, and
the third person has a choice of 3 seats.
solution:
If president is man ,he can be selected in 9 ways
Then general secretary will be selected in 8 ways (as GS is a man)
If president is woman ,then she can be selected in 11
ways and then the treasurer in 10ways (as Treasurer is
woman)
hence by rule of sum and product total number of ways
to make the selection is –
(9*8*11)+(11*10*9)
=1782 ways
eg.5 Find how many symbols can be formed if
first 2 symbols are letters and next 3 are digits
but no symbol is replaced
solution:
first 2 symbols can be chosen from 26 alphabets
in 26 p2 ways.
next 3 digits can be chosen in 10 p3 ways
hence by product rule number of symbols that can
be formed is
26 p 10 p =468000
2* 3
2)Restricted permutation:
i) The number of permutations of n different
object taken r at a time in which k particular
object do not occur is p(n-k, r) i.e. n-kpr .
ii)The number of permutations of different object
taken r at a time in which k particular objects are
always present is p(n-k,r-k)xp(r,k).
Eg 1 How many 6 digit number can be formed by using
the digits 0,1,2,3,4,5,6,7,8 if every number is to start with
30 , with no digit repeated.
Solution:
All the number begins with 30, so we have to choose 4
digits from remaining 7 digits
Therefore total number that begins with 30 is
7p = 7!/(7-4)!
4
= 7*6*5*4*3!/3!
= 840
Eg2 In how many ways 5 different microprocessor books
and 4 different digital books be arranged in a shelf so
that all the four digital books are together
Solution: consider the 4 digital books are as one unit
thus we have 6 units that can be arranged in 6! Ways.
For each of their arrangement , 4 digital books can be
arranged among themselves in 4! Ways.
Total number of arrangement in which all four digital
books are together is =
6!*4!
= 720*24
= 17280
Eg3. How many permutations can be made out of letter of word
COMPUTER? How many of there-
i)begins with C?
ii)End with R?
iii)Begin with C and end with R?
iv)C & R occupy the end places?
Solution: There are 8 letters in the word COMPUTER and all are
distinct.therefore total number of permutations of these letter
= 8!= 40320.
i) Permutation which begins with C?
solution: first position that can be filled in only 1 way.i.e. C and
remaining 7 letters can be arranged in 7! ways.
therefore the total number of permutation starting with C are-
=1*7!
=5040
ii)permutations which ends with R.
solution: the last position can be filled in only one way
i.e. R and the remaining 7 letters can be arranged in 7!
ways.
therefore total number of permutations ending with
R=7!*1=5040.
nC
r= n!/r!(n-r)! ,n>=r>=1