Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 93 Chapter 5 Sets and Counting.

Slides:



Advertisements
Similar presentations
1. Tossing Coins 2. Routes 3. Balls Drawn From an Urn 1.
Advertisements

Chapter 2 Concepts of Prob. Theory
Counting Chapter 6 With Question/Answer Animations.
1. Number of Elements in A 2. Inclusion-Exclusion Principle 3. Venn Diagram 4. De Morgan's Laws 1.
1. Permutation 2. Combination 3. Formula for P ( n,r ) 4. Factorial 5. Formula for C ( n,r ) 1.
Chapter 2 Probability. 2.1 Sample Spaces and Events.
Week 21 Basic Set Theory A set is a collection of elements. Use capital letters, A, B, C to denotes sets and small letters a 1, a 2, … to denote the elements.
Introduction Probability is a number from 0 to 1 inclusive or a percent from 0% to 100% inclusive that indicates how likely an event is to occur. In the.
Probability Dr. Deshi Ye Outline  Introduction  Sample space and events  Probability  Elementary Theorem.
Multiplication Rule. A tree structure is a useful tool for keeping systematic track of all possibilities in situations in which events happen in order.
Slide 2-1 Copyright © 2005 Pearson Education, Inc. SEVENTH EDITION and EXPANDED SEVENTH EDITION.
Chapter 2 The Basic Concepts of Set Theory
Lecture 07 Prof. Dr. M. Junaid Mughal
Relations Chapter 9.
Counting Principles and Probability Digital Lesson.
5.1 Sets Sets and Elements Union and Intersection Subset and Empty Set
College Algebra Fifth Edition
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 2 Probability.
5.5 Counting Techniques. More Challenging Stuff  The classical method, when all outcomes are equally likely, involves counting the number of ways something.
4. Counting 4.1 The Basic of Counting Basic Counting Principles Example 1 suppose that either a member of the faculty or a student in the department is.
Combinatorics 3/15 and 3/ Counting A restaurant offers the following menu: Main CourseVegetablesBeverage BeefPotatoesMilk HamGreen BeansCoffee.
6  Sets and Set Operations  The Number of Elements in a Finite Set  The Multiplication Principle  Permutations and Combinations Sets and Counting.
7 Further Topics in Algebra © 2008 Pearson Addison-Wesley. All rights reserved Sections 7.4–7.7.
Topics to be covered: Produce all combinations and permutations of sets. Calculate the number of combinations and permutations of sets of m items taken.
Counting Principles. What you will learn: Solve simple counting problems Use the Fundamental Counting Principle to solve counting problems Use permutations.
Chapter 6 With Question/Answer Animations 1. Chapter Summary The Basics of Counting The Pigeonhole Principle Permutations and Combinations Binomial Coefficients.
Permutations and Combinations
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Permutations and Combinations. Objectives:  apply fundamental counting principle  compute permutations  compute combinations  distinguish permutations.
Fall 2002CMSC Discrete Structures1 One, two, three, we’re… Counting.
Goldstein/Schnieder/Lay: Finite Math & Its Applications, 9e 1 of 93 Chapter 5 Sets and Counting.
ICS 253: Discrete Structures I Counting and Applications King Fahd University of Petroleum & Minerals Information & Computer Science Department.
March 10,  Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound.
 History and Relevance of probability theory Probability theory began with the study of game of chance that were related to gambling, like throwing a.
