SlideShare a Scribd company logo
1 of 26
Download to read offline
COUNTING
CSE 2213 – Discrete Mathematics
11/25/2023
PERMUTATION AND COMBINATION
Permutation: How do we choose 6 students out of 10 and arrange them in one line?
Combination: How do we choose 6 students out of 10 and form a committee?
11/25/2023 2
PERMUTATION
Ordered arrangement of distinct objects
11/25/2023 3
Two permutations of five different colored balls
PERMUTATION
Ordered arrangement of distinct objects
𝑟-permutation: ordered arrangement of 𝑟 objects from a set
 Number of 𝑟-permutations of a set with 𝑛 elements = 𝑃(𝑛, 𝑟)
 How to count 𝑃(𝑛, 𝑟)?
11/25/2023 4
PERMUTATION
How do we choose 6 students out of 10 and arrange them in one line?
 The first student can be chosen in 10 ways
 The next student in 9 ways
 The next in 8 ways
 The next in 7
 The next in 6
 The last student can be chosen in 5 ways
 By product rule, 𝑃 10,6 = 10 × 9 × 8 × 7 × 6 × 5 = 151200
11/25/2023 5
PERMUTATION
In general, we can deduce the following:
𝑃 𝑛, 𝑟 = 𝑛 𝑛 − 1 𝑛 − 2 … 𝑛 − 𝑟 + 1
=
𝑛 𝑛 − 1 𝑛 − 2 … 𝑛 − 𝑟 + 1 × 𝑛 − 𝑟 𝑛 − 𝑟 − 1 … 2 × 1
𝑛 − 𝑟 𝑛 − 𝑟 − 1 … 2 × 1
=
𝑛!
𝑛 − 𝑟 !
11/25/2023 6
COMBINATION
Unordered selection of distinct objects
11/25/2023 7
We are only choosing the balls, not worrying about the order
COMBINATION
Unordered selection of distinct objects
𝑟-combination: unordered selection of 𝑟 objects from a set
 Number of 𝑟-combinations of a set with 𝑛 elements = 𝐶(𝑛, 𝑟)
 𝐶(𝑛, 𝑟) is also known as the binomial coefficient, 𝑛
𝑟
 How to count 𝐶(𝑛, 𝑟)?
11/25/2023 8
CALCULATE COMBINATION FROM PERMUTATION
How do we choose 6 students out of 10 and form a committee?
 Note that to arrange 6 students out of 10, we first need to choose 6, and then arrange them
 Choosing 6 students can be done in 𝐶(10,6) ways
 These 6 can be arranged in 6! Ways
 By product rule, arranging 6 students out of 10 can be done in 𝐶 10,6 × 6! ways
 Thus, 𝑃 10,6 = 𝐶 10,6 × 6! ⇒ 𝐶 10,6 =
𝑃 10,6
6!
=
151200
720
= 210
11/25/2023 9
COMBINATION
In general, we can deduce the following:
𝐶 𝑛, 𝑟 =
𝑃 𝑛, 𝑟
𝑟!
=
𝑛 𝑛 − 1 𝑛 − 2 … 𝑛 − 𝑟 + 1
𝑟!
Again,
𝐶 𝑛, 𝑟 =
𝑃 𝑛, 𝑟
𝑟!
=
𝑛!
𝑛 − 𝑟 !
×
1
𝑟!
=
𝑛!
𝑟! 𝑛 − 𝑟 !
11/25/2023 10
SYMMETRY OF 𝐶 𝑛, 𝑟
𝐶 𝑛, 𝑟 = 𝐶 𝑛, 𝑛 − 𝑟
 Put the corresponding values in the factorial formula of 𝐶 𝑛, 𝑟
From combinatoral point of view, it means picking 𝑟 objects out of 𝑛 is the same as
picking 𝑛 − 𝑟 objects out of 𝑛
 E.G. picking 6 objects out of 10 is the sane as picking 4 out of 10
Why?
11/25/2023 11
EXAMPLE
How many ways to award gold, silver and bronze medals
from 8 runners in a race?
Solution: 𝑃 8,3 = 8 × 7 × 6 = 336
Note: There must not be a tie!!!
11/25/2023 12
EXAMPLE
How many ways to award gold, silver and bronze medals
from 8 runners in a race, if one of them is Usain Bolt?
11/25/2023 13
11/25/2023 14
EXAMPLE
How many ways to award gold, silver and bronze medals
from 8 runners in a race, if one of them is Usain Bolt?
Solution: 𝑃 7,2 = 7 × 6 = 42
11/25/2023 15
EXAMPLE
How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 contain the string 𝐴𝐵𝐶?
Solution: Considering 𝐴𝐵𝐶 as one object,
there are 6 objects in total.
Thus, total # of permutations = 6! = 720
11/25/2023 16
EXERCISE
How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 contain the letters
𝐴, 𝐵 and 𝐶 together?
Solution: After the previous 6! permutations, we have to further arrange 𝐴, 𝐵
and 𝐶 among themselves. This can be done in 3! ways.
Thus, total # of permutations = 6! × 3! = 4320
11/25/2023 17
EXERCISE
How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 do NOT contain all of 𝐴, 𝐵
and 𝐶 together (at least one is separated)?
Solution: This case is the exact opposite of 𝐴, 𝐵 and 𝐶 together. Thus, total # of
permutations will be total non-conditional permutations minus 𝐴, 𝐵, 𝐶 together.
Total # of permutations = 8! − 6! × 3! = 36000
11/25/2023 18
EXERCISE
How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 contain all of 𝐴, 𝐵 and 𝐶
separated?
Solution: We first have to arrange the other 5 letters among themselves in 5!
ways. Then, we have to put 𝐴, 𝐵 and 𝐶 in the 6 spaces in between them.
Thus, total # of permutations = 5! × 𝑃 6,3 = 14400
11/25/2023 19
EXERCISE
How many ways can the letters of the word “SILHOUETTE” be rearranged, such that –
 No special condition is given
 All the vowels are together
 All the T’s are together
 All the E’s are together
EXERCISE
One hundred tickets, numbered 1,2,3, … , 100 are sold to 100 different people for a
drawing. Four different prizes are awarded, including a grand prize (a trip to Tahiti).
How many ways are there to award the prizes if –
 There are no restrictions?
 Ticket 47 wins the grand prize?
 Ticket 47 wins a prize?
 Ticket 47 does not win a prize?
 Tickets 19 and 47 both win prizes?
 Tickets 19, 47 and 73 all win prizes?
 Tickets 19, 47, 73 and 97 all win prizes?
11/25/2023 21
EXERCISE
One hundred tickets, numbered 1,2,3, … , 100 are sold to 100 different people for a
drawing. Four different prizes are awarded, including a grand prize (a trip to Tahiti).
How many ways are there to award the prizes if –
 None of the tickets 19, 47, 73, 97 wins a prize?
 Ticket 19, 47, 73 or 97 wins the grand prize?
 Tickets 19 and 47 win prizes, but 73 and 97 do not?
11/25/2023 22
EXAMPLE
How many poker hands of five cards can be dealt from a standard deck of 52
cards?
Solution: Order of the five cards is not important, so the problem reduces to
choosing 5 cards from 52.
Thus, 𝐶 52,5 =
52×51×50×49×48
5!
= 2598960
11/25/2023 23
EXAMPLE
How many bit strings of length 𝑛 contain exactly 𝑟 1s?
Solution: We have to choose 𝑟 positions for the 1s among the 𝑛 available
positions.
Thus, the # of bit strings is 𝐶(𝑛, 𝑟)
11/25/2023 24
EXAMPLE
There are 9 Math faculties and 11 CS faculties in a university.
The authority wants to form a committee to develop a Discrete Math course,
such that 3 members of the committee are Math faculties,
and 4 are CS faculties.
How many ways to form the committee?
11/25/2023 25
EXAMPLE
Seven women and nine men are on the faculty in the mathematics department
at a school. How many ways are there to select a committee of five members
of the department if at least one woman must be on the committee?
11/25/2023 26

More Related Content

Similar to 03-counting.pdf

3. permutation and combination
3. permutation and combination3. permutation and combination
3. permutation and combination
smaplabu
 
PERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptxPERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptx
NANDHINIS900805
 
Math-Unit 7 Review
Math-Unit 7 ReviewMath-Unit 7 Review
Math-Unit 7 Review
msboissebes
 
Advanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneursAdvanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneurs
Dr. Trilok Kumar Jain
 
Jeopardy PowerPoint
Jeopardy PowerPointJeopardy PowerPoint
Jeopardy PowerPoint
cmr5001
 
Probability Hw Solutions (5)
Probability Hw Solutions (5)Probability Hw Solutions (5)
Probability Hw Solutions (5)
guestefbaa4
 
