Permutation and Combination.
Permutation and Combination.
• Counting techniques
Selecting different objects
Event 𝐴 Event 𝐵
Different ways Different ways
𝑚 𝑛
Solution:
𝐴 𝐵 𝐶
3 ways 4 ways
• The Multiplication principle can be generalised for any finite number of events.
Addition Principle (Rule of OR):
Event 𝐴 Event 𝐵
Different ways Different ways
𝑚 𝑛
𝐵
In how many ways can a person
𝐶
travel from 𝐴 to 𝐶 via 𝐵 (or) via 𝐷.
𝐴
Solution:
ENTRY
EXIT
=5×5
= 25
There are 5 doors to enter and exit the auditorium. In how many ways
can a student enter and exit the auditorium if:
𝑖 The same door can be used to enter and exit the auditorium
𝑖𝑖 The same door cannot be used to enter and exit the auditorium
Solution:
ENTRY
EXIT
=5×4
= 20
Key Takeaways
PERMUTATION
𝑛
𝑃𝑟 = 𝑛 × 𝑛 − 1 × 𝑛 − 2 × ⋯ × 𝑛 − 𝑟 + 1
Key Takeaways
𝑛
𝑃𝑟 = 𝑛 × 𝑛 − 1 × 𝑛 − 2 × ⋯ × 𝑛 − 𝑟 + 1
Proof :
𝑛 𝑛−1 𝑛−2 𝑛 − (𝑟 − 1)
∴ 𝑛𝑃𝑟 = 𝑛 × 𝑛 − 1 × 𝑛 − 2 × ⋯ × 𝑛 − 𝑟 + 1
• 𝑛 𝑛!
𝑃𝑟 =
𝑛−𝑟 !
Proof :
𝑛
𝑃𝑟 = 𝑛 × 𝑛 − 1 × 𝑛 − 2 × ⋯ × 𝑛 − 𝑟 + 1
𝑛−𝑟 !
⇒ 𝑛𝑃𝑟 = 𝑛 × 𝑛 − 1 × 𝑛 − 2 × ⋯ × 𝑛 − 𝑟 + 1
𝑛−𝑟 !
𝑛!
⇒ 𝑛𝑃𝑟 =
𝑛−𝑟 !
Note : • 𝑛
𝑃0 = 1 (Arranging nothing)
• 𝑛
𝑃𝑛 = 𝑛! (Arranging all the things)
Given word: E Q U A T I O N
8 different letters
Number of vowels = 5
Number of consonants = 3
E
_ _ _ _ _ _ _ _
5
7!
How many words, with or without meaning, can be made from the
letters of the word EQUATION, using each letter exactly once if :
i. 4 letters are used at a time.
ii. All letters are used but first letter is a vowel.
iii. All letters are used but last letter is a consonant.
Q
_ _ _ _ _ _ _ _
3
7!
A C T : All the three letters are different. E G G : Out of three, two are identical.
EGG EGG
ACT ATC
• Different arrangements GEG GEG
• Different arrangements CAT CTA
GGE GGE
TAC TCA
• kind, 𝑃2 objects are of second kind, ⋯,𝑃𝑘 objects are of 𝑘 𝑡ℎ kind and rest
𝑛!
(if any) are all distinct =
𝑃1 !⋅𝑃2 !⋯𝑃𝑘 !
How many words can be formed using the letters of the word
BANANA ?
6 letters
6!
∴ Number of arrangements = 2! ×3! = 60
A 20
B 60
C 30
D 40
Key Takeaways
Combination:
{A, B, C}
{A, B, D}
4 Different selections
• Selection of 3 objects at a time
{A, C, D}
{B, C, D}
Key Takeaways
Combination:
{A, B, C}
{A, B, D}
3 elements subset of {A, B, C, D}
{A, C, D}
{B, C, D}
Combination:
Combination:
In general,
•
𝑛𝑃 𝑛!
𝑛 𝑟
𝐶𝑟 = = (𝑛 ∈ 𝑁, 𝑟 ∈ 𝑊, 0 ≤ 𝑟 ≤ 𝑛)
𝑟! 𝑟!(𝑛−𝑟)!
Note
𝑛!
𝑖) 𝑛𝐶0 = = 1 (Selecting nothing)
0!𝑛!
𝑛!
𝑖𝑖) 𝑛𝐶𝑛 = = 1 (Selecting all the things)
𝑛!0!
Find the number of ways of selecting 3 boys and 4 girls from
5 boys and 6 girls.
5 boys 5
𝐶3
6
6 girls 𝐶4
Vowels : I O U E Consonants : N V L T
= 4𝐶3 × 4𝐶2
For each selection, we have
5! ways
= 2880
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
SPADE
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
CLUB
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
DIAMOND
A 2 3 4 5 6 7 8 9 10 K Q J
A 2 3 4 5 6 7 8 9 10 K Q J
HEART
A 2 3 4 5 6 7 8 9 10 K Q J
K Q J
K Q J
K Q J
K Q J
K Q J
K Q J
K Q J
String Method
6 women
4 men
5 boys 3 girls
4! ways
5! ways
∴ Total number of arrangements = 4! × 5! = 2880
1 + 5 = 6 units
6! ways
3! ways
∴ Total number of arrangements = 3! × 6!
∴ Total number of arrangements in which all the girls are not together
= 5 + 3 ! − 6! × 3!
= 8! − 6! × 3! = 6! 8 × 7 − 6 = 36000
The number of ways in which 4 boys and 4 girls can be arranged in a
row such that:
i) No two girls are together.
ii) Boys and girls sit alternatively.
4 boys
4 girls
Case 1:
Case 2:
𝑛−𝑝 20
∴ 𝐶 𝑟−𝑝 = 𝐶9
𝑛−𝑝 18
∴ 𝐶𝑟 = 𝐶11
The number of ways in which a team of 11 players can be selected
from 22 players such that
i) 2 particular players are always included is ______
ii) 4 particular players are always excluded is _______
iii) 2 particular players are included and 4 particular players are
excluded is _______
iii) 2 particular players are always included and 4 particular players are
excluded is ______
𝑛−𝑝−𝑞 16
∴ 𝐶 𝑟−𝑝 = 𝐶9
Number of 5 digited numbers using the digits 0, 1, 2, 3, 4 with
repetition, which are divisible by 4, is:
Given digits: 0, 1, 2, 3, 4
8 ways
4 × 5 × 5 × 8
A 800
B 1000
C 400
D 600
If the letters of the word MOTHER are permutated and all the words
so formed (with or without meaning) be listed as in a dictionary, then
the position of the word ‘MOTHER’ is _______. [ JEE MAIN 2020 ]
From the given letters, the word MOTHER comes after the words :
1) Starting with E
𝑖) Starting with MOTE
2) Starting with H 𝐴) Starting with ME
𝑎) Starting with MOE Next Word : MOTHER
3) Starting with M 𝐵) Starting with MH
𝑏) Starting with MOH
𝐶) Starting with MO
𝑐) Starting with MOR
H 5!
Starting with H = 120
5!
M E
Starting with ME = 24
M H 4!
Starting with MH
= 24
4!
Starting with MOE M O E
=6
3!
Starting with MOH M O H
=6
3!
Starting with MOR M O R
=6
3!
Starting with MOTE M O T E =2
2!
Starting with E E = 120
H
Starting with H = 120
Starting with ME M E = 24
M H
Starting with MH = 24
M O E
Starting with MOE =6
Next word M O T H E R
Words Number of words Sum
Note:
If positional places are marked, then circular
arrangements can be treated as linear
arrangements.
The number of ways in which 5 boys and 4 girls can be seated at a
round table, if
i) there is no restriction.
ii) all the girls are together.
iii) all the girls are not together.
iv) no two girls are not together.
i) There is no restriction.
8−1 ! 1
Number of ways = = × 7!
2 2
= 2520
Key Takeaways
Circular Permutations :
Note :
8−1 !
Necklaces be made from 10 different beads = × 3!
2
7! × 3!
=
2
How many different necklaces be made from 10 different beads such
that three particular beads always come together.
A 9!
2
B 7!
2
C 9!×3!
2
D 7!×3!
2
Key Takeaways
Formation of Groups:
Formation of Groups:
4!
Number of ways = 4𝐶1 × 3𝐶3 = =4
1!3!
Key Takeaways
Results:
General Results:
4𝐶 × 2𝐶 4!
Number of ways = 2 2
= =3
2! 2!(2!∙2!)
Results:
• Number of ways of dividing 2𝑛 things into two equal groups of size 𝑛 each is
2𝑛 !
2!(𝑛!∙𝑛!)
• Number of ways of dividing 3𝑛 things into three equal groups of size 𝑛 each is
3𝑛 !
3! 𝑛!∙𝑛!∙𝑛!
General Results:
𝑖) 𝑖𝑖𝑖)
10 10
2 5 2 4
3 4
10! 10!
Number of ways = Number of ways =
2!3!5! 2!2! 4! 2
𝑖𝑖) 𝑖𝑣)
10 10
3 1
5 5
3 3
10! 10!
Number of ways = Number of ways =
2! 5! 2 3! 3! 3 1!
Key Takeaways
Case 1:
• The𝑛 total number of ways of selecting at least one thing from 𝑛 distinct things
=2 −1
10
= 𝐶1 + 10𝐶2 + ⋯ + 10𝐶10
= 210 − 10𝐶0
Number of ways = 210 − 1 = 1023
All Possible Selections:
Case 2:
• The total number of selections out of 𝑛 similar things taken any number
of things (including nothing) is 𝑛 + 1.
• The total number of ways of selecting at-least one thing from 𝑛 similar things = 𝑛.
If there are three similar letters, say A, A and A, then
Total number of selections = {no A, one A, two A’s, three A’s} = 4 ways
Case 3:
• If there are 𝑝 similar things of one type, 𝑞 similar things of second type
and 𝑟 similar things of third type, then the number of ways of selecting
atleast one thing is 𝑝 + 1 𝑞 + 1 𝑟 + 1 − 1
Example:
Case 4:
• If there are 𝑝, 𝑞, 𝑟 similar things of different kinds and 𝑛 distinct things, then the
number of ways of selecting atleast one thing is 𝑝 + 1 𝑞 + 1 𝑟 + 1 2𝑛 − 1
Number of 4 letter words with or without meaning that can be
formed using letters of the word INEFFECTIVE is:
• Divisors of 12 are: 1 2 3 4 6 12
12 = 22 ∙ 31 (prime factorization)
1 = 20 ∙ 30
2 = 21 ∙ 30 The number of divisors
0
3=2 ∙3 1 = (Number of ways of selecting two 2’s)×
(Number of ways of selecting one 3)
4 = 22 ∙ 30
= 2+1 1+1 = 6
6 = 21 ∙ 31
12 = 22 ∙ 31
= (20 + 21 + 22 )(30 + 31 )
= (7)(4)
= 28
So, if 12 = 2𝑥 ∙ 3𝑦 , then
Sum of the divisors = (20 + 21 + 22 + ⋯ 2𝑥 )(30 + 31 + 32 + ⋯ 3𝑦 )
G.P. G.P.
MODEL BASED ON DIVISORS:
𝑥 𝑥 𝑥
Let 𝑁 be a positive integer and 𝑁 = 𝑝1 1 ⋅ 𝑝2 2 ⋅ 𝑝3 3 ⋯
Where 𝑝1 , 𝑝2 , 𝑝3 ⋯ are distinct primes and 𝑥1 , 𝑥2 , 𝑥3 ⋯ ∈ 𝑁
• → Number of divisors of 𝑁 = 𝑥1 + 1 𝑥2 + 1 𝑥3 + 1
𝑥 +1 𝑥 +1
𝑝1 1 −1 𝑝2 2 −1
• → Sum of all the divisors =
𝑝1 −1 𝑝2 −1
⋯
MODEL BASED ON DIVISORS:
𝑥 𝑥 𝑥
Let 𝑁 be a positive integer and 𝑁 = 𝑝1 1 ⋅ 𝑝2 2 ⋅ 𝑝3 3 ⋯
1
•2 𝑥1 + 1 𝑥2 + 1 ⋯ , if 𝑁 is not a perfect square
1
•2 𝑥1 + 1 𝑥2 + 1 ⋯ + 1 , if 𝑁 is a perfect square
Consider the number 1350. Find
i. Number of divisors
ii. Number of proper divisors
iii. Sum of divisors
iv. Sum of proper divisors
Given: 1350 = 21 ∙ 33 ∙ 52
i. Number of divisors = 1 + 1 3 + 1 2 + 1 = 24
Given: 8100 = 22 ∙ 34 ⋅ 52
Possible ways to express 8100 as product of two coprime factors are,
→ 1 × 22 ∙ 34 ∙ 52
→ 22 × 34 ∙ 52
→ 34 × (22 ∙ 52 )
→ 52 × 22 ∙ 34
∴ Number of ways = 4
MODEL BASED ON DIVISORS:
If ′𝑛′ is the number of different prime factors of 𝑁, then the number of ways in
•
which 𝑁 can be resolved as product of two coprime factors is equal to 2𝑛−1 .
Key Takeaways
Exponent of Prime in 𝑛!
Example:
3! = 21 ⋅ 31
4! = 23 ⋅ 31
5! = 23 ⋅ 31 ⋅ 51
100! =?
Key Takeaways
Exponent of Prime in 𝑛!
𝑛! = 𝑝1 𝑒1 ⋅ 𝑝2 𝑒2 ⋅ 𝑝3 𝑒3 ⋯
Exponent of 𝑝1 in 𝑛! Is given as
𝑛 𝑛 𝑛
𝑒1 = + 2 + +⋯
𝑝1 𝑝1 𝑝1 3
Exponent of 𝑝2 in 𝑛! Is given as
𝑛 𝑛 𝑛
𝑒2 = + 2 + +⋯ . denotes greatest integer
𝑝2 𝑝2 𝑝2 3
Find the number of zeros in 200!
= 100 + 50 + 25 + 12 + 6 + 3 + 1 + 0 = 197
= 40 + 8 + 1 + 0 = 49
Alternative solution:
Among the prime factors 2 and 5 the highest power of 5 in 200! will be less than
the highest power of 2 in 200!
So, the highest power of 10 in 200! will be equal to highest power of 5 in 200!
200
= 40
5
40
=8
5
8
=1
5
1
=0
5
i. 𝑛
𝐶2 straight lines
ii. 𝑛
𝐶3 triangles
HAND SHAKE
PROBLEM
𝑃1 𝑃2
𝑃3 𝑃4
GEOMETRY MODELS
i. 𝑛
𝐶2 − 𝑚𝐶2 + 1 straight lines
ii. 𝑛
𝐶3 − 𝑚𝐶3 triangles
GEOMETRY MODELS
• 𝑛
𝐶2 − 𝑛 =
𝑛 𝑛−3
2
GEOMETRY MODELS
• 𝑚
𝐶2 × 𝑛𝐶2
GEOMETRY MODELS
i) 20 line in a plane
= 2 × 10𝐶2 = 2 × 45 = 90
The maximum number of points of intersection of :
i) 20 lines in a plane is_______.
ii) 10 circles in a plane is_______.
iii) 20 lines and 10 circles in a plane is________.
20 lines 10 circles
= 680
Key Takeaways
Derangements
If 𝑛 things are arranged in a row, then the number of rearrangements such that none of
them occupy their original positions are called Dearangements.
The number of Derangements of 𝑛 distinct things can be denoted by 𝐷𝑛 .
1 1 1 𝑛 1
𝐷𝑛 = 𝑛! 1 − + − + ⋯ + −1 where 𝑛 ≥ 2
1! 2! 3! 𝑛!
Find the number of derangements of the letters of the word BAG.
AGB
BAG
All permutations = 3! = 6 ways = Number of derangements = 𝐷3 = 2
BGA
GAB
GBA
Using formula:
1 1 1 𝑛 1
𝐷𝑛 = 𝑛! 1 −
1!
+
2!
−
3!
+ ⋯ + −1
𝑛!
where 𝑛 ≥ 2
1 1 1
𝐷3 = 3! 1 − + − =2
1! 2! 3!
Six letters with numbers 1,2,3,4,5,6 written on them are put in six
envelopes with numbers 1,2,3,4,5,6 written on them too.
𝑖) No letter is in its correct envelope is______
𝑖𝑖) At least one letter is in its correct envelope is______
𝑖𝑖𝑖) At most two letters are not in their correct envelopes is______
𝑖𝑣) Exactly three letters are not in their correct envelopes is______
Given:
1 2 3 4 5 6
𝑖) No letter is in its correct envelope is______
1 2 3 4 5 6
= 1 + 0 + 6𝐶2 × 𝐷2
= 16
𝑖𝑣) Exactly three letters are not in their correct envelopes is______
= 6𝐶3 × 𝐷3
= 40
Distinct Thing → Distinct Boxes:
Case 1
Case 2
= 35 − 3𝐶1 3 − 1 5
+ 3𝐶2 3 − 2 5
= 150
Identical Things → Distinct Boxes:
Case 1
Proof:
1 2 3 4 ⋯⋯ 𝑛−1 𝑛
Identical Things → Distinct Boxes:
Proof (Cont.⋯):
To form 𝑟 −groups we need 𝑟 − 1 identical partitions
1 2 3 4 ⋯⋯ 𝑛−1 𝑛
Case 2
Atleast one thing (i.e. empty boxes are not allowed) = 𝑛−1
𝐶𝑟−1
Proof: