SlideShare une entreprise Scribd logo
1  sur  20
Permutations and Combinations
Rosen 4.3
Permutations
• A permutation of a set of distinct objects is
an ordered arrangement these objects.
• An ordered arrangement of r elements of a
set is called an r-permutation.
• The number of r-permutations of a set with
n elements is denoted by P(n,r).
A = {1,2,3,4} 2-permutations of A include
1,2; 2,1; 1,3; 2,3; etc…
Counting Permutations
• Using the product rule we can find P(n,r)
= n*(n-1)*(n-2)* …*(n-r+1)
= n!/(n-r)!
How many 2-permutations are there for the
set {1,2,3,4}? P(4,2)
12
!
2
!
4
1
*
2
1
*
2
*
3
*
4
3
*
4 


Combinations
• An r-combination of elements of a set is an
unordered selection of r element from the set.
(i.e., an r-combination is simply a subset of the set
with r elements).
Let A={1,2,3,4} 3-combinations of A are
{1,2,3}, {1,2,4}, {1,3,4}, {2,3,4}(same as {3,2,4})
• The number of r-combinations of a set with n
distinct elements is denoted by C(n,r).
Example
Let A = {1,2,3}
2-permutations of A are: 1,2 2,1 1,3 3,1 2,3 3,2
6 total. Order is important
2-combinations of A are: {1,2}, {1,3}, {2,3}
3 total. Order is not important
If we counted the number of permutations of each 2-
combination we could figure out P(3,2)!
How to compute C(n,r)
• To find P(n,r), we could first find C(n,r),
then order each subset of r elements to
count the number of different orderings.
P(n,r) = C(n,r)P(r,r).
• So C(n,r) = P(n,r) / P(r,r)
)!
(
!
!
!
)!
(
)!
(
!
)!
(
!
)!
(
!
r
n
r
n
r
r
n
r
r
n
r
r
r
r
n
n








A club has 25 members.
• How many ways are there to choose four members
of the club to serve on an executive committee?
– Order not important
– C(25,4) = 25!/21!4! = 25*24*23*22/4*3*2*1
=25*23*22 = 12,650
• How many ways are there to choose a president,
vice president, secretary, and treasurer of the club?
– Order is important
– P(25,4) = 25!/21! = 303,600
The English alphabet contains 21 consonants and
5 vowels. How many strings of six lower case
letters of the English alphabet contain:
• exactly one vowel?
• exactly 2 vowels
• at least 1 vowel
• at least 2 vowels
The English alphabet contains 21 consonants and
5 vowels. How many strings of six lower case
letters of the English alphabet contain:
• exactly one vowel?
Note that strings can have repeated letters!
We need to choose the position for the vowel
C(6,1) = 6!/1!5! This can be done 6 ways.
Choose which vowel to use.
This can be done in 5 ways.
Each of the other 5 positions can contain any of the 21
consonants (not distinct).
There are 215 ways to fill the rest of the string.
6*5*215
The English alphabet contains 21 consonants and
5 vowels. How many strings of six lower case
letters of the English alphabet contain:
• exactly 2 vowels?
Choose position for the vowels.
C(6,2) = 6!/2!4! = 15
Choose the two vowels.
5 choices for each of 2 positions = 52
Each of the other 4 positions can contain any of 21
consonants.
214
15*52*214
The English alphabet contains 21 consonants and
5 vowels. How many strings of six lower case
letters of the English alphabet contain:
• at least 1 vowel
Count the number of strings with no vowels
and subtract this from the total number of
strings.
266 - 216
The English alphabet contains 21 consonants and
5 vowels. How many strings of six lower case
letters of the English alphabet contain:
• at least 2 vowels
Compute total number of strings and subtract
number of strings with no vowels and the
number of strings with exactly 1 vowel.
266 - 216 - 6*5*215
Corollary 1: Let n and r be nonnegative
integers with r  n. Then C(n,r) = C(n,n-r)
Proof:
C(n,r) = n!/r!(n-r)!
C(n,n-r) = n!/(n-r)!(n-(n-r))! = n!/r!(n-r)!
Binomial Coefficient
Another notation for C(n,r) is . This
number is also called a binomial coefficient.
These numbers occur as coefficients in the
expansions of powers of binomial
expressions such as (a+b)n.
Pascal’s Identity
Let n and k be positive integers with n  k.
Then C(n+1,k) = C(n, k-1) + C(n,k).
Proof:
)
,
1
(
)!
1
(
!
)!
1
(
)!
1
(
!
)
1
(
!
)!
1
(
!
)
1
(
!
)!
)(
1
(
!
!
)
1
(
)!
)(
1
(
)!
1
(
!
)!
(
!
!
)!
1
(
)!
1
(
!
)
,
(
)
1
,
(
k
n
C
k
n
k
n
k
n
k
n
n
k
n
k
k
n
k
n
k
n
k
n
k
n
k
n
k
n
k
n
k
k
kn
k
n
k
n
k
n
k
n
k
n
C
k
n
C



































Let n be a positive integer. Then
Proof: We know from set theory that the
number of subsets in a set of size n is 2n.
We also know that C(n,k) is the number of
subsets of a set of size n that are of size k.
counts the number of subsets
of every size from 0 (empty
set) to n. Therefore the sum must add up to
2n.
Vandermonde’s Identity
Proof: Suppose there are n items in one set and m items in
a second set. Then the total number of ways to pick r
elements from the union of these sets is C(m+n,r).
Another way to pick r elements from the union is to pick k
elements from the first set and then r-k elements from the
second set, where 0  k  r. There are C(n,k) ways to pick
the k elements from the first set and C(m,r-k) ways to pick
the rest of the elements from the second set.
Proof: Suppose there are n items in one set and m items in a
second set. Then the total number of ways to pick r
elements from the union of these sets is C(m+n,r).
Another way to pick r elements from the union is to pick k
elements from the first set and then r-k elements from the
second set, where 0  k  r. For any k,there are C(n,k)
ways to pick the k elements from the first set and C(m,r-k)
ways to pick the rest of the elements from the second set.
By the product rule there are C(m,r-k)C(n,k) ways to pick r
elements for a particular k. For all possible values of k
Pascal’s Triangle
1
1 1
1
1 2
3 3
1
1
1 4 6 4 1
n’th row, Cnk =k = 0, 1, …, n
Binomial Theorem
Let x and y be variables and let n be a positive
integer. Then

Contenu connexe

Similaire à X13Permutations.ppt

Rank, Nullity, and Fundamental Matrix Spaces.pptx
Rank, Nullity, and Fundamental Matrix Spaces.pptxRank, Nullity, and Fundamental Matrix Spaces.pptx
Rank, Nullity, and Fundamental Matrix Spaces.pptxfroilandoblon1
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxssuser01e301
 
Jurnal informatika
Jurnal informatika Jurnal informatika
Jurnal informatika MamaMa28
 
Lesson 5 Arithmetic Sequences.pdf
Lesson 5 Arithmetic Sequences.pdfLesson 5 Arithmetic Sequences.pdf
Lesson 5 Arithmetic Sequences.pdfIzah Catli
 
Toc chapter 1 srg
Toc chapter 1 srgToc chapter 1 srg
Toc chapter 1 srgShayak Giri
 
CHEM-101E - 2nd Week_Questions.pptx
CHEM-101E - 2nd Week_Questions.pptxCHEM-101E - 2nd Week_Questions.pptx
CHEM-101E - 2nd Week_Questions.pptxfuat8
 
Simplifying Radical Expressions Mathemat
Simplifying Radical Expressions MathematSimplifying Radical Expressions Mathemat
Simplifying Radical Expressions MathematJosaiahMaeGonzaga
 
Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...
Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...
Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...Lossian Barbosa Bacelar Miranda
 
10th class maths model question paper
10th class maths model question paper10th class maths model question paper
10th class maths model question papervivieksunder
 
ch10_EffiBinSearchTrees.ppt
ch10_EffiBinSearchTrees.pptch10_EffiBinSearchTrees.ppt
ch10_EffiBinSearchTrees.pptplagcheck
 
permutations-and-combinations.pptx
permutations-and-combinations.pptxpermutations-and-combinations.pptx
permutations-and-combinations.pptxSanketPatel295815
 
11.1 Sequences and Series
11.1 Sequences and Series11.1 Sequences and Series
11.1 Sequences and Seriessmiller5
 

Similaire à X13Permutations.ppt (20)

Programming for Data Analysis: Week 4
Programming for Data Analysis: Week 4Programming for Data Analysis: Week 4
Programming for Data Analysis: Week 4
 
Rank, Nullity, and Fundamental Matrix Spaces.pptx
Rank, Nullity, and Fundamental Matrix Spaces.pptxRank, Nullity, and Fundamental Matrix Spaces.pptx
Rank, Nullity, and Fundamental Matrix Spaces.pptx
 
Number Sequences
Number SequencesNumber Sequences
Number Sequences
 
Number Sequences
Number SequencesNumber Sequences
Number Sequences
 
Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combination
 
Flat unit 2
Flat unit 2Flat unit 2
Flat unit 2
 
MFCS UNIT-III.pptx
MFCS UNIT-III.pptxMFCS UNIT-III.pptx
MFCS UNIT-III.pptx
 
Unit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptxUnit-1 Basic Concept of Algorithm.pptx
Unit-1 Basic Concept of Algorithm.pptx
 
Jurnal informatika
Jurnal informatika Jurnal informatika
Jurnal informatika
 
Lesson 5 Arithmetic Sequences.pdf
Lesson 5 Arithmetic Sequences.pdfLesson 5 Arithmetic Sequences.pdf
Lesson 5 Arithmetic Sequences.pdf
 
Toc chapter 1 srg
Toc chapter 1 srgToc chapter 1 srg
Toc chapter 1 srg
 
CHEM-101E - 2nd Week_Questions.pptx
CHEM-101E - 2nd Week_Questions.pptxCHEM-101E - 2nd Week_Questions.pptx
CHEM-101E - 2nd Week_Questions.pptx
 
Set concepts
Set conceptsSet concepts
Set concepts
 
Simplifying Radical Expressions Mathemat
Simplifying Radical Expressions MathematSimplifying Radical Expressions Mathemat
Simplifying Radical Expressions Mathemat
 
Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...
Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...
Arithmetic Progressions and the Construction of Doubly Even Magic Squares and...
 
10th class maths model question paper
10th class maths model question paper10th class maths model question paper
10th class maths model question paper
 
ch10_EffiBinSearchTrees.ppt
ch10_EffiBinSearchTrees.pptch10_EffiBinSearchTrees.ppt
ch10_EffiBinSearchTrees.ppt
 
permutations-and-combinations.pptx
permutations-and-combinations.pptxpermutations-and-combinations.pptx
permutations-and-combinations.pptx
 
11.1 Sequences and Series
11.1 Sequences and Series11.1 Sequences and Series
11.1 Sequences and Series
 
UNIT_-_II.docx
UNIT_-_II.docxUNIT_-_II.docx
UNIT_-_II.docx
 

Dernier

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 

Dernier (20)

Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 

X13Permutations.ppt

  • 2. Permutations • A permutation of a set of distinct objects is an ordered arrangement these objects. • An ordered arrangement of r elements of a set is called an r-permutation. • The number of r-permutations of a set with n elements is denoted by P(n,r). A = {1,2,3,4} 2-permutations of A include 1,2; 2,1; 1,3; 2,3; etc…
  • 3. Counting Permutations • Using the product rule we can find P(n,r) = n*(n-1)*(n-2)* …*(n-r+1) = n!/(n-r)! How many 2-permutations are there for the set {1,2,3,4}? P(4,2) 12 ! 2 ! 4 1 * 2 1 * 2 * 3 * 4 3 * 4   
  • 4. Combinations • An r-combination of elements of a set is an unordered selection of r element from the set. (i.e., an r-combination is simply a subset of the set with r elements). Let A={1,2,3,4} 3-combinations of A are {1,2,3}, {1,2,4}, {1,3,4}, {2,3,4}(same as {3,2,4}) • The number of r-combinations of a set with n distinct elements is denoted by C(n,r).
  • 5. Example Let A = {1,2,3} 2-permutations of A are: 1,2 2,1 1,3 3,1 2,3 3,2 6 total. Order is important 2-combinations of A are: {1,2}, {1,3}, {2,3} 3 total. Order is not important If we counted the number of permutations of each 2- combination we could figure out P(3,2)!
  • 6. How to compute C(n,r) • To find P(n,r), we could first find C(n,r), then order each subset of r elements to count the number of different orderings. P(n,r) = C(n,r)P(r,r). • So C(n,r) = P(n,r) / P(r,r) )! ( ! ! ! )! ( )! ( ! )! ( ! )! ( ! r n r n r r n r r n r r r r n n        
  • 7. A club has 25 members. • How many ways are there to choose four members of the club to serve on an executive committee? – Order not important – C(25,4) = 25!/21!4! = 25*24*23*22/4*3*2*1 =25*23*22 = 12,650 • How many ways are there to choose a president, vice president, secretary, and treasurer of the club? – Order is important – P(25,4) = 25!/21! = 303,600
  • 8. The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: • exactly one vowel? • exactly 2 vowels • at least 1 vowel • at least 2 vowels
  • 9. The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: • exactly one vowel? Note that strings can have repeated letters! We need to choose the position for the vowel C(6,1) = 6!/1!5! This can be done 6 ways. Choose which vowel to use. This can be done in 5 ways. Each of the other 5 positions can contain any of the 21 consonants (not distinct). There are 215 ways to fill the rest of the string. 6*5*215
  • 10. The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: • exactly 2 vowels? Choose position for the vowels. C(6,2) = 6!/2!4! = 15 Choose the two vowels. 5 choices for each of 2 positions = 52 Each of the other 4 positions can contain any of 21 consonants. 214 15*52*214
  • 11. The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: • at least 1 vowel Count the number of strings with no vowels and subtract this from the total number of strings. 266 - 216
  • 12. The English alphabet contains 21 consonants and 5 vowels. How many strings of six lower case letters of the English alphabet contain: • at least 2 vowels Compute total number of strings and subtract number of strings with no vowels and the number of strings with exactly 1 vowel. 266 - 216 - 6*5*215
  • 13. Corollary 1: Let n and r be nonnegative integers with r  n. Then C(n,r) = C(n,n-r) Proof: C(n,r) = n!/r!(n-r)! C(n,n-r) = n!/(n-r)!(n-(n-r))! = n!/r!(n-r)!
  • 14. Binomial Coefficient Another notation for C(n,r) is . This number is also called a binomial coefficient. These numbers occur as coefficients in the expansions of powers of binomial expressions such as (a+b)n.
  • 15. Pascal’s Identity Let n and k be positive integers with n  k. Then C(n+1,k) = C(n, k-1) + C(n,k). Proof: ) , 1 ( )! 1 ( ! )! 1 ( )! 1 ( ! ) 1 ( ! )! 1 ( ! ) 1 ( ! )! )( 1 ( ! ! ) 1 ( )! )( 1 ( )! 1 ( ! )! ( ! ! )! 1 ( )! 1 ( ! ) , ( ) 1 , ( k n C k n k n k n k n n k n k k n k n k n k n k n k n k n k n k k kn k n k n k n k n k n C k n C                                   
  • 16. Let n be a positive integer. Then Proof: We know from set theory that the number of subsets in a set of size n is 2n. We also know that C(n,k) is the number of subsets of a set of size n that are of size k. counts the number of subsets of every size from 0 (empty set) to n. Therefore the sum must add up to 2n.
  • 17. Vandermonde’s Identity Proof: Suppose there are n items in one set and m items in a second set. Then the total number of ways to pick r elements from the union of these sets is C(m+n,r). Another way to pick r elements from the union is to pick k elements from the first set and then r-k elements from the second set, where 0  k  r. There are C(n,k) ways to pick the k elements from the first set and C(m,r-k) ways to pick the rest of the elements from the second set.
  • 18. Proof: Suppose there are n items in one set and m items in a second set. Then the total number of ways to pick r elements from the union of these sets is C(m+n,r). Another way to pick r elements from the union is to pick k elements from the first set and then r-k elements from the second set, where 0  k  r. For any k,there are C(n,k) ways to pick the k elements from the first set and C(m,r-k) ways to pick the rest of the elements from the second set. By the product rule there are C(m,r-k)C(n,k) ways to pick r elements for a particular k. For all possible values of k
  • 19. Pascal’s Triangle 1 1 1 1 1 2 3 3 1 1 1 4 6 4 1 n’th row, Cnk =k = 0, 1, …, n
  • 20. Binomial Theorem Let x and y be variables and let n be a positive integer. Then