Pg. 606 Homework Pg. 631#1 – 3, 5 – 10, 13 – 19 odd #1135#12126 #1370#14220 #151365# #1756x 5 y 3 #1856x 3 y 5 #19240x 4 # x 6 #34expand to.
Barnett/Ziegler/Byleen Finite Mathematics 11e1 Chapter 7 Review Important Terms, Symbols, Concepts 7.1. Logic A proposition is a statement (not a question.
1 ENM 503 Block 1 Algebraic Systems Lesson 2 – The Algebra of Sets The Essence of Sets What are they?
Week 11 What is Probability? Quantification of uncertainty. Mathematical model for things that occur randomly. Random – not haphazard, don’t know what.
Copyright © 2007 Pearson Education, Inc. Slide 8-1.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
Copyright © 2006 Brooks/Cole, a division of Thomson Learning, Inc. Sets and Counting6 Sets and Set Operations The Number of Elements in a Finite Set The.
1. Formulas for C ( n,r ) 2. Binominal Coefficient 3. Binomial Theorem 4. Number of Subsets 1.
PERMUTATIONS AND COMBINATIONS BOTH PERMUTATIONS AND COMBINATIONS USE A COUNTING METHOD CALLED FACTORIAL.
Menu Traditional Menu Other Menu Nasi LemakBeef Burger Roti Canai Potatoes Chip Capati French Bread Mee Goreng Drink : Coffee, Tea, Coke and Pepsi.
1. Tree Diagram 2. Multiplication Principle 3. Generalized Multiplication Principle 1.
1 CS 140 Discrete Mathematics Combinatorics And Review Notes.
Counting Techniques Tree Diagram Multiplication Rule Permutations Combinations.
 Counting  Fundamental Counting principle  Factorials  Permutations and combinations  Probability  Complementary events  Compound events  Independent.
2/24/20161 One, two, three, we’re… Counting. 2/24/20162 Basic Counting Principles Counting problems are of the following kind: “How many different 8-letter.
Section Basic Counting Principles: The Product Rule The Product Rule: A procedure can be broken down into a sequence of two tasks. There are n 1.
CS 104: Discrete Mathematics
Basic Probability. Introduction Our formal study of probability will base on Set theory Axiomatic approach (base for all our further studies of probability)
Chapter 2 1. Chapter Summary Sets (This Slide) The Language of Sets - Sec 2.1 – Lecture 8 Set Operations and Set Identities - Sec 2.2 – Lecture 9 Functions.
Copyright © Cengage Learning. All rights reserved. Probability and Statistics.
CPCS 222 Discrete Structures I
Section 6.1 Set and Set Operations. Set: A set is a collection of objects/elements. Ex. A = {w, a, r, d} Sets are often named with capital letters. Order.
Set. Outline Universal Set Venn Diagram Operations on Sets.
Dr. Ameria Eldosoky Discrete mathematics
Permutations and Combinations
The Pigeonhole Principle
Permutations and Combinations
COCS DISCRETE STRUCTURES
What is Probability? Quantification of uncertainty.
Permutations and Combinations
CS100: Discrete structures
Permutations and Combinations
Permutations and Combinations
2 Chapter Numeration Systems and Sets
Chapter 11: Further Topics in Algebra
Presentation transcript:

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 1 of 93 Chapter 5 Sets and Counting

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 2 of 93 Outline 5.1 Sets 5.2 A Fundamental Principle of Counting 5.3 Venn Diagrams and Counting 5.4 The Multiplication Principle 5.5 Permutations and Combinations 5.6 Further Counting Problems 5.7 The Binomial Theorem 5.8 Multinomial Coefficients and Partitions

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 3 of Sets 1.Sets and Elements 2.Union and Intersection 3.Subset and Empty Set 4.Universal Set and Complement

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 4 of 93 Sets and Elements A set is any collection of objects. The objects, which may be countries, cities, years, numbers, letters, or anything else, are called the elements of the set. A set is often specified by a listing of its elements inside a pair of braces. A set may also be specified by giving a description of its elements.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 5 of 93 1.The set of the first six letters of the alphabet is {a, b, c, d, e, f}. 2.{2, 4, 6, 8, 10} is the set {the even numbers between 1 and 11}. 3.The graph {(a,b) where b = a 2 } is a set with infinitely many elements. Example Sets and Elements

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 6 of 93 Example Sets and Elements (2) Let A = {years from 1991 to 2004 in which unemployment is at least 6%}. Let B = {years from 1991 to 2004 in which inflation is at least 3%}.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 7 of 93 Example Sets and Elements (3) Using the table, the two sets are A = {1991, 1992, 1993, 1994, 2003} and B = {1991, 1992, 1993, 1996, 2000}.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 8 of 93 Union and Intersection The union of A and B, denoted A B, is the set consisting of all those elements that belong to either A or B or both. The intersection of A and B, denoted A B, is the set consisting of those elements that belong to both A and B.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 9 of 93 Let A = {1991, 1992, 1993, 1994, 2003} and B = {1991, 1992, 1993, 1996, 2000} from the previous example. Find A B Example Union and Intersection = {1991,1992,1993,1994,1996,2000,2003} = {1991,1992,1993}

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 10 of 93 Subset and Empty Set A set B is called a subset of A provided that every element of B is also an element of A. The set that contains no elements at all is the empty set (or null set) and is written as. The empty set is a subset of every set.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 11 of 93 List all possible subsets of {a, b, c}. {a}, {b}, and {c} {a, b}, {a, c}, and {b, c} {a, b, c} Example Subset and Empty Set

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 12 of 93 Universal Set and Complement The set U that contains all the elements of the sets being discussed is called a universal set (for the particular problem). If A is a subset of U, the set of elements in U that are not in A is called the complement of A, denoted by A'.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 13 of 93 Example Universal Set and Complement Let U = {a,b,c,d,e,f,g}, S = {a,b,c} and T = {a,c,d}. Find = {d,e,f,g} = {b,e,f,g} = {b,d,e,f,g}

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 14 of 93  A set is a collection of objects. Each object is called an element of the set. The empty set is the set containing no objects.  The union of two sets is the set consisting of all elements that belong to at least one of the sets. The intersection of two sets is the set consisting of all elements that belong to both of the sets. Summary Section Part 1

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 15 of 93  Set A is a subset of set B if every element of set A is also an element of set B. In each situation or problem, all sets are considered to be subsets of a universal set. The set of all elements in the universal set that do not belong to the set A is called the complement of A, denoted A'. Summary Section Part 2

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 16 of A Fundamental Principle of Counting 1.Number of Elements in A 2.Inclusion-Exclusion Principle 3.Venn Diagram 4.De Morgan's Laws

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 17 of 93 Number of Elements in A If S is any set, we will denote the number of elements in S by n(S). For example, if S = {1,7,11}, then n(S) = 3; if S =, then n(S) = 0.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 18 of 93 Inclusion-Exclusion Principle Let S and T be sets. Then

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 19 of 93 Example Inclusion-Exclusion Principle In the year 2000, Executive magazine surveyed the presidents of the 500 largest corporations in the US. Of these 500 people, 310 had degrees (of any sort) in business, 238 had undergraduate degrees in business, and 184 had graduate degrees in business. How many presidents had both undergraduate and graduate degrees in business?

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 20 of 93 Example Inclusion-Exclusion Principle (2) Let S = {presidents with an undergraduate degree in business} and T = {presidents with a graduate degree in business}. S T = {presidents with degrees (of any sort) in business} S T = {presidents with both undergraduate and graduate degrees in business}

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 21 of 93 Example Inclusion-Exclusion Principle (3) n(S) = 238 n(T) = 184 n(S T) = 310 n(S T) = n(S) + n(T)  n(S T) 310 =  n(S T) n(S T) =  310 = 112

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 22 of 93 Venn Diagram A Venn diagram is a drawing that represents sets geometrically. To construct a Venn diagram, draw a rectangle and view its points as the elements of U. Then draw a circle inside the rectangle for each set. The circles should overlap. View the points inside the circles as elements of each set.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 23 of 93 Example Venn Diagram Draw a Venn diagram with three sets, R, S and T. Shade the area that represents R S T, R S T and S R' T '.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 24 of 93 Example Venn Diagram (2)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 25 of 93 De Morgan's Laws De Morgan's Laws Let S and T be sets. Then (S T)' = S‘ T', (S T)' = S’ T'.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 26 of 93 Example De Morgan's Laws Verify (S T)' = S ‘ T ' using Venn diagrams.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 27 of 93 Example De Morgan's Laws (2)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 28 of 93 Example De Morgan's Laws (3)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 29 of 93  The inclusion-exclusion principle says that the number of elements in the union of two sets is the sum of the number of elements in each set minus the number of elements in their intersection. Summary Section Part 1

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 30 of 93  A Venn diagram consists of a rectangle containing overlapping circles and is used to depict relationships among sets. The rectangle represents the universal set and the circles represent subsets of the universal set.  De Morgan's laws state that the complement of the union (intersection) of two sets is the intersection (union) of their complements. Summary Section Part 2

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 31 of Venn Diagrams and Counting 1.Basic Regions 2.Basic Regions and Counting

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 32 of 93 Basic Regions Each Venn diagram divides the universal set into non-overlapping regions called basic regions.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 33 of 93 Example Basic Regions Show the basic regions for the Venn diagram with two sets and with three sets.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 34 of 93 Example Basic Regions and Counting For the survey of the presidents of the 500 largest corporations in the US where 310 had degrees (of any sort) in business, 238 had undergraduate degrees in business, and 184 had graduate degrees in business: a. Draw a Venn diagram and determine the number of elements in each basic region; b. Determine the number of presidents having exactly one degree in business.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 35 of 93 Example Basic Regions and Counting n(I) = n(U) - n(S T) = = 190 n(III) = n(S T) = 112 n(II) = n(S) - n(S T) = = 126 n(IV) = n(T) - n(S T) = = 72

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 36 of 93 Example Basic Regions and Counting The number of presidents with exactly one business degree corresponds to the shaded region. Adding the number of people in the two shaded basic regions gives = 198.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 37 of 93 Summary Section 5.3  The universal set can be divided up into a number of non-overlapping regions called basic regions. These regions can be used to determine the number of elements in a variety of subsets of the universal set.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 38 of The Multiplication Principle 1.Tree Diagram 2.Multiplication Principle 3.Generalized Multiplication Principle

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 39 of 93 Tree Diagram A tree diagram is a graph showing possibilities for an event having choices along the way. Suppose a rat in a maze starts at point A. There are five possible routes to get from point A to point B and 3 possible routes to get from point B to the final destination, point C. Represent the possible choices using a tree diagram.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 40 of 93 Tree Diagram (2) Possible paths: 1a, 1b, 1c 2a, 2b, 2c 3a, 3b, 3c 4a, 4b, 4c 5a, 5b, 5c Total possible paths = 15

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 41 of 93 Multiplication Principle Multiplication PrincipleSuppose that a task is composed of two consecutive operations. If operation 1 can be performed in m ways and, for each of these, operation 2 can be performed in n ways, then the complete task can be performed in m  n ways.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 42 of 93 Example Multiplication Principle Use the multiplication principle to determine the number of different paths a rat can take going from point A to point C if there are five possible routes to get from point A to point B and 3 possible routes to get from point B to point C. There are 5 possible routes for task 1 and 3 possible routes for task 2 so there are 5  3 = 15 possible routes. This agrees with the tree diagram drawn previously.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 43 of 93 Generalized Multiplication Principle Generalized Multiplication Principle Suppose that a task is composed of t operations performed consecutively. Suppose operation 1 can be performed in m 1 ways; for each of these, operation 2 can be performed in m 2 ways; for each of these, operation 3 can be performed in m 3 ways; and so forth. Then the complete task can be performed in m 1  m 2  m 3 …m t ways.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 44 of 93 Example Generalized Principle A corporation has a board of directors consisting of 10 members. The board must select from among its members a chairperson, vice chairperson, and secretary. In how many ways can this be done?

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 45 of 93 Example Generalized Principle (2) The operations are: 1. Select chairperson - there are 10 ways (people) to do this. 2. Select a vice chairperson - there are 9 ways (9 people left after chairperson is chosen) to do this. 3. Select a secretary - there are 8 ways to do this. Total number of ways to complete task is 10  9  8 = 720 ways.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 46 of 93 Summary Section 5.4  The multiplication principle states that the number of ways a sequence of several independent operations can be performed is the product of the number of ways each individual operation can be performed.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 47 of Permutations and Combinations 1.Permutation 2.Combination 3.Formula for P(n,r) 4.Factorial 5.Formula for C(n,r)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 48 of 93 Permutation Given a set of n objects, a permutation of n objects taken r at a time is an arrangement of r of the n objects in a specific order. The notation for a permutation is P(n,r) = the number of permutations of n objects taken r at a time.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 49 of 93 Example Permutation How many words (strings of letters) of two distinct letters can be formed from the letters {a, b, c}? The number of objects is n = 3. The number of objects taken at a time is r = 2. The possibilities are ab, ac, ba, bc, ca and cb. P(3,2) = 6. Note: the word ab is different from the word ba.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 50 of 93 Combination Given a set of n objects, a combination of n objects taken r at a time is a selection of r of the n objects with order disregarded. The notation for a combination is C(n,r) = the number of combinations of n objects taken r at a time.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 51 of 93 Example Combination How many two-member teams can be formed from a group that has three members a, b, and c? The number of objects is n = 3. The number of objects taken at a time is r = 2. The possibilities are ab, ac and bc. C(3,2) = 3. Note: the team ab is the same as the team ba.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 52 of 93 Formula for P(n,r) P(n,1) = n P(n,2) = n(n - 1) P(n,3) = n(n - 1)(n - 2) P(n,r) = n(n - 1)(n - 2)  …  (n - r + 1) r factors

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 53 of 93 Example Formula for P(n,r) Eight horses are entered in a race in which a first, second, and third prize will be awarded. Assuming no ties, how many different outcomes are possible? The number of objects is n = 8. The number of objects taken at a time is r = 3. The number of outcomes is P(8,3) = 8  7  6 = 336.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 54 of 93 Factorial 1! = 1 2! = 2  1 = 2 3! = 3  2  1 = 6 4! = 4  3  2  1 = 24 n! = n(n - 1)(n - 2)  …  (1) Note: n! is read as “n factorial.”

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 55 of 93 Formula for C(n,r)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 56 of 93 Example Formula for C(n,r) The board of directors of a corporation has 10 members. In how many ways can they choose a committee of 3 board members to negotiate a merger? The number of objects is n = 10. The number of objects taken at a time is r = 3. Number of possible committees is

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 57 of 93 Summary Section 5.5  The number of ordered arrangements, each called a permutation, of n objects taken r at a time is P(n,r) = n(n - 1)(n - 2)  …  (n - r + 1).  The number of unordered arrangements, each called a combination, of n objects taken r at a time is

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 58 of Further Counting Problems 1.Tossing Coins 2.Routes 3.Balls Drawn From an Urn

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 59 of 93 Example Tossing Coins An experiment consists of tossing a coin 10 times and observing the sequence of heads and tails. a. How many different outcomes are possible? b. How many different outcomes have exactly two heads? c. How many different outcomes have at most two heads? d. How many different outcomes have at least two heads?

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 60 of 93 Example Tossing Coins (a) A possible outcome is H T H T T T H T H T where H is heads and T is tails. Each coin has two possible outcomes. By the generalized multiplication principle, the total number of possible outcomes is 2  2  2  2  2  2  2  2  2  2 = 2 10 = 1024.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 61 of 93 Example Tossing Coins (b) A possible outcome with 2 heads is H T H T T T T T T T. The 2 heads must be placed in 2 of the 10 possible positions. The number of outcomes with 2 heads is

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 62 of 93 Example Tossing Coins (c) At most 2 heads means there can be 0 heads or 1 head or 2 heads. There is only 1 possible outcome with no heads and that is if all 10 coins are tails. There are C(10,1) = 10 possible outcomes with 1 head. There are C(10,2) = 45 possible outcomes with 2 heads. Therefore, there are = 56 possible outcomes with at most two heads.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 63 of 93 Example Tossing Coins (d) At least 2 heads means there can not be 0 heads or 1 head. There are = 11 possible outcomes with 0 or 1 head. There are 1024 possible outcomes total. So, there are = 1013 possible outcomes with at least 2 heads.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 64 of 93 Example Routes A tourist in a city wants to walk from point A to point B shown in the maps below. What is the total number of routes (with no backtracking) from A to B?

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 65 of 93 Example Routes (2) If S is walking a block south and E is walking a block east, the two possible routes shown in the maps could be designated as SSEEESE and ESESEES.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 66 of 93 Example Routes (3) All routes can be designated as a string of 7 letters, 3 of which will be S and 4 E. Selecting a route is the same as selecting where in the string the 3 S’s will be placed. Therefore the total number of possible routes is

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 67 of 93 Example Balls Drawn From an Urn An urn contains 25 numbered balls, of which 15 are red and 10 are white. A sample of 5 balls is to be selected. a. How many different samples are possible? b. How many different samples contain all red balls? c. How many samples contain 3 red balls and 2 white balls?

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 68 of 93 Example Balls Drawn From an Urn (a) A sample is just an unordered selection of 5 balls out of 25.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 69 of 93 Example Balls Drawn From an Urn (b) To form a sample of all red balls we must select 5 balls from the 15 red ones.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 70 of 93 Example Balls Drawn From an Urn (c) To form the sample with 3 red balls and 2 white balls, we must Operation 1: select 3 red balls from 15 red balls, Operation 2: select 2 white balls from 10 white balls. Using the multiplication principle, this gives

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 71 of The Binomial Theorem 1.Formulas for C(n,r) 2.Binominal Coefficient 3.Binomial Theorem 4.Number of Subsets

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 72 of 93 Formulas for C(n,r)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 73 of 93 Example Routes Work the route problem covered previously by selecting where in the string of length 7 the 4 E’s will be placed instead of the 3 S’s. Therefore the total number of possible routes is Notice that C(7,4) = C (7,3).

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 74 of 93 Binominal Coefficient Another notation for C(n,r) is. is called a binominal coefficient.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 75 of 93 Example Binominal Coefficient

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 76 of 93 Binominal Theorem Binomial Theorem

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 77 of 93 Example Binominal Theorem Expand (x + y ) 5. (x + y ) 5 = x 5 + 5x 4 y + 10x 3 y x 2 y 3 + 5xy 4 + y 5

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 78 of 93 Number of Subsets A set with n elements has 2 n subsets.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 79 of 93 Example Number of Subsets A pizza parlor offers a plain cheese pizza to which any number of six possible toppings can be added. How many different pizzas can be ordered? Ordering a pizza requires selecting a subset of the 6 possible toppings. There are 2 6 = 64 different pizzas.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 80 of 93 Summary Section Part 1  C(n,r) is also denoted by.  The formula C(n,r) = C(n,n - r) simplifies the computation of C(n,r) when r is greater than n/2.  The binomial theorem states that

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 81 of 93 Summary Section Part 2  A set with n elements has 2 n subsets.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 82 of Multinomial Coefficients and Partitions 1.Ordered Partition 2.Number of Ordered Partitions 3.Unordered Partition 4.Number of Unordered Partitions

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 83 of 93 Ordered Partition Let S be a set of n elements. An ordered partition of S of type (n 1,n 2,…,n m ) is a decomposition of S into m subsets (given in a specific order) S 1, S 2,…,S m, where no two of these intersect and where n(S 1 ) = n 1, n(S 2 ) = n 2, …, n(S m ) = n m and n 1 + n 2 +… + n m = n.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 84 of 93 List all ordered partitions of S = {a, b, c, d} of type (1,1,2). ({a},{b},{c,d}) ({a},{c},{b,d}) ({a},{d},{b,c}) ({b},{a},{c,d}) ({b},{c},{a,d}) ({b},{d},{a,c}) ({c},{a},{b,d}) ({c},{b},{a,d}) ({c},{d},{a,b}) ({d},{a},{b,c}) ({d},{b},{a,c}) ({d},{c},{a,b}) Example Ordered Partition

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 85 of 93 Number of Ordered Partitions The number of ordered partition of type (n 1,n 2,…,n m ) for a set with n elements is The above is called the multinomial coefficient.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 86 of 93 A work crew consists of 12 construction workers, all having the same skills. A construction job requires 4 welders, 3 concrete workers, 3 heavy equipment operators, and 2 bricklayers. In how many ways can the 12 workers be assigned to the required tasks? Example Ordered Partition

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 87 of 93 Each assignment of jobs corresponds to an ordered partition of the type (4,3,3,2). The number of ordered partitions is Example Ordered Partition (2)

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 88 of 93 Unordered Partition Let S be a set of n elements. An unordered partition of S of type (n 1,n 2,…,n m ) is a decomposition of S into m subsets S 1, S 2,…,S m, where no two of these intersect and where n(S 1 ) = n 1, n(S 2 ) = n 2, …, n(S m ) = n m and n 1 + n 2 +… + n m = n.

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 89 of 93 List all unordered partitions of S = {a, b, c, d} of type (1,1,2). ({a},{b},{c,d}) ({a},{c},{b,d}) ({a},{d},{b,c}) ({b},{c},{a,d}) ({b},{d},{a,c}) ({c},{d},{a,b}) Example Unordered Partition

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 90 of 93 Number of Unordered Partitions The number of unordered partitions of type (n 1,n 1,…,n 1 ) for a set with n elements is

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 91 of 93 A work crew consists of 12 construction workers, all having the same skills. In how many ways can the workers be divided into 4 groups of 3? Example Unordered Partition

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 92 of 93 Summary Section Part 1  Let S be a set of n elements, and suppose that n = n 1 + n 2 +… + n m where each number in the sum is a positive integer. Then the number of ordered partitions of S into subsets of sizes n 1, n 2, …, n m is

Finite Mathematics & Its Applications, 10/e by Goldstein/Schneider/SiegelCopyright © 2010 Pearson Education, Inc. 93 of 93 Summary Section Part 2  Let S be a set of n elements, where n = m  r. Then the number of unordered partitions of S into m subsets of size r is