SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Permutations and
Combinations-3
1
Parth Nandedkar
Revision of PnC-2
Q1)‘n’th word in an alphabetical ordering of all permutations of a word.
Mechanically find out number of words starting with first letter
onwards, and determine beginning letters of answer word.
Q2)Objects that need to be together in permutations.
‘Tying up’ the objects that need to be together as a single object, and
permuting within them as well.
Q3)Objects that need to be separated in permutations.
Insertion : Permute Objects with no condition as boxes.
Then insert those in between boxes anywhere.
--OR-- Method of Complements : From all permutations, subtract those
where the items are together.
PnC-3 2
Revision of PnC-2
Q4)’n’ people sitting on a round table.
(n-1)! Permutations. Two methods(Double counting and Fixing 1 Person)
Q5) ’n’ beads in a necklace.
Clockwise-Anti Clockwise symmetry => (n-1)!/2 Permutations.
nCr=nCn-r= n!/(r!(n-r)!)
nCr=n-1Cr+n-1Cr-1
nPr = rPr * nCr= n!/(n-r)!
PnC-3 3
Solutions to Final Session-2
Q1) If all the letters of the word ARRANGE are arranged in all possible
ways, in how many of words we will have the A's not together?
Answer) Total – A’s are together = 7!/(2!2!) – 6!/2!
Q2) Prove that nCr=n-1Cr+n-1Cr-1 using the formula nCr= n!/(r!(n-r)!)
Answer) Factor out common terms and cancel.
Q3)If nCr=nCr-1, and nPr=nPr+1 then n,r = ?
Answer)
Q4) The value of 50C4 + 56−kC
3= ?
Answer)56C4
PnC-3 4
Answers to Homework-2
Answer1) 2*3=6
Answer2) 5C1+ 2!5C2+ 3!5C3+ 4! 5C4+ 5!5C5
Answer3) 7C4*3C2=105
Answer4) Total – A’s are together = 6!/2! – 5! = 240
PnC-3 5
PnC-3 Topics
4.3.Number of ways of Partitioning Distinguishable Objects
4.4.Choosing Arbitrary number of Objects
5.Pascal’s Triangle
5.1.Properties of Pascal’s Triangle
5.2.Proofs on Properties of Pascal’s Triangle
5.3.Road Network Problems
PnC-3 6
4.3.Partitioning Distinguishable Objects
Formation of Groups: Number of ways in which (m + n + p) different
things can be divided into three distinct groups containing m, n & p
things respectively
(m≠n≠p)
Method) Original problem is also equivalent to deciding that out of all
permutations of (m + n + p) people, leftmost ‘m’ people will be one
group, middle ‘n’ of another and rightmost ‘p’ of 3rd group.
Hence, number of ways of allocating groups = ?
Recall the example of choosing ‘r’ captains.
PnC-3 7
4.3.Formation of Groups
Q)What if m=n=p?
In this case the above method fails.
Hint: Just using the previous answer will end up double counting every
valid sequence.
Reason: All 3 groups could end up consisting of the same people, only
the respective location of the groups in the sequence could be different.
These cases are identical when Grouping people, but still produce
different sequences.
Hence Special case answer = ?
PnC-3 8
4.3.Formation of Groups
Example)How many ways of assigning group names Red, Green and
Blue to ‘3m’ people, each group having equal strength.
Solution) In this case the Groups themselves can be distinguished by
their names. Hence answer is same as photo case = ?
When m≠n≠p, Groups can be distinguished by strength.
PnC-3 9
4.4.Choosing Arbitrary number of Objects
Type of Problems Discussed :
1. Choosing to buy one or more of ‘n’ distinct items
Application of Multiplication Principle => 2*2*….*2 = 2n
Subtract the single case of empty shopping cart => 2n-1
2. Ways of Choosing one or more of 'p' alike objects of one type, 'q'
alike objects of second type and 'r' alike of third type is:
= (p + 1) (q + 1) (r + 1) – 1
PnC-3 10
4.4.Choosing Arbitrary number of Objects
Reason: You buy 0 to ‘p’ items of ‘p’ type. By Addition Principle, (p+1)
options, not 2p because the objects are indistinguishable. Choosing any
fixed number of those is equivalent option, not separate. Now apply
Multiplication.
3. Ways of Choosing one or more of ‘n’ objects of which 'p' alike objects
of one type 'q' alike objects of second type and 'r' alike of third type,
and rest being distinct is:
= (p + 1) (q + 1) (r + 1) 2n - (p + q + r) – 1 (n≥p+q+r)
PnC-3 11
Problem Session-1(15 min.)
Q1) 1.Number of ways of photographing (2m+n) people of which 2
groups of ‘m’ and a group of ‘n’ people want to stay together = ?
2.Number of ways to divide (2m+n) people into groups of m, m and n
people = ?
Q2) From 5 apples, 4 mangoes & 3 bananas in how many ways we can
select atleast two fruits of each variety if
1.Fruits of same species are identical
2.Fruits of same species are different
PnC-3 12
5.Pascal’s Triangle
PnC-3 13
5.1.Properties of Pascal’s Triangle
PnC-3 14
1. Each element = sum of 2 elements on top of it.
2. Sum of elements on a horizontal line
= 2n. Can you prove this using induction?
Odd terms terms on
horizontal line gives us 0
4. Sum of elements on diagonal line
gives us Fibonacci sequence.
5.2.Proofs on properties of Pascal’s Triangle
PnC-3 15
1. By Method of Construction
2. = nC0+nC1+nC2+….. nCn = n-1C0+ (n-1C0+n-1C1)+(n-1C1+ n-1C2)….. n-1Cn
= 2*(horizontal sum of (n-1) row)
3. Similar to 2.
4. Final Session.
5.3.Road Network Problems
PnC-3 16
Example)If only going North or East is allowed ,
How many ways are there from A to B?
Method)This is equivalent to Number of
Permutations of 5 North’s(N’s) and 8 East’s (E’s).
Total objects = 13, 5 of 1 type, 8 of other =>
Answer = ?
Final Problem Session(20 min.)
Q1) Prove that each number a in Pascal's
triangle is equal to the sum of the numbers in
the previous left diagonal, starting from the
rightmost number through the number which is
located in the same right diagonal as a.
Q2)Prove that a diagonal sum of elements in
Pascal’s triangle gives us the Fibonacci sequence
<Fi> where Fi= Fi-1+ Fi-2.
Hint for both: use property 1, slide 14. No need
of induction.
PnC-3 17
Final Problem Session(20 min.)
Q3) How many ways are there to choose two teams of 5 people each
from 15 people?
Use two Methods : Grouping into 3 groups of 5, then choosing, and
Directly choosing(nCr) the teams.
Q4) If r, s, t are prime numbers and p, q are the positive integers such
that the LCM of p, q is r2t4s2, then the number of ordered pairs (p, q)
= ? [IIT – 2006]
Hint: For LCM we take maximum exponent of each prime in
factorization of p and q.
PnC-3 18
Final Problem Session(15 min.)
Next Lecture we will consider problems like :
If all the letters of the word ARRANGE are arranged in all possible
ways, in how many of words we will have the A's not together as well
as the R's not together ? . Requires the Inclusion Exclusion principle.
PnC-3 19

Weitere ähnliche Inhalte

Was ist angesagt?

Lesson 8 Nov 27 09
Lesson 8 Nov 27 09Lesson 8 Nov 27 09
Lesson 8 Nov 27 09
ingroy
 
Machine learning (10)
Machine learning (10)Machine learning (10)
Machine learning (10)
NYversity
 

Was ist angesagt? (19)

Logistics Management Assignment Help
Logistics Management Assignment Help Logistics Management Assignment Help
Logistics Management Assignment Help
 
stochastic processes assignment help
stochastic processes assignment helpstochastic processes assignment help
stochastic processes assignment help
 
Heuristics for counterexamples to the Agrawal Conjecture
Heuristics for counterexamples to the Agrawal ConjectureHeuristics for counterexamples to the Agrawal Conjecture
Heuristics for counterexamples to the Agrawal Conjecture
 
Calculus Assignment Help
Calculus Assignment HelpCalculus Assignment Help
Calculus Assignment Help
 
Physical Chemistry Assignment Help
Physical Chemistry Assignment HelpPhysical Chemistry Assignment Help
Physical Chemistry Assignment Help
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
10.1.1.96.9176
10.1.1.96.917610.1.1.96.9176
10.1.1.96.9176
 
Lesson 8 Nov 27 09
Lesson 8 Nov 27 09Lesson 8 Nov 27 09
Lesson 8 Nov 27 09
 
Lecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etcLecture 04 newton-raphson, secant method etc
Lecture 04 newton-raphson, secant method etc
 
Chemistry Assignment Help
Chemistry Assignment Help Chemistry Assignment Help
Chemistry Assignment Help
 
International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)International Journal of Mathematics and Statistics Invention (IJMSI)
International Journal of Mathematics and Statistics Invention (IJMSI)
 
Problemas de Smale
Problemas de SmaleProblemas de Smale
Problemas de Smale
 
Backtracking
BacktrackingBacktracking
Backtracking
 
5.5 back tracking
5.5 back tracking5.5 back tracking
5.5 back tracking
 
Em08 ect
Em08 ectEm08 ect
Em08 ect
 
Kernels and Support Vector Machines
Kernels and Support Vector  MachinesKernels and Support Vector  Machines
Kernels and Support Vector Machines
 
Section 3.1 graphs of polynomials, from college algebra corr
Section 3.1 graphs of polynomials, from college algebra corrSection 3.1 graphs of polynomials, from college algebra corr
Section 3.1 graphs of polynomials, from college algebra corr
 
Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Machine learning (10)
Machine learning (10)Machine learning (10)
Machine learning (10)
 

Ähnlich wie Permutations and Combinations IIT JEE+Olympiad Lecture 3

Lecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andLecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic and
manishhmishra001
 
Mathematics Project Slides
Mathematics Project SlidesMathematics Project Slides
Mathematics Project Slides
mkulawat
 
Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2
iqubal
 
Combinations and permutations
Combinations and permutationsCombinations and permutations
Combinations and permutations
indu psthakur
 
Permutations and-combinations-maths
Permutations and-combinations-mathsPermutations and-combinations-maths
Permutations and-combinations-maths
Murugan Iron
 
lecture 10
lecture 10lecture 10
lecture 10
sajinsc
 
Ways to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of DotsWays to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of Dots
guest1f2d6d
 

Ähnlich wie Permutations and Combinations IIT JEE+Olympiad Lecture 3 (20)

Permutations and Combinations (All Formulas)
Permutations and Combinations (All Formulas)Permutations and Combinations (All Formulas)
Permutations and Combinations (All Formulas)
 
Permutations and Combinations(For Class 11)
Permutations and Combinations(For Class 11)Permutations and Combinations(For Class 11)
Permutations and Combinations(For Class 11)
 
Permutation and combination
Permutation and combinationPermutation and combination
Permutation and combination
 
Lecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic andLecture Week 17 which hleps in study for logic and
Lecture Week 17 which hleps in study for logic and
 
Lecture #2: Algorithmic Combinatorics I "#FOSCS301"
Lecture #2: Algorithmic Combinatorics I "#FOSCS301"Lecture #2: Algorithmic Combinatorics I "#FOSCS301"
Lecture #2: Algorithmic Combinatorics I "#FOSCS301"
 
Mathematics Project Slides
Mathematics Project SlidesMathematics Project Slides
Mathematics Project Slides
 
Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2Mathematics Project Slides 1199456490678403 2
Mathematics Project Slides 1199456490678403 2
 
Lecture #3: Algorithmic Combinatorics I "#FOSCS301"
Lecture #3: Algorithmic Combinatorics I "#FOSCS301"Lecture #3: Algorithmic Combinatorics I "#FOSCS301"
Lecture #3: Algorithmic Combinatorics I "#FOSCS301"
 
Combinations and permutations
Combinations and permutationsCombinations and permutations
Combinations and permutations
 
Permutations and-combinations-maths
Permutations and-combinations-mathsPermutations and-combinations-maths
Permutations and-combinations-maths
 
Chapter10_part1_slides.pdf
Chapter10_part1_slides.pdfChapter10_part1_slides.pdf
Chapter10_part1_slides.pdf
 
Discrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofsDiscrete Math Ch5 counting + proofs
Discrete Math Ch5 counting + proofs
 
Permutations and Combinations IIT JEE+Olympiad Lecture 1
Permutations and Combinations IIT JEE+Olympiad Lecture 1 Permutations and Combinations IIT JEE+Olympiad Lecture 1
Permutations and Combinations IIT JEE+Olympiad Lecture 1
 
Chapter-3-Sample-Space-of-Experiment.pdf
Chapter-3-Sample-Space-of-Experiment.pdfChapter-3-Sample-Space-of-Experiment.pdf
Chapter-3-Sample-Space-of-Experiment.pdf
 
algorithm Unit 2
algorithm Unit 2 algorithm Unit 2
algorithm Unit 2
 
Unit 2 in daa
Unit 2 in daaUnit 2 in daa
Unit 2 in daa
 
lecture 10
lecture 10lecture 10
lecture 10
 
Probability
ProbabilityProbability
Probability
 
Ways to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of DotsWays to construct Triangles in an mxn Array of Dots
Ways to construct Triangles in an mxn Array of Dots
 
A Proof of Twin primes and Golbach's Conjecture
A Proof of Twin primes and Golbach's ConjectureA Proof of Twin primes and Golbach's Conjecture
A Proof of Twin primes and Golbach's Conjecture
 

Mehr von Parth Nandedkar

Mehr von Parth Nandedkar (10)

Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithm
 
Large scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithmLarge scale cell tracking using an approximated Sinkhorn algorithm
Large scale cell tracking using an approximated Sinkhorn algorithm
 
Discount tracker - Fujitsu Hackathon
Discount tracker - Fujitsu HackathonDiscount tracker - Fujitsu Hackathon
Discount tracker - Fujitsu Hackathon
 
Motion and Position Map in Cell Tracking for Bioimaging
Motion and Position Map in Cell Tracking for BioimagingMotion and Position Map in Cell Tracking for Bioimaging
Motion and Position Map in Cell Tracking for Bioimaging
 
Line Detection in Computer Vision - Recent Developments and Applications
Line Detection in Computer Vision - Recent Developments and ApplicationsLine Detection in Computer Vision - Recent Developments and Applications
Line Detection in Computer Vision - Recent Developments and Applications
 
Line Detection in Computer Vision
Line Detection in Computer VisionLine Detection in Computer Vision
Line Detection in Computer Vision
 
Speech at english_seminar
Speech at english_seminarSpeech at english_seminar
Speech at english_seminar
 
LSTM and GRU RNNs in Sentiment Analysis (Japanese)
LSTM and GRU RNNs in Sentiment Analysis (Japanese)LSTM and GRU RNNs in Sentiment Analysis (Japanese)
LSTM and GRU RNNs in Sentiment Analysis (Japanese)
 
Deep Learning Demonstration using Tensorflow (7th lecture)
Deep Learning Demonstration using Tensorflow (7th lecture)Deep Learning Demonstration using Tensorflow (7th lecture)
Deep Learning Demonstration using Tensorflow (7th lecture)
 
Basics of Deep Learning (2nd lecture)
Basics of Deep Learning (2nd lecture)Basics of Deep Learning (2nd lecture)
Basics of Deep Learning (2nd lecture)
 

Kürzlich hochgeladen

The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Kürzlich hochgeladen (20)

Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
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
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 

Permutations and Combinations IIT JEE+Olympiad Lecture 3

  • 2. Revision of PnC-2 Q1)‘n’th word in an alphabetical ordering of all permutations of a word. Mechanically find out number of words starting with first letter onwards, and determine beginning letters of answer word. Q2)Objects that need to be together in permutations. ‘Tying up’ the objects that need to be together as a single object, and permuting within them as well. Q3)Objects that need to be separated in permutations. Insertion : Permute Objects with no condition as boxes. Then insert those in between boxes anywhere. --OR-- Method of Complements : From all permutations, subtract those where the items are together. PnC-3 2
  • 3. Revision of PnC-2 Q4)’n’ people sitting on a round table. (n-1)! Permutations. Two methods(Double counting and Fixing 1 Person) Q5) ’n’ beads in a necklace. Clockwise-Anti Clockwise symmetry => (n-1)!/2 Permutations. nCr=nCn-r= n!/(r!(n-r)!) nCr=n-1Cr+n-1Cr-1 nPr = rPr * nCr= n!/(n-r)! PnC-3 3
  • 4. Solutions to Final Session-2 Q1) If all the letters of the word ARRANGE are arranged in all possible ways, in how many of words we will have the A's not together? Answer) Total – A’s are together = 7!/(2!2!) – 6!/2! Q2) Prove that nCr=n-1Cr+n-1Cr-1 using the formula nCr= n!/(r!(n-r)!) Answer) Factor out common terms and cancel. Q3)If nCr=nCr-1, and nPr=nPr+1 then n,r = ? Answer) Q4) The value of 50C4 + 56−kC 3= ? Answer)56C4 PnC-3 4
  • 5. Answers to Homework-2 Answer1) 2*3=6 Answer2) 5C1+ 2!5C2+ 3!5C3+ 4! 5C4+ 5!5C5 Answer3) 7C4*3C2=105 Answer4) Total – A’s are together = 6!/2! – 5! = 240 PnC-3 5
  • 6. PnC-3 Topics 4.3.Number of ways of Partitioning Distinguishable Objects 4.4.Choosing Arbitrary number of Objects 5.Pascal’s Triangle 5.1.Properties of Pascal’s Triangle 5.2.Proofs on Properties of Pascal’s Triangle 5.3.Road Network Problems PnC-3 6
  • 7. 4.3.Partitioning Distinguishable Objects Formation of Groups: Number of ways in which (m + n + p) different things can be divided into three distinct groups containing m, n & p things respectively (m≠n≠p) Method) Original problem is also equivalent to deciding that out of all permutations of (m + n + p) people, leftmost ‘m’ people will be one group, middle ‘n’ of another and rightmost ‘p’ of 3rd group. Hence, number of ways of allocating groups = ? Recall the example of choosing ‘r’ captains. PnC-3 7
  • 8. 4.3.Formation of Groups Q)What if m=n=p? In this case the above method fails. Hint: Just using the previous answer will end up double counting every valid sequence. Reason: All 3 groups could end up consisting of the same people, only the respective location of the groups in the sequence could be different. These cases are identical when Grouping people, but still produce different sequences. Hence Special case answer = ? PnC-3 8
  • 9. 4.3.Formation of Groups Example)How many ways of assigning group names Red, Green and Blue to ‘3m’ people, each group having equal strength. Solution) In this case the Groups themselves can be distinguished by their names. Hence answer is same as photo case = ? When m≠n≠p, Groups can be distinguished by strength. PnC-3 9
  • 10. 4.4.Choosing Arbitrary number of Objects Type of Problems Discussed : 1. Choosing to buy one or more of ‘n’ distinct items Application of Multiplication Principle => 2*2*….*2 = 2n Subtract the single case of empty shopping cart => 2n-1 2. Ways of Choosing one or more of 'p' alike objects of one type, 'q' alike objects of second type and 'r' alike of third type is: = (p + 1) (q + 1) (r + 1) – 1 PnC-3 10
  • 11. 4.4.Choosing Arbitrary number of Objects Reason: You buy 0 to ‘p’ items of ‘p’ type. By Addition Principle, (p+1) options, not 2p because the objects are indistinguishable. Choosing any fixed number of those is equivalent option, not separate. Now apply Multiplication. 3. Ways of Choosing one or more of ‘n’ objects of which 'p' alike objects of one type 'q' alike objects of second type and 'r' alike of third type, and rest being distinct is: = (p + 1) (q + 1) (r + 1) 2n - (p + q + r) – 1 (n≥p+q+r) PnC-3 11
  • 12. Problem Session-1(15 min.) Q1) 1.Number of ways of photographing (2m+n) people of which 2 groups of ‘m’ and a group of ‘n’ people want to stay together = ? 2.Number of ways to divide (2m+n) people into groups of m, m and n people = ? Q2) From 5 apples, 4 mangoes & 3 bananas in how many ways we can select atleast two fruits of each variety if 1.Fruits of same species are identical 2.Fruits of same species are different PnC-3 12
  • 14. 5.1.Properties of Pascal’s Triangle PnC-3 14 1. Each element = sum of 2 elements on top of it. 2. Sum of elements on a horizontal line = 2n. Can you prove this using induction? Odd terms terms on horizontal line gives us 0 4. Sum of elements on diagonal line gives us Fibonacci sequence.
  • 15. 5.2.Proofs on properties of Pascal’s Triangle PnC-3 15 1. By Method of Construction 2. = nC0+nC1+nC2+….. nCn = n-1C0+ (n-1C0+n-1C1)+(n-1C1+ n-1C2)….. n-1Cn = 2*(horizontal sum of (n-1) row) 3. Similar to 2. 4. Final Session.
  • 16. 5.3.Road Network Problems PnC-3 16 Example)If only going North or East is allowed , How many ways are there from A to B? Method)This is equivalent to Number of Permutations of 5 North’s(N’s) and 8 East’s (E’s). Total objects = 13, 5 of 1 type, 8 of other => Answer = ?
  • 17. Final Problem Session(20 min.) Q1) Prove that each number a in Pascal's triangle is equal to the sum of the numbers in the previous left diagonal, starting from the rightmost number through the number which is located in the same right diagonal as a. Q2)Prove that a diagonal sum of elements in Pascal’s triangle gives us the Fibonacci sequence <Fi> where Fi= Fi-1+ Fi-2. Hint for both: use property 1, slide 14. No need of induction. PnC-3 17
  • 18. Final Problem Session(20 min.) Q3) How many ways are there to choose two teams of 5 people each from 15 people? Use two Methods : Grouping into 3 groups of 5, then choosing, and Directly choosing(nCr) the teams. Q4) If r, s, t are prime numbers and p, q are the positive integers such that the LCM of p, q is r2t4s2, then the number of ordered pairs (p, q) = ? [IIT – 2006] Hint: For LCM we take maximum exponent of each prime in factorization of p and q. PnC-3 18
  • 19. Final Problem Session(15 min.) Next Lecture we will consider problems like : If all the letters of the word ARRANGE are arranged in all possible ways, in how many of words we will have the A's not together as well as the R's not together ? . Requires the Inclusion Exclusion principle. PnC-3 19