SlideShare a Scribd company logo
1 of 16
JC Liu MACM101 Discrete Mathematics
1
Lecture 16: Combinations (2)
 The Binomial Theorem
 Combinations with Repetition
 Finite Probability (Intro.)
JC Liu MACM101 Discrete Mathematics
2
16.1. Binomial Theorem
Consider the n-fold product (a+b)n
:
(a+b)(a+b)…(a+b) = an
+ n⋅an–1
b + n(n–1)/2⋅an–2
b2
+…+ bn
∑=
−
⋅





=+
n
0k
kknn
ba
k
n
)ba(Binomial Theorem (Thm 1.1):
The coefficient of ak
bn–k
is C(n,k)
Example: (a+b)4
= a4
+4⋅a3
b+6⋅a2
b2
+4⋅ab3
+b4
Binomial coefficient
JC Liu MACM101 Discrete Mathematics
3
16.1. Binomial Theorem
 Method 1: Given set A with n objects
• C(n,k) is the number of subsets with k objects
• Total number of subsets of A is 2n
 Method 2: Binomial theorem:
• (1+1)n
=
0
( , ) ( ,0) ( ,1) ... ( , ) 2
n
n
k
C n k C n C n C n n
=
= + + + =∑
∑=
−
⋅





=+
n
0k
kknn
ba
k
n
)ba(Binomial Theorem (Thm 1.1):
The coefficient of ak
bn–k
is C(n,k)
JC Liu MACM101 Discrete Mathematics
4
16.1. Binomial Theorem
0
( 1) ( , ) ( ,0) ( ,1) ( ,2) ... ( 1) ( , ) ?
n
k n
k
C n k C n C n c n C n n
=
− = − + − + − =∑
∑=
−
⋅





=+
n
0k
kknn
ba
k
n
)ba(Binomial Theorem (Thm 1.1):
The coefficient of ak
bn–k
is C(n,k)
•(1-1)n
=
JC Liu MACM101 Discrete Mathematics
5
16.2. More Combinations
Q1: How many 11-letter words out of “m i s s i s s i p p i”?
Hint: There are 1 “m”, 4 “i”, 4 “s”, and 2 “p”;
calculate the answer by positioning the letters by type:
11!/(1! 4! 4! 2!) = 34650.
Q2: How many 11-letter words using “m”,”i”,”s”,”p”?
-- like Q1, but no limit on the number of each letter
-- duplication allowed
-- order matters (mmmisssimpi <> mimmsssimip)
Q3: How many 11-letter strings using “m”,”i”,”s”,”p” if ignoring order?
-- mmmisssimpi <> mimmsssimip
-- so we can consider alphabetized strings only
JC Liu MACM101 Discrete Mathematics
6
16.3. Combinations with Repetitions
Question: How many alphabetized strings are there
of length 3 containing letters a,b,c ?
• Duplication allowed
• Order doesn’t matter
 Solution 1: 10
• aaa, aab, aac, abb, abc, acc, bbb, bbc, bcc, and ccc.
 Solution 2: Partition
• The only thing that matters is the numbers of each: a,b,c.
• So, introduce 3 nonnegative counters na nb and nc.
• New problem: How many combinations are there such that
na+nb+nc=3? -- easy ?
• Answer is 10: (3,0,0) (2,1,0) … (0,0,3).
JC Liu MACM101 Discrete Mathematics
7
16.3. Combinations with Repetitions
Question: How many alphabetized strings are there
of length 3 containing letters a,b,c (note: duplication
allowed)?
 Solution 1: List
• aaa, aab, aac, abb, abc, acc, bbb, bbc, bcc, and ccc.
• Total 10
 Solution 2: Partition 3
• (3,0,0) (2,1,0) … (0,0,3).
• Visualize it – 3 spaces, divided by 2 separators
 = (3,0,0) and  = (2,1,0) … and
 = (1,1,1) … and  = (0,0,3).
• Answer: C(5,2) = 10
JC Liu MACM101 Discrete Mathematics
8
16.3. Combinations with Repetitions
Consider a list of k letters, out of a alphabet of n letters.
How many different, alphabetized lists are possible?
• Each letter can be used multiple times
• Order doesn’t matter
 Let the 1st
letter occur k1 times, the 2nd
letter occur k2 times,…,
the nth
occur kn times.
• New problem: How many different ways to have k1+…+kn = k?
 Consider k places for letters “”, with n–1 separators “”
• Say, k=5, n=3, then 3 (k1) +0 (k2) +2 (k3) = 5 is represented by

Answer: In general, there are C(n+k–1,k) ways.
JC Liu MACM101 Discrete Mathematics
9
16.3. Combinations with Repetitions
Consider a list of k letters, out of a alphabet of n letters.
How many different, alphabetized lists are possible?
• New problem: How many different ways to have k1+…+kn = k?
Answer: In general, there are C(n+k–1,k) ways.
Question: How many different non-negative solutions for
x1+x2+x3+x4=7?
Answer: C(4+7-1,7)=120
k=7, n=4
JC Liu MACM101 Discrete Mathematics
10
16.3. Combinations with Repetitions
Consider a list of k letters, out of a alphabet of n letters.
How many different, alphabetized lists are possible?
• New problem: How many different ways to have k1+…+kn = k?
Answer: In general, there are C(n+k–1,k) ways.
Question: A donut shop offers 20 kinds of donuts. Assume that there
are at least 12 of each kind. Then how many ways we can select 12
donuts ?
Answer: C(20+12-1,12) = 141,120,525
k=12, n=20 – so k can be < n, but still with repetition
JC Liu MACM101 Discrete Mathematics
11
Summarizing
When counting the number if selections of k elements
out of 1,…,n consider two crucial questions:
Repetition: Can an element be picked more than
once?
 Order: Does the order of picking matter?
Ordering
matters?
Repetition allowed?
C(n,k),k)1kC(nNo
P(n,k)nYes
NoYes
k
−+
JC Liu MACM101 Discrete Mathematics
12
“How to Solve It”
Important observation:
 The previous 4 cases are not answers by themselves.
Instead they are tools that you have to learn to use.
 It is often not immediately clear which tool to use;
it is a skill to recognize which case you are dealing with.
Tricks of the trade:
 When in doubt, try small examples.
 Verify your answers (look at extremes like k=0 or n=k).
 Practice, practice, practice.
JC Liu MACM101 Discrete Mathematics
13
“How to Solve It”
Important observation:
 The previous 4 cases are not answers by themselves.
Instead they are tools that you have to learn to use.
 It is often not immediately clear which tool to use;
it is a skill to recognize which case you are dealing with.
Tricks of the trade:
 When in doubt, try small examples.
 Verify your answers (look at extremes like k=0 or n=k).
 Practice, practice, practice.
JC Liu MACM101 Discrete Mathematics
14
16.4. Intro. Finite Probability
 Experiment: toss a fair coin, roll a fair die
 Sample space S: all possible outcomes
• Toss coin 1 time: {H, T}
• Toss coin 2 times: {HH, HT, TH, TT}
• Same (or equal) likelihood of occurrence of each outcome
 Event: A subset A of S
• Say, both are H
• Can be empty set
Then
• Pr(A) = The probability that A occurs = |A|/|S|
• For each a in S, we have Pr({a})= The probability of each outcome = 1/|
S|
• The equal likelihood assumption
JC Liu MACM101 Discrete Mathematics
15
16.4. Intro. Finite Probability
 Recall:
• Suppose you flip a fair coin n times. How many different ways can
you get
• no heads?
• exactly one head?
• exactly two heads?
• exactly r heads?
• at least 2 heads?
• Probability of
• no heads?
• exactly one head?
• exactly two heads?
• exactly r heads?
• at least 2 heads?
• What is the experiment ?
• What is sample space S ?
• What is event A ?
• What is outcome a ?
• Think about lottery
JC Liu MACM101 Discrete Mathematics
16
9.4. Further Readings
 1.3. Binomial Theorem
 1.4. Combinations with Repetition
 3.4. Finite probability
 4.5 Fundamental theorem of arithmetic (side topic)

More Related Content

What's hot

Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment HelpMaths Assignment Help
 
6 binomial theorem
6 binomial theorem6 binomial theorem
6 binomial theoremmath123c
 
CLASS X MATHS Polynomials
CLASS X MATHS  PolynomialsCLASS X MATHS  Polynomials
CLASS X MATHS PolynomialsRc Os
 
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIESTìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIESTùng Thanh
 
Notes solving polynomial equations
Notes   solving polynomial equationsNotes   solving polynomial equations
Notes solving polynomial equationsLori Rapp
 
polynomials of class 10th
polynomials of class 10thpolynomials of class 10th
polynomials of class 10thAshish Pradhan
 
Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Bindu Cm
 
Binomial Theorem, Recursion ,Tower of Honai, relations
Binomial Theorem, Recursion ,Tower of Honai, relationsBinomial Theorem, Recursion ,Tower of Honai, relations
Binomial Theorem, Recursion ,Tower of Honai, relationsAqeel Rafique
 
Binomial Theorem
Binomial TheoremBinomial Theorem
Binomial Theoremitutor
 

What's hot (18)

Notes 5-7
Notes 5-7Notes 5-7
Notes 5-7
 
Differential Equations Assignment Help
Differential Equations Assignment HelpDifferential Equations Assignment Help
Differential Equations Assignment Help
 
6 binomial theorem
6 binomial theorem6 binomial theorem
6 binomial theorem
 
Binomial
BinomialBinomial
Binomial
 
Advance algebra
Advance algebraAdvance algebra
Advance algebra
 
THE BINOMIAL THEOREM
THE BINOMIAL THEOREM THE BINOMIAL THEOREM
THE BINOMIAL THEOREM
 
Question bank xi
Question bank xiQuestion bank xi
Question bank xi
 
polynomial
 polynomial  polynomial
polynomial
 
CLASS X MATHS Polynomials
CLASS X MATHS  PolynomialsCLASS X MATHS  Polynomials
CLASS X MATHS Polynomials
 
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIESTìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
Tìm tòi sáng tạo - SOME POLYNOMIAL PROBLEMS ARE BUILT ON IDENTITIES
 
Notes solving polynomial equations
Notes   solving polynomial equationsNotes   solving polynomial equations
Notes solving polynomial equations
 
Calculus Assignment Help
Calculus Assignment HelpCalculus Assignment Help
Calculus Assignment Help
 
1631 the binomial theorem
1631 the binomial theorem1631 the binomial theorem
1631 the binomial theorem
 
Rmo 2010
Rmo 2010Rmo 2010
Rmo 2010
 
polynomials of class 10th
polynomials of class 10thpolynomials of class 10th
polynomials of class 10th
 
Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10 Presentaton on Polynomials....Class 10
Presentaton on Polynomials....Class 10
 
Binomial Theorem, Recursion ,Tower of Honai, relations
Binomial Theorem, Recursion ,Tower of Honai, relationsBinomial Theorem, Recursion ,Tower of Honai, relations
Binomial Theorem, Recursion ,Tower of Honai, relations
 
Binomial Theorem
Binomial TheoremBinomial Theorem
Binomial Theorem
 

Viewers also liked

Virtual base class
Virtual base classVirtual base class
Virtual base classTech_MX
 
Stack data structure
Stack data structureStack data structure
Stack data structureTech_MX
 
Stack Data Structure & It's Application
Stack Data Structure & It's Application Stack Data Structure & It's Application
Stack Data Structure & It's Application Tech_MX
 
Stacks Implementation and Examples
Stacks Implementation and ExamplesStacks Implementation and Examples
Stacks Implementation and Examplesgreatqadirgee4u
 
Permutation & Combination
Permutation & CombinationPermutation & Combination
Permutation & CombinationPuru Agrawal
 
Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combinationSadia Zareen
 
Permutations and combinations examples
Permutations and combinations examplesPermutations and combinations examples
Permutations and combinations examplesLeo Crisologo
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinationsrfant
 

Viewers also liked (9)

Virtual base class
Virtual base classVirtual base class
Virtual base class
 
Stack data structure
Stack data structureStack data structure
Stack data structure
 
Stack Data Structure & It's Application
Stack Data Structure & It's Application Stack Data Structure & It's Application
Stack Data Structure & It's Application
 
Stack
StackStack
Stack
 
Stacks Implementation and Examples
Stacks Implementation and ExamplesStacks Implementation and Examples
Stacks Implementation and Examples
 
Permutation & Combination
Permutation & CombinationPermutation & Combination
Permutation & Combination
 
Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combination
 
Permutations and combinations examples
Permutations and combinations examplesPermutations and combinations examples
Permutations and combinations examples
 
Permutations & Combinations
Permutations & CombinationsPermutations & Combinations
Permutations & Combinations
 

Similar to 16 combinatroics-2

Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework HelpExcel Homework Help
 
Bca3010 computer oriented numerical methods
Bca3010   computer oriented numerical methodsBca3010   computer oriented numerical methods
Bca3010 computer oriented numerical methodssmumbahelp
 
tutorial5.ppt
tutorial5.ppttutorial5.ppt
tutorial5.pptjvjfvvoa
 
Complete ncert exemplar class 10
Complete ncert exemplar class 10Complete ncert exemplar class 10
Complete ncert exemplar class 10physicsmaths5
 
Mayank and Srishti presentation on gyandeep public school
Mayank  and Srishti presentation on gyandeep public schoolMayank  and Srishti presentation on gyandeep public school
Mayank and Srishti presentation on gyandeep public schoolMayankYadav777500
 
Counting, pigeonhole, permuntation, Permutations and Combination ,Binomial T...
Counting,  pigeonhole, permuntation, Permutations and Combination ,Binomial T...Counting,  pigeonhole, permuntation, Permutations and Combination ,Binomial T...
Counting, pigeonhole, permuntation, Permutations and Combination ,Binomial T...sheiblu
 
November 3, 2014
November 3, 2014November 3, 2014
November 3, 2014khyps13
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilakyknv4
 
Práctica 1 auxiliatura estadística
Práctica 1 auxiliatura estadísticaPráctica 1 auxiliatura estadística
Práctica 1 auxiliatura estadísticaJoelAnara
 
1 chapter1 introduction
1 chapter1 introduction1 chapter1 introduction
1 chapter1 introductionSSE_AndyLi
 
Markov chain Monte Carlo methods and some attempts at parallelizing them
Markov chain Monte Carlo methods and some attempts at parallelizing themMarkov chain Monte Carlo methods and some attempts at parallelizing them
Markov chain Monte Carlo methods and some attempts at parallelizing themPierre Jacob
 

Similar to 16 combinatroics-2 (20)

probability assignment help (2)
probability assignment help (2)probability assignment help (2)
probability assignment help (2)
 
Stochastic Processes Homework Help
Stochastic Processes Homework HelpStochastic Processes Homework Help
Stochastic Processes Homework Help
 
Bca3010 computer oriented numerical methods
Bca3010   computer oriented numerical methodsBca3010   computer oriented numerical methods
Bca3010 computer oriented numerical methods
 
Vivek
VivekVivek
Vivek
 
M220w07
M220w07M220w07
M220w07
 
Problem Set 1
Problem Set 1Problem Set 1
Problem Set 1
 
tutorial5.ppt
tutorial5.ppttutorial5.ppt
tutorial5.ppt
 
sample space formation.pdf
sample space formation.pdfsample space formation.pdf
sample space formation.pdf
 
Complete ncert exemplar class 10
Complete ncert exemplar class 10Complete ncert exemplar class 10
Complete ncert exemplar class 10
 
Mayank and Srishti presentation on gyandeep public school
Mayank  and Srishti presentation on gyandeep public schoolMayank  and Srishti presentation on gyandeep public school
Mayank and Srishti presentation on gyandeep public school
 
Counting, pigeonhole, permuntation, Permutations and Combination ,Binomial T...
Counting,  pigeonhole, permuntation, Permutations and Combination ,Binomial T...Counting,  pigeonhole, permuntation, Permutations and Combination ,Binomial T...
Counting, pigeonhole, permuntation, Permutations and Combination ,Binomial T...
 
November 3, 2014
November 3, 2014November 3, 2014
November 3, 2014
 
Pydata Katya Vasilaky
Pydata Katya VasilakyPydata Katya Vasilaky
Pydata Katya Vasilaky
 
Binomial theorem
Binomial theorem Binomial theorem
Binomial theorem
 
Probability and statistics assignment help
Probability and statistics assignment helpProbability and statistics assignment help
Probability and statistics assignment help
 
Práctica 1 auxiliatura estadística
Práctica 1 auxiliatura estadísticaPráctica 1 auxiliatura estadística
Práctica 1 auxiliatura estadística
 
1 chapter1 introduction
1 chapter1 introduction1 chapter1 introduction
1 chapter1 introduction
 
Induction.pdf
Induction.pdfInduction.pdf
Induction.pdf
 
Markov chain Monte Carlo methods and some attempts at parallelizing them
Markov chain Monte Carlo methods and some attempts at parallelizing themMarkov chain Monte Carlo methods and some attempts at parallelizing them
Markov chain Monte Carlo methods and some attempts at parallelizing them
 
Advance algebra
Advance algebraAdvance algebra
Advance algebra
 

More from Tin học Sức sống (18)

Trac nghiem tin_hoc_dai_cuong
Trac nghiem tin_hoc_dai_cuongTrac nghiem tin_hoc_dai_cuong
Trac nghiem tin_hoc_dai_cuong
 
Tuyen tap truyen_cuoi_vova
Tuyen tap truyen_cuoi_vovaTuyen tap truyen_cuoi_vova
Tuyen tap truyen_cuoi_vova
 
Truyencuoidangian
TruyencuoidangianTruyencuoidangian
Truyencuoidangian
 
Sps+posting
Sps+postingSps+posting
Sps+posting
 
Seo ebook viet moz 2013 pdf
Seo ebook viet moz 2013   pdfSeo ebook viet moz 2013   pdf
Seo ebook viet moz 2013 pdf
 
Lecture 1-pom-full
Lecture 1-pom-fullLecture 1-pom-full
Lecture 1-pom-full
 
Mar can-ban-1-vb2
Mar can-ban-1-vb2Mar can-ban-1-vb2
Mar can-ban-1-vb2
 
Lecture 9-pom-full1
Lecture 9-pom-full1Lecture 9-pom-full1
Lecture 9-pom-full1
 
Lecture 8-pom-full
Lecture 8-pom-fullLecture 8-pom-full
Lecture 8-pom-full
 
Lecture 7-pom-full
Lecture 7-pom-fullLecture 7-pom-full
Lecture 7-pom-full
 
Lecture 6-pom-full
Lecture 6-pom-fullLecture 6-pom-full
Lecture 6-pom-full
 
Lecture 5-pom-full
Lecture 5-pom-fullLecture 5-pom-full
Lecture 5-pom-full
 
Lecture5 pom-full
Lecture5 pom-fullLecture5 pom-full
Lecture5 pom-full
 
Lecture 3-pom-full
Lecture 3-pom-fullLecture 3-pom-full
Lecture 3-pom-full
 
Lecture 2-pom
Lecture 2-pomLecture 2-pom
Lecture 2-pom
 
Lecture 1-pom-full
Lecture 1-pom-fullLecture 1-pom-full
Lecture 1-pom-full
 
Chuong 1-ktdc
Chuong 1-ktdcChuong 1-ktdc
Chuong 1-ktdc
 
Giải hệ phương trình mờ 2 ần 2 pt
Giải hệ phương trình mờ 2 ần 2 ptGiải hệ phương trình mờ 2 ần 2 pt
Giải hệ phương trình mờ 2 ần 2 pt
 

Recently uploaded

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)cama23
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfErwinPantujan2
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 

Recently uploaded (20)

Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)Global Lehigh Strategic Initiatives (without descriptions)
Global Lehigh Strategic Initiatives (without descriptions)
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdfVirtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
Virtual-Orientation-on-the-Administration-of-NATG12-NATG6-and-ELLNA.pdf
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 

16 combinatroics-2

  • 1. JC Liu MACM101 Discrete Mathematics 1 Lecture 16: Combinations (2)  The Binomial Theorem  Combinations with Repetition  Finite Probability (Intro.)
  • 2. JC Liu MACM101 Discrete Mathematics 2 16.1. Binomial Theorem Consider the n-fold product (a+b)n : (a+b)(a+b)…(a+b) = an + n⋅an–1 b + n(n–1)/2⋅an–2 b2 +…+ bn ∑= − ⋅      =+ n 0k kknn ba k n )ba(Binomial Theorem (Thm 1.1): The coefficient of ak bn–k is C(n,k) Example: (a+b)4 = a4 +4⋅a3 b+6⋅a2 b2 +4⋅ab3 +b4 Binomial coefficient
  • 3. JC Liu MACM101 Discrete Mathematics 3 16.1. Binomial Theorem  Method 1: Given set A with n objects • C(n,k) is the number of subsets with k objects • Total number of subsets of A is 2n  Method 2: Binomial theorem: • (1+1)n = 0 ( , ) ( ,0) ( ,1) ... ( , ) 2 n n k C n k C n C n C n n = = + + + =∑ ∑= − ⋅      =+ n 0k kknn ba k n )ba(Binomial Theorem (Thm 1.1): The coefficient of ak bn–k is C(n,k)
  • 4. JC Liu MACM101 Discrete Mathematics 4 16.1. Binomial Theorem 0 ( 1) ( , ) ( ,0) ( ,1) ( ,2) ... ( 1) ( , ) ? n k n k C n k C n C n c n C n n = − = − + − + − =∑ ∑= − ⋅      =+ n 0k kknn ba k n )ba(Binomial Theorem (Thm 1.1): The coefficient of ak bn–k is C(n,k) •(1-1)n =
  • 5. JC Liu MACM101 Discrete Mathematics 5 16.2. More Combinations Q1: How many 11-letter words out of “m i s s i s s i p p i”? Hint: There are 1 “m”, 4 “i”, 4 “s”, and 2 “p”; calculate the answer by positioning the letters by type: 11!/(1! 4! 4! 2!) = 34650. Q2: How many 11-letter words using “m”,”i”,”s”,”p”? -- like Q1, but no limit on the number of each letter -- duplication allowed -- order matters (mmmisssimpi <> mimmsssimip) Q3: How many 11-letter strings using “m”,”i”,”s”,”p” if ignoring order? -- mmmisssimpi <> mimmsssimip -- so we can consider alphabetized strings only
  • 6. JC Liu MACM101 Discrete Mathematics 6 16.3. Combinations with Repetitions Question: How many alphabetized strings are there of length 3 containing letters a,b,c ? • Duplication allowed • Order doesn’t matter  Solution 1: 10 • aaa, aab, aac, abb, abc, acc, bbb, bbc, bcc, and ccc.  Solution 2: Partition • The only thing that matters is the numbers of each: a,b,c. • So, introduce 3 nonnegative counters na nb and nc. • New problem: How many combinations are there such that na+nb+nc=3? -- easy ? • Answer is 10: (3,0,0) (2,1,0) … (0,0,3).
  • 7. JC Liu MACM101 Discrete Mathematics 7 16.3. Combinations with Repetitions Question: How many alphabetized strings are there of length 3 containing letters a,b,c (note: duplication allowed)?  Solution 1: List • aaa, aab, aac, abb, abc, acc, bbb, bbc, bcc, and ccc. • Total 10  Solution 2: Partition 3 • (3,0,0) (2,1,0) … (0,0,3). • Visualize it – 3 spaces, divided by 2 separators  = (3,0,0) and  = (2,1,0) … and  = (1,1,1) … and  = (0,0,3). • Answer: C(5,2) = 10
  • 8. JC Liu MACM101 Discrete Mathematics 8 16.3. Combinations with Repetitions Consider a list of k letters, out of a alphabet of n letters. How many different, alphabetized lists are possible? • Each letter can be used multiple times • Order doesn’t matter  Let the 1st letter occur k1 times, the 2nd letter occur k2 times,…, the nth occur kn times. • New problem: How many different ways to have k1+…+kn = k?  Consider k places for letters “”, with n–1 separators “” • Say, k=5, n=3, then 3 (k1) +0 (k2) +2 (k3) = 5 is represented by  Answer: In general, there are C(n+k–1,k) ways.
  • 9. JC Liu MACM101 Discrete Mathematics 9 16.3. Combinations with Repetitions Consider a list of k letters, out of a alphabet of n letters. How many different, alphabetized lists are possible? • New problem: How many different ways to have k1+…+kn = k? Answer: In general, there are C(n+k–1,k) ways. Question: How many different non-negative solutions for x1+x2+x3+x4=7? Answer: C(4+7-1,7)=120 k=7, n=4
  • 10. JC Liu MACM101 Discrete Mathematics 10 16.3. Combinations with Repetitions Consider a list of k letters, out of a alphabet of n letters. How many different, alphabetized lists are possible? • New problem: How many different ways to have k1+…+kn = k? Answer: In general, there are C(n+k–1,k) ways. Question: A donut shop offers 20 kinds of donuts. Assume that there are at least 12 of each kind. Then how many ways we can select 12 donuts ? Answer: C(20+12-1,12) = 141,120,525 k=12, n=20 – so k can be < n, but still with repetition
  • 11. JC Liu MACM101 Discrete Mathematics 11 Summarizing When counting the number if selections of k elements out of 1,…,n consider two crucial questions: Repetition: Can an element be picked more than once?  Order: Does the order of picking matter? Ordering matters? Repetition allowed? C(n,k),k)1kC(nNo P(n,k)nYes NoYes k −+
  • 12. JC Liu MACM101 Discrete Mathematics 12 “How to Solve It” Important observation:  The previous 4 cases are not answers by themselves. Instead they are tools that you have to learn to use.  It is often not immediately clear which tool to use; it is a skill to recognize which case you are dealing with. Tricks of the trade:  When in doubt, try small examples.  Verify your answers (look at extremes like k=0 or n=k).  Practice, practice, practice.
  • 13. JC Liu MACM101 Discrete Mathematics 13 “How to Solve It” Important observation:  The previous 4 cases are not answers by themselves. Instead they are tools that you have to learn to use.  It is often not immediately clear which tool to use; it is a skill to recognize which case you are dealing with. Tricks of the trade:  When in doubt, try small examples.  Verify your answers (look at extremes like k=0 or n=k).  Practice, practice, practice.
  • 14. JC Liu MACM101 Discrete Mathematics 14 16.4. Intro. Finite Probability  Experiment: toss a fair coin, roll a fair die  Sample space S: all possible outcomes • Toss coin 1 time: {H, T} • Toss coin 2 times: {HH, HT, TH, TT} • Same (or equal) likelihood of occurrence of each outcome  Event: A subset A of S • Say, both are H • Can be empty set Then • Pr(A) = The probability that A occurs = |A|/|S| • For each a in S, we have Pr({a})= The probability of each outcome = 1/| S| • The equal likelihood assumption
  • 15. JC Liu MACM101 Discrete Mathematics 15 16.4. Intro. Finite Probability  Recall: • Suppose you flip a fair coin n times. How many different ways can you get • no heads? • exactly one head? • exactly two heads? • exactly r heads? • at least 2 heads? • Probability of • no heads? • exactly one head? • exactly two heads? • exactly r heads? • at least 2 heads? • What is the experiment ? • What is sample space S ? • What is event A ? • What is outcome a ? • Think about lottery
  • 16. JC Liu MACM101 Discrete Mathematics 16 9.4. Further Readings  1.3. Binomial Theorem  1.4. Combinations with Repetition  3.4. Finite probability  4.5 Fundamental theorem of arithmetic (side topic)