Professional Documents
Culture Documents
Names of Sub-Units
Introduction, the Rules of Sum and Product, Permutations, Combinations, the Binomial Theorem,
Combinations with Repetition
Overview
In this unit, you will learn about the fundamental principle of counting, i.e., sum and product rule.
Further in this chapter, you will also learn how to calculate the number of ways the objects can be
arranged and selected, i.e., about the concept of permutation and combination. After going through
this chapter, you will also acquire the knowledge of expanding binomial expression by using the
binomial theorem. Lastly, after reading this chapter you will become proficient in solving problems
based on permutation, combination and binomial theorem.
Learning Objectives
Learning Outcomes
http://math.utoledo.edu/~dgajews/1180_old/132%20Fundamental%20Counting%20Principle.pdf
4.1 INTRODUCTION
Now a day’s remembering passwords and pin number for your different credit cards, debit cards, email
account, phone banking, net banking have become very common. Suppose you made a PowerPoint
presentation for your office and made a 6-character password to lock your document.
But just half an hour before the presentation you forgot your password. What you only remembered is
that you used digits from 0 to 3 and alphabets ‘a’ and ‘b’ to make your password. There are how many
ways of making a password using the digits 0 to 4 and alphabets ‘a’ and ‘b’? Think about another case.
You want to buy 2 mousepads for your desktops in your office. You went to a shop and the shopkeeper
showed you 8 mousepads of different colours.
In how many ways you can select two mouse pads of different colours from those 8 mousepads? It will
be very time-consuming if you made all pairs for counting the number of ways in which you can select
two mouse pads.
The number of ways in which different things can be arranged or selected can be easily determined by
using the fundamental principle of counting.
2
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
M1 M3 M3
B1 B3 B3 B1 B3 B3 B1 B3 B3
4.3 PERMUTATIONS
Consider the same example given in the introduction. There are how many ways of making a 6-character
password using the digits 0 to 3 and alphabets ‘a’ and ‘b’ when the repetition of character is not allowed?
Now, there are 4-digits (0, 1, 2 & 3) and two alphabets (a & b). So, by the sum principle of counting there
are total of 4+2 = 6 characters. Now, a 6-character password is to be formed and repetition of character
is not allowed.
Therefore, we have 6 choices to fill the first place of the password.
As repetition of character is not allowed, we will be left with only 5 characters to fill the second place.
Similarly, we have 4, 3, 2 & 1 choices for filling the third, fourth, fifth and sixth place of the password,
respectively.
Hence, by multiplication or product principle of counting the total number of ways of making a password
is = 6 × 5 × 4 × 3 × 2 × 1 = 720 ways.
3
JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
Here, we have arranged the 6 characters in different ways to make a different password.
So, permutation is counting the number of ways in which the arrangement of a thing or an object can
be done in a definite sequence.
Note: 0! = 1
Example 4.3(a)
Find the value of
12!
a.
8!
b. 7!-5!
Solution
12! 12 11 10 9 8!
a. =
8! 8!
= 12 11 10 9
= 11880
b. 7! – 5!
= 5040 – 120
= 4920
Example 4.3(b)
In how many ways a four-digit ATM pin can be formed using the digits 0 to 9 when:
a. Repetition of digits is not allowed
b. Repetition of digits is allowed
Solution
a. There are total of 10 digits from 0 to 9 and repetition of digits is not allowed.
So, any of the 10 digits can be filled in the first place of the pin.
As repetition of the digit is not allowed, we are left with only 9 digits to fill the second place of the
PIN.
Similarly, the third and fourth place of the PIN can be filled by any of the remaining 8 and 7 digits
respectively.
Thus, the total number of ways in which ATM Pin can be formed = 10×9×8×7 = 5040 ways
4
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
b. There are total of 10 digits from 0 to 9 and repetition of the digit is allowed. Therefore, we can fill
the first place of the pin with any of the 10 digits. As repetition of the digit is allowed, we can fill the
second place by any of the 10 digits. Similarly, we can use any of the 10 digits for filling the third and
fourth place.
Therefore, the total number of ways in which a pin can be formed = 10×10×10×10 = 10,000 ways.
Hence, by the above example we have seen that n different objects taken r at a time can be arranged
in n(n-1)(n-2). (n-r+1) ways when repetition of the item is not allowed.
n(n 1)(n 2) ......... 3 2 1
This can be written as = (n r)(n r 1)(n r 2) 3 2 1
n!
= (n r)!
Event 1: Permutations of n different items when repetition of the item is not allowed
‘n’ different items were taken r at a time, can be arranged in n (n – 1) (n – 2). ...( n – r + 1) ways where 0 <
r ≤ n and the items do not repeat. This is denoted by nP where nP n!
r r=
r!
Event 2: Permutations of n different items when repetition of the item is allowed
‘n’ different items taken r at a time can be arranged in nr when the repetition of the object is allowed.
Example 4.3(c): In how many ways 3 blue chairs, 1 green chair and 1 red chair can be arranged
horizontally.
Solution: Total number of chairs = 3 + 1 + 1 = 5
Now, these 5 chairs taken all at a time can be arranged in 5P5 ways.
5!
=
(5 5)!
5!
=
0!
5!
=
1
= 120 ways
Now, if we interchange places of 3 blue chairs the arrangement will remain the same.
There are 3! ways in which the blue chairs can be interchanged and where the arrangement remains the
same. Therefore, we must divide 120 by 3! = 6 for getting all unique arrangements.
Hence, the number of ways in which 3 blue chairs, 1 green chair and 1 red chair can be arranged
120
horizontally = = 6 ways.
6
5
JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
Event 3: Permutations of n items when t1 items are of the first kind, t2 are of second kind,..... tp are of pth
n!
kind is = t1!t2! ..... tp!
Example 4.3(d): In how many ways 6 digits mobile banking pin using the digit 0 to 9 can be formed when
the pin cannot start with 0 and repetition of the digit is not allowed?
Solution: There are total of 10 digits from 0 to 9. But the pin cannot start with 0. So, we have 9 choices to
fill the first place.
After using digits, we are left with 9 digits including the 0 as repetition of the digit is not allowed. So,
there are 9 ways in which we can choose the second digit.
Similarly, there will be 8 ways to fill the third place as repetition of the digit is not allowed.
In the same way, we can fill the fourth, fifth and sixth place of the pin by remaining 7, 6 and 5 digits
respectively.
Therefore, the number of ways of making a 6-digit mobile banking pin when the repetition of the digit
is not allowed = 9 9 8 7 6 5 = 1,36,080 ways
Example 4.3(e): In how many ways letters of the word “TREASURE” can be arranged with or without
meaning when the vowels always remain together
Solution: There is a total of 4 consonants and 4 vowels in the word “TREASURE”. Now, as the vowels
always remain together treating the 4 vowels (E,E,A,U) as one letter we will have 5 letters (4 consonants
+ 1 group of 4 vowels)
Therefore, the number of arrangements possible with these 5 letters = 5!
= 120
Now, vowels remain together but they can be rearranged within themselves.
As there are total of 4 vowels number of arrangements possible with these 4 vowels = 4! = 24
Now, there are two ‘e’. So, the arrangement will remain the same when they interchange positions within
themselves, i.e., there are 2! = 2 ways in which the arrangement will remain the same.
Similarly, there are 2 ‘r’. Therefore, there are 2!=2 ways in which the arrangement will remain the same
when the ‘r’ will interchange position within themselves.
Therefore, the total number of ways in which the letter of the words treasure can be arranged when
5!4! 120X24
vowels always remain together =
2!2! 2X2
= 720 ways
4.4 COMBINATIONS
Now, suppose you went to the market to buy two mouse pads for your desktops in your office and the
shopkeeper showed you 3 mousepads of different colour say red, blue and green.
So, you can select the two-mouse pad in any of the following ways:
Red-Blue
6
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Red-Green
Blue-Green
Hence, there are only three ways in which you can select two mouse pads out of three for your office
desktops.
Note: here order does not matter. Red-blue is the same as selecting blue red.
Consider another example. Three employees were selected in an office for the post of Manager and
Assistant Manager.
Let us consider the employees as E1, E2 & E3. Therefore, the number of how two men can be selected for
the post of Manager and Assistant Manager = 3x2= 6 ways.
So, they can be selected as:
E1-E2, E1-E3, E2-E3, E2-E1, E3-E1 & E3-E2.
Note: Here E1-E2 is not the same as E2-E1 because the posts are different.
In the first case, E1 is the manager and in the second case, E1 is the assistant manager. Hence, in this
question order of the selection matters, so we will apply the formula of permutation here.
If r things are to be selected out of a group of n things where the order of arrangement doesn’t matter
n!
then those r things can be selected in (n r )!r ! ways where 0≤r≤n because there will be r! ways in which
we will get the same group.
This can be represented as:
n!
Cr =
n where 0≤r≤n
(n r )!r !
Example 4.4(a): In how many ways 2 webcam and 2 keyboards can be selected from 4 different webcam
and 5 different keyboards?
Solution:
The two-web cam out of 4 can be selected in = 2C4 ways.
The two keyboards out of 5 keyboards can be selected in = 2C5 ways.
Therefore, the total number of ways of selecting 2 webcam and 2 keyboards are as follows:
= 2C4 2C5
4! 5!
=
(4 2)!2! (5 2)!2!
4! 5!
=
2!2! 3!2!
= 610
= 60 ways
7
JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
Example 4.4(b): In how many ways a team of 5 can be made from a group of 4 females and 5 males when
the team should have at least 2 males and 2 females?
Solution: The team should have at least 2 males and 2 females.
Therefore, the team can be made in two ways, i.e.,
Case 1: When a team has 2 males and 3 females.
Case 2: When a team has 3 females and 2 females.
Case 1:
2 Males out of 5 can be selected in 5C2 ways.
3 Females out of 4 can be selected in 4C3 ways.
Therefore, team of 5 consisting of 2 males and 3 females can be made in
= 5C2 4C3
5! 4!
=
(5 2)!2! (4 3)!3!
5! 4!
=
3!2! 1!3!
= 104
= 40 ways
Case 2:
3 Males out of 5 can be selected in 5C3 ways.
2 Females out of 4 can be selected in 4C2 ways.
Therefore, a team of 5 consisting of 2 males and 3 females can be made in
= 5C3 4C2
5! 4!
=
(5 3)!3! (4 2)!2!
5! 4!
=
2!3! 2!2!
= 106
= 60 ways
Therefore, the total number of ways in which a team of 5 can be made from a group of 4 females and 5
males when the team should have at least 2 males and 2 females = 40 + 60 = 100 ways.
Theorem 1:
nCn-r = nCr
8
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Proof
n! n!
n
C nr n C
[n (n r )]!(n r )! r !(n)r ! r
Proof
LHS = nCr + nCr-1
n! n!
(n r )!r ! [n (r 1)]!(r 1)!
n! n!
(n r )! r(r 1)! (n r 1)!(r 1)!
n! n!
(n r )! r(r 1)! (n r 1)(n r )!(r 1)!
n! 1 1
(n r )!(r 1)! r (n r 1)
n! (n r 1) r
(n r )!(r 1)! r(n r 1) r(n r 1)
n! (n 1)
(n r )!(r 1)! r(n r 1)
(n 1)!
r !(n r 1)!
= n+1Cr
Example 4.4(c):
a. If nC5 = nC2, then find n.
b. If nC11 = nC7, then find n.
Solution:
a. n
C5 = nC2
We know, if nCp =nCq, then n – p = q. (by theorem 1)
Therefore, n – 5 = 2
n=2+5
n=7
9
JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
b. C11 = nC7
n
10
UNIT 04: Fundamental Principles of Counting JGI JAIN DEEMED-TO-BE UNIVERSIT Y
Secondly, the sum of the power of x and y in the expansion is the same as the power of the binomial
expression.
Thirdly, as we move forward the power of x is decreasing while the power of y is increasing.
Here, we will discuss the general formula for the expansion of the binomial expression with power n
where n≥0.
(x + y)n = nC0xn + nC1x(n-1)y + nC2x(n-2)y2 + nC3x(n-3)y3 + nC4x(n-4)y4 + .............. +nC(n-1)xy(n-1) + nCnyn
n!
where nCk =
(n k)!k!
and
(x-y)n = nC0xn - nC1x(n-1)y + nC2x(n-2)y2 - nC3x(n-3)y3 + nC4x(n-4)y4 ............................ +(-1)(n-1)nC(n-1)xy(n-1) +(-1)n nCnyn
where nC = (-1)n n!
k (n k)!k!
Example 4.5(a): Write the expansion of each of the following binomial expressions:
a. (5x + 7y)6
2 8
b. ( x – y)
3
Solution:
a. (5x + 7y)6
= 6C0 (5x)6 + 6C1 (5x)(6-1) (7y) + 6C2 (5x)(6-2) (7y)2 + 6C3 (5x)(6-3) (7y)3 + 6C4 (5x)(6-4) (7y)4 + 6C1 (5x) (7y)(6-1) + 6C6 (7y)6
6! (15625x6) + 6! 6! 6! 6!
= (3125x5)(7y) + (625x4)(49y2) + (125x3)(343y3) +
6!0! (6 1)!1! (6 2)!2! (6 3)!3! (6 4)!4!
6! 6!
(25x2)(2401y4) + (5x)(16807y5) + (117649y6)
(6 5)!5! (6 6)!6!
= 15625x6 + 6. (3125x5)(7y) + (15) (625x4)(49y2) +(20) (125x3)(343y3) + (15)(25x2)(2401y4) + (6)(5x)(16807y5)+
(117649y6)
= 15625x6 + 131250 x5y + 459375x4y2 + 857500x3y3 + 900375 x2y4 + 504210 xy5+ 117649y6
2 8 8
2 8 8 2 7 8
2 6 2 8 2 5 3 8 2 4 4 8 2 3 5 8
3 7
3 8
256 8 128 7 64 6 2 32 5 3 16 4 4 8 3 5 4 2
= x – 8. x (y) + 28. x (y) - 56 x (y) + 140 x (y) - 56 x (y) + 28 . x2 y6 - 8
6561 2187 729 243 81 27 9 3
x (y)7 + (y)8
256 8 1024 7 1792 6 2 1792 5 3 2240 4 4 448 3 5 112 2 6 16
= x – x y+ x (y) - x (y) + x (y) - x (y) + x y - x (y)7 + (y)8
6561 2187 729 243 81 27 9 3
11
JGI JAINDEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
Case 2
If n is odd then there will be even number of terms in the binomial
th
expansion. thHence, there will be two
n n
terms in the middle. Therefore, the middle term will be term and 1 term.
2 2
Example 4.5(b): Find the middle term of the expansion (5p – 2q)8.
Solution:
As the power of the binomial expansion (5p – 2q)8 is even so there will be an odd number of terms in the
8
expansion. Hence, there will be one term in the middle, i.e., 1 = (4 + 1)th term = 5th term.
2
The general kth term of the binomial expression (x + y)n where n ≥ 0 is given by the formula
T(k+1) = nCk x(n-k) yk
So T5 = T(4 + 1) = (-1)4 8C4 (5p)(8-4) (2q)4
= 140. (625p4)(16q4)
= 1400000p4q4
Example 4.5(c):
Find the value of k if 5th and 6th term of the expansion (1 + k)10 are equal.
Solution: The general kth term of the binomial expression (x + y)n where n ≥ 0 is given by the formula
T(k+1) = nCk x(n-k) yk
So T5 = T(4+1) = 10C4 (1)(10 – 4) (k)4
10 9 8 7 4
K
1 2 3 4
12
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
Kth term from the end of the Binomial Expression (x + y)n where n ≥ 0
The kth term from the end of the binomial expression (x + y)n where n≥0 is (n – r + 2)th term.
As there are (n+1) terms in the binomial expansion of (x + y) n where n≥0, so (n + 1)th term will be first term
form the end.
(n + 1) = (n + 1) – (1 – 1)
2nd term from the end = nth term = (n + 1) – (2 - 1)
3rd term from the end = (n-1)th term = (n + 1) – (3 - 1)
So kth term from the end = (n-k)th term = (n + 1) – (k - 1)
= (n + 2 – k)th term
13
JGI JAINDEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
Solution:
The total number of positive integer solutions = (n + r – 1)Cr where n = 4 and r = 11
= (4 + 11 – 1)C11
= 14C11
= 364
Example 4.6(b):
How many positive integer solutions are there for x1, x2, x3, x4 such that x1+x2+x3+ x4= 11 where x1, x2,
x3 ≥ 0 and x4≥3?
Solution:
Here, x 4 ≥ 4. Let x` = x4 – 3
Therefore, the equation x1 + x2 + x3 + x4 = 11 can be re-written as:
x1 + x2 + x3 + x` + 3 = 11 where x1, x2, x3, x`≥ 0
x1 + x2 + x3 + x` = 8
The total number of positive integer solutions = (n+r-1)Cr where n = 4 and r = 8
= (4+8-1)C8
= 11C8
= 165
The number of ways in which different things can be arranged or selected can be easily determined
by using the fundamental principle of counting.
There are two fundamental counting principles:
Product or Multiplication Principle
Sum or addition Principle of counting
n! read as n factorial is the product of first n natural number.
The general formula for the expansion of the binomial expression with power n where n≥0.
(x + y)n = nC0xn + nC1x(n-1)y + nC2x(n-2)y2 + nC3x(n-3)y3 + nC4x(n-4)y4 + ............. +nC(n-1)xy(n-1) + nCnyn
n!
where nCk =
(n k)!k!
14
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
4.8 GLOSSARY
Permutation: Permutation is counting the number of ways in which the arrangement of a thing or
an object can be done in a definite sequence.
Combination: If r things are to be selected out of a group of n things where the order of arrangement
n!
doesn’t matter then those r things can be selected in
ways where 0 ≤ r ≤ n because there
n r !r!
will be r! ways in which we will get the same group.
15
JGI JAINDEEMED-TO-BE UNIVERSIT Y
Mathematical Foundation for Computer Application
https://www.examsbook.com/permutation-and-combination-questions-with%20answers
https://www.examsbook.com/permutation-and-combination-problems-with-solutions
https://testzone.smartkeeda.com/Blog/Permutation-and-combination-Questions
Discuss with your friend and write down five situations where you can apply the formula of
permutation and combination. Also, calculate the number of ways of the corresponding situation.
(Hint: you may apply permutation while making email password, the pin of mobile banking, ATM
Pin, Credit card pin, etc.)
16
UNIT 04: Fundamental Principles of Counting JGI JAIN
DEEMED-TO-BE UNIVERSIT Y
17