Questions Of Quantitative Aptitude Tests For Competitive Examinations
Questions Of Quantitative Aptitude Tests For Competitive ExaminationsQuestions Of Quantitative Aptitude Tests For Competitive Examinations
Questions Of Quantitative Aptitude Tests For Competitive Examinations
Dr. Trilok Kumar Jain
 
Questions Of Quantitative Aptitude Tests For Competitive Examinations
Questions Of  Quantitative Aptitude Tests For Competitive ExaminationsQuestions Of  Quantitative Aptitude Tests For Competitive Examinations
Questions Of Quantitative Aptitude Tests For Competitive Examinations
Dr. Trilok Kumar Jain
 

Similar to 03-counting.pdf (20)

GCSE Linear Starters Higher
GCSE Linear Starters Higher GCSE Linear Starters Higher
GCSE Linear Starters Higher
 
Permutations
PermutationsPermutations
Permutations
 
3. permutation and combination
3. permutation and combination3. permutation and combination
3. permutation and combination
 
PERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptxPERMUTATION AND COMBINATION.pptx
PERMUTATION AND COMBINATION.pptx
 
Math-Unit 7 Review
Math-Unit 7 ReviewMath-Unit 7 Review
Math-Unit 7 Review
 
Advanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneursAdvanced business mathematics and statistics for entrepreneurs
Advanced business mathematics and statistics for entrepreneurs
 
EXAMPLES ON PROBABILITY PART 1.pptx
EXAMPLES ON PROBABILITY PART 1.pptxEXAMPLES ON PROBABILITY PART 1.pptx
EXAMPLES ON PROBABILITY PART 1.pptx
 
Differentiation and integration
Differentiation and integrationDifferentiation and integration
Differentiation and integration
 
Middle school math quiz
Middle school math quizMiddle school math quiz
Middle school math quiz
 
Combination
CombinationCombination
Combination
 
counting techniques
counting techniquescounting techniques
counting techniques
 
Jeopardy PowerPoint
Jeopardy PowerPointJeopardy PowerPoint
Jeopardy PowerPoint
 
Differentiation and integration
Differentiation and integrationDifferentiation and integration
Differentiation and integration
 
Differentiation and integration
Differentiation and integrationDifferentiation and integration
Differentiation and integration
 
GRE QUANTITATIVE: PERMUTATIONS, COMBINATIONS AND PROBABILITY
GRE QUANTITATIVE: PERMUTATIONS, COMBINATIONS AND PROBABILITYGRE QUANTITATIVE: PERMUTATIONS, COMBINATIONS AND PROBABILITY
GRE QUANTITATIVE: PERMUTATIONS, COMBINATIONS AND PROBABILITY
 
Permutation
PermutationPermutation
Permutation
 
Probability Hw Solutions (5)
Probability Hw Solutions (5)Probability Hw Solutions (5)
Probability Hw Solutions (5)
 
MTAP GRADE 5 SESSION 2.pptx
MTAP GRADE 5 SESSION 2.pptxMTAP GRADE 5 SESSION 2.pptx
MTAP GRADE 5 SESSION 2.pptx
 
Questions Of Quantitative Aptitude Tests For Competitive Examinations
Questions Of Quantitative Aptitude Tests For Competitive ExaminationsQuestions Of Quantitative Aptitude Tests For Competitive Examinations
Questions Of Quantitative Aptitude Tests For Competitive Examinations
 
Questions Of Quantitative Aptitude Tests For Competitive Examinations
Questions Of  Quantitative Aptitude Tests For Competitive ExaminationsQuestions Of  Quantitative Aptitude Tests For Competitive Examinations
Questions Of Quantitative Aptitude Tests For Competitive Examinations
 

Recently uploaded

SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
Peter Brusilovsky
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
CaitlinCummins3
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
AnaAcapella
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
EADTU
 

Recently uploaded (20)

The Liver & Gallbladder (Anatomy & Physiology).pptx
The Liver &  Gallbladder (Anatomy & Physiology).pptxThe Liver &  Gallbladder (Anatomy & Physiology).pptx
The Liver & Gallbladder (Anatomy & Physiology).pptx
 
SPLICE Working Group: Reusable Code Examples
SPLICE Working Group:Reusable Code ExamplesSPLICE Working Group:Reusable Code Examples
SPLICE Working Group: Reusable Code Examples
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
ĐỀ THAM KHẢO KÌ THI TUYỂN SINH VÀO LỚP 10 MÔN TIẾNG ANH FORM 50 CÂU TRẮC NGHI...
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Improved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio AppImproved Approval Flow in Odoo 17 Studio App
Improved Approval Flow in Odoo 17 Studio App
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
SURVEY I created for uni project research
SURVEY I created for uni project researchSURVEY I created for uni project research
SURVEY I created for uni project research
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdfRich Dad Poor Dad ( PDFDrive.com )--.pdf
Rich Dad Poor Dad ( PDFDrive.com )--.pdf
 
The Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDFThe Story of Village Palampur Class 9 Free Study Material PDF
The Story of Village Palampur Class 9 Free Study Material PDF
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 

03-counting.pdf

  • 1. COUNTING CSE 2213 – Discrete Mathematics 11/25/2023
  • 2. PERMUTATION AND COMBINATION Permutation: How do we choose 6 students out of 10 and arrange them in one line? Combination: How do we choose 6 students out of 10 and form a committee? 11/25/2023 2
  • 3. PERMUTATION Ordered arrangement of distinct objects 11/25/2023 3 Two permutations of five different colored balls
  • 4. PERMUTATION Ordered arrangement of distinct objects 𝑟-permutation: ordered arrangement of 𝑟 objects from a set  Number of 𝑟-permutations of a set with 𝑛 elements = 𝑃(𝑛, 𝑟)  How to count 𝑃(𝑛, 𝑟)? 11/25/2023 4
  • 5. PERMUTATION How do we choose 6 students out of 10 and arrange them in one line?  The first student can be chosen in 10 ways  The next student in 9 ways  The next in 8 ways  The next in 7  The next in 6  The last student can be chosen in 5 ways  By product rule, 𝑃 10,6 = 10 × 9 × 8 × 7 × 6 × 5 = 151200 11/25/2023 5
  • 6. PERMUTATION In general, we can deduce the following: 𝑃 𝑛, 𝑟 = 𝑛 𝑛 − 1 𝑛 − 2 … 𝑛 − 𝑟 + 1 = 𝑛 𝑛 − 1 𝑛 − 2 … 𝑛 − 𝑟 + 1 × 𝑛 − 𝑟 𝑛 − 𝑟 − 1 … 2 × 1 𝑛 − 𝑟 𝑛 − 𝑟 − 1 … 2 × 1 = 𝑛! 𝑛 − 𝑟 ! 11/25/2023 6
  • 7. COMBINATION Unordered selection of distinct objects 11/25/2023 7 We are only choosing the balls, not worrying about the order
  • 8. COMBINATION Unordered selection of distinct objects 𝑟-combination: unordered selection of 𝑟 objects from a set  Number of 𝑟-combinations of a set with 𝑛 elements = 𝐶(𝑛, 𝑟)  𝐶(𝑛, 𝑟) is also known as the binomial coefficient, 𝑛 𝑟  How to count 𝐶(𝑛, 𝑟)? 11/25/2023 8
  • 9. CALCULATE COMBINATION FROM PERMUTATION How do we choose 6 students out of 10 and form a committee?  Note that to arrange 6 students out of 10, we first need to choose 6, and then arrange them  Choosing 6 students can be done in 𝐶(10,6) ways  These 6 can be arranged in 6! Ways  By product rule, arranging 6 students out of 10 can be done in 𝐶 10,6 × 6! ways  Thus, 𝑃 10,6 = 𝐶 10,6 × 6! ⇒ 𝐶 10,6 = 𝑃 10,6 6! = 151200 720 = 210 11/25/2023 9
  • 10. COMBINATION In general, we can deduce the following: 𝐶 𝑛, 𝑟 = 𝑃 𝑛, 𝑟 𝑟! = 𝑛 𝑛 − 1 𝑛 − 2 … 𝑛 − 𝑟 + 1 𝑟! Again, 𝐶 𝑛, 𝑟 = 𝑃 𝑛, 𝑟 𝑟! = 𝑛! 𝑛 − 𝑟 ! × 1 𝑟! = 𝑛! 𝑟! 𝑛 − 𝑟 ! 11/25/2023 10
  • 11. SYMMETRY OF 𝐶 𝑛, 𝑟 𝐶 𝑛, 𝑟 = 𝐶 𝑛, 𝑛 − 𝑟  Put the corresponding values in the factorial formula of 𝐶 𝑛, 𝑟 From combinatoral point of view, it means picking 𝑟 objects out of 𝑛 is the same as picking 𝑛 − 𝑟 objects out of 𝑛  E.G. picking 6 objects out of 10 is the sane as picking 4 out of 10 Why? 11/25/2023 11
  • 12. EXAMPLE How many ways to award gold, silver and bronze medals from 8 runners in a race? Solution: 𝑃 8,3 = 8 × 7 × 6 = 336 Note: There must not be a tie!!! 11/25/2023 12
  • 13. EXAMPLE How many ways to award gold, silver and bronze medals from 8 runners in a race, if one of them is Usain Bolt? 11/25/2023 13
  • 15. EXAMPLE How many ways to award gold, silver and bronze medals from 8 runners in a race, if one of them is Usain Bolt? Solution: 𝑃 7,2 = 7 × 6 = 42 11/25/2023 15
  • 16. EXAMPLE How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 contain the string 𝐴𝐵𝐶? Solution: Considering 𝐴𝐵𝐶 as one object, there are 6 objects in total. Thus, total # of permutations = 6! = 720 11/25/2023 16
  • 17. EXERCISE How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 contain the letters 𝐴, 𝐵 and 𝐶 together? Solution: After the previous 6! permutations, we have to further arrange 𝐴, 𝐵 and 𝐶 among themselves. This can be done in 3! ways. Thus, total # of permutations = 6! × 3! = 4320 11/25/2023 17
  • 18. EXERCISE How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 do NOT contain all of 𝐴, 𝐵 and 𝐶 together (at least one is separated)? Solution: This case is the exact opposite of 𝐴, 𝐵 and 𝐶 together. Thus, total # of permutations will be total non-conditional permutations minus 𝐴, 𝐵, 𝐶 together. Total # of permutations = 8! − 6! × 3! = 36000 11/25/2023 18
  • 19. EXERCISE How many permutations of the letters 𝐴𝐵𝐶𝐷𝐸𝐹𝐺𝐻 contain all of 𝐴, 𝐵 and 𝐶 separated? Solution: We first have to arrange the other 5 letters among themselves in 5! ways. Then, we have to put 𝐴, 𝐵 and 𝐶 in the 6 spaces in between them. Thus, total # of permutations = 5! × 𝑃 6,3 = 14400 11/25/2023 19
  • 20. EXERCISE How many ways can the letters of the word “SILHOUETTE” be rearranged, such that –  No special condition is given  All the vowels are together  All the T’s are together  All the E’s are together
  • 21. EXERCISE One hundred tickets, numbered 1,2,3, … , 100 are sold to 100 different people for a drawing. Four different prizes are awarded, including a grand prize (a trip to Tahiti). How many ways are there to award the prizes if –  There are no restrictions?  Ticket 47 wins the grand prize?  Ticket 47 wins a prize?  Ticket 47 does not win a prize?  Tickets 19 and 47 both win prizes?  Tickets 19, 47 and 73 all win prizes?  Tickets 19, 47, 73 and 97 all win prizes? 11/25/2023 21
  • 22. EXERCISE One hundred tickets, numbered 1,2,3, … , 100 are sold to 100 different people for a drawing. Four different prizes are awarded, including a grand prize (a trip to Tahiti). How many ways are there to award the prizes if –  None of the tickets 19, 47, 73, 97 wins a prize?  Ticket 19, 47, 73 or 97 wins the grand prize?  Tickets 19 and 47 win prizes, but 73 and 97 do not? 11/25/2023 22
  • 23. EXAMPLE How many poker hands of five cards can be dealt from a standard deck of 52 cards? Solution: Order of the five cards is not important, so the problem reduces to choosing 5 cards from 52. Thus, 𝐶 52,5 = 52×51×50×49×48 5! = 2598960 11/25/2023 23
  • 24. EXAMPLE How many bit strings of length 𝑛 contain exactly 𝑟 1s? Solution: We have to choose 𝑟 positions for the 1s among the 𝑛 available positions. Thus, the # of bit strings is 𝐶(𝑛, 𝑟) 11/25/2023 24
  • 25. EXAMPLE There are 9 Math faculties and 11 CS faculties in a university. The authority wants to form a committee to develop a Discrete Math course, such that 3 members of the committee are Math faculties, and 4 are CS faculties. How many ways to form the committee? 11/25/2023 25
  • 26. EXAMPLE Seven women and nine men are on the faculty in the mathematics department at a school. How many ways are there to select a committee of five members of the department if at least one woman must be on the committee? 11/25/2023 26