chapter 5 sets & counting

101
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Chapter 5 Sets and Counting

Upload: sarkissk

Post on 11-May-2015

160 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Chapter 5

Sets and Counting

Page 2: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

5.1 Sets5.2 A Fundamental Principle of Counting5.3 Venn Diagrams and Counting5.4 The Multiplication Principle5.5 Permutations and Combinations5.6 Further Counting Techniques5.7 The Binomial Theorem5.8 Multinomial Coefficients and Partitions

Page 3: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.1

Sets

Page 4: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Sets and Elements

2. Union and Intersection

3. Subset and Empty Set

4. Universal Set and Complement

Page 5: Chapter 5   sets & counting

Slide 5Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 6: Chapter 5   sets & counting

Slide 6Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Sets and Elements

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 = a2} is a set with infinitely many elements.

Page 7: Chapter 5   sets & counting

Slide 7Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Sets and Elements (2)

Let A = {years from 1998 to 2011 in which unemployment is at least 5%}.

Let B = {years from 1998 to 2011 in which inflation is at least 3%}.

Page 8: Chapter 5   sets & counting

Slide 8Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Sets and Elements (3)

Using the table, the two sets are

A = {2002, 2003, 2004, 2005, 2008, 2009, 2010, 2011} and

B = {2000, 2005, 2006, 2008, 2011}

Page 9: Chapter 5   sets & counting

Slide 9Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 10: Chapter 5   sets & counting

Slide 10Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Union and Intersection

Let A = {2002, 2003, 2004, 2005, 2008, 2009, 2010, 2011} and B = {2000, 2005, 2006, 2008, 2011} from the previous example.

Find

A B

A B

= {2000, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011}

= {2005, 2008, 2011}

Page 11: Chapter 5   sets & counting

Slide 11Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 12: Chapter 5   sets & counting

Slide 12Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Subset and Empty Set

List all possible subsets of {a, b, c}.

{a}, {b}, and {c}

{a, b}, {a, c}, and {b, c}

{a, b, c}

Page 13: Chapter 5   sets & counting

Slide 13Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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'.

Page 14: Chapter 5   sets & counting

Slide 14Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Universal Set and Complement

Let U = {a,b,c,d,e,f,g}, S = {a,b,c} and T = {a,c,d}.Find

S

T

S T

= {d,e,f,g}

= {b,e,f,g}

= {b,d,e,f,g}

Page 15: Chapter 5   sets & counting

Slide 15Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 5.1 - Part 1

Page 16: Chapter 5   sets & counting

Slide 16Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 5.1 - Part 2

Page 17: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.2

A Fundamental Principle of Counting

Page 18: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Number of Elements in A

2. Inclusion-Exclusion Principle

3. Venn Diagram

4. De Morgan's Laws

Page 19: Chapter 5   sets & counting

Slide 19Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 20: Chapter 5   sets & counting

Slide 20Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Inclusion-Exclusion Principle

Inclusion-Exclusion Principle

Let S and T be sets. Then( ) ( ) ( ) ( ).n S T n S n T n S T

Page 21: Chapter 5   sets & counting

Slide 21Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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?

Page 22: Chapter 5   sets & counting

Slide 22Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 =

S T =

{presidents with degrees (of any sort) in business}

{presidents with both undergraduate and graduate degrees in business}

Page 23: Chapter 5   sets & counting

Slide 23Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Inclusion-Exclusion Principle (3)

n(S) = 238

n(T) = 184

n(S T) = 238 + 184 310 = 112

n(S T) = 310

310 = 238 + 184 n(S T)

n(S T) = n(S) + n(T) n(S T)

Page 24: Chapter 5   sets & counting

Slide 24Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 25: Chapter 5   sets & counting

Slide 25Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 '.

Page 26: Chapter 5   sets & counting

Slide 26Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Venn Diagram (2)

Page 27: Chapter 5   sets & counting

Slide 27Copyright © 2014, 2010, 2007 Pearson Education, Inc.

De Morgan's Laws

De Morgan's Laws Let S and T be sets. Then

(S T )' = S' T',

(S T )' = S' T'

Page 28: Chapter 5   sets & counting

Slide 28Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example De Morgan's Laws

Verify (S T )' = S' T ' using Venn diagrams.

Page 29: Chapter 5   sets & counting

Slide 29Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example De Morgan's Laws (2)

Page 30: Chapter 5   sets & counting

Slide 30Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example De Morgan's Laws (3)

Page 31: Chapter 5   sets & counting

Slide 31Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 5.2 - Part 1

Page 32: Chapter 5   sets & counting

Slide 32Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 5.2 - Part 2

Page 33: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.3

Venn Diagrams and Counting

Page 34: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Basic Regions

2. Basic Regions and Counting

Page 35: Chapter 5   sets & counting

Slide 35Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Basic Regions

Each Venn diagram divides the universal set into non-overlapping regions called basic regions.

Page 36: Chapter 5   sets & counting

Slide 36Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Basic Regions

Show the basic regions for the Venn diagram with two sets and with three sets.

Page 37: Chapter 5   sets & counting

Slide 37Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 (graduate or undergraduate) in business.

Page 38: Chapter 5   sets & counting

Slide 38Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Basic Regions and Counting

n(I) = n(U) - n(S T)

n(III) = n(S T) = 112

n(II) = n(S) - n(S T)

= 184 - 112 = 72n(IV) = n(T) - n(S T)

= 238 - 112 = 126

= 500 - 310 = 190

Page 39: Chapter 5   sets & counting

Slide 39Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 126 + 72 = 198.

Page 40: Chapter 5   sets & counting

Slide 40Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 41: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.4

The Multiplication Principle

Page 42: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Tree Diagram

2. Multiplication Principle

3. Generalized Multiplication Principle

Page 43: Chapter 5   sets & counting

Slide 43Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 44: Chapter 5   sets & counting

Slide 44Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Tree Diagram (2)

Possible paths:

1a, 1b, 1c

2a, 2b, 2c

3a, 3b, 3c

4a, 4b, 4c

5a, 5b, 5c

Total possible paths = 15

Page 45: Chapter 5   sets & counting

Slide 45Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Multiplication Principle

Multiplication Principle: Suppose that a task is composed of two consecutive choices. If choice 1 can be performed in m ways and, for each of these, choice 2 can be performed in n ways, then the complete task can be performed in m n ways.

Page 46: Chapter 5   sets & counting

Slide 46Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 53 = 15 possible routes. This agrees with the tree diagram drawn previously.

Page 47: Chapter 5   sets & counting

Slide 47Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Generalized Multiplication Principle

Generalized Multiplication Principle: Suppose that a task consists of t choices performed consecutively. Suppose that choice 1 can be performed in m1 ways; for each of these, choice 2 in m2 ways; for

each of these, choice 3 in m3 ways; and so forth.

Then the task can be performed in

m1 m2 m3…mt ways.

Page 48: Chapter 5   sets & counting

Slide 48Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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?

Page 49: Chapter 5   sets & counting

Slide 49Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 1098 = 720 ways.

Page 50: Chapter 5   sets & counting

Slide 50Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 51: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.5

Permutations and Combinations

Page 52: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Permutation2. Combination3. Formula for P(n,r)4. Factorial5. Formula for C(n,r)

Page 53: Chapter 5   sets & counting

Slide 53Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 54: Chapter 5   sets & counting

Slide 54Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 55: Chapter 5   sets & counting

Slide 55Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 56: Chapter 5   sets & counting

Slide 56Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 57: Chapter 5   sets & counting

Slide 57Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

Page 58: Chapter 5   sets & counting

Slide 58Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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) = 876 = 336.

Page 59: Chapter 5   sets & counting

Slide 59Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Factorial

1! = 12! = 21 = 23! = 321 = 64! = 4321 = 24n! = n(n - 1)(n - 2) …(1)

Note: n! is read as “n factorial.”

Page 60: Chapter 5   sets & counting

Slide 60Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Formula for C(n,r)

, 1 1,

! 1 1

P n r n n n rC n r

r r r

Page 61: Chapter 5   sets & counting

Slide 61Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

10 9 810,3 120.

3 2 1C

Page 62: Chapter 5   sets & counting

Slide 62Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

, 1 1, .

! 1 1

P n r n n n rC n r

r r r

Page 63: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.6

Further Counting Problems

Page 64: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Tossing Coins2. Routes3. Balls Drawn From an

Urn

Page 65: Chapter 5   sets & counting

Slide 65Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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?

Page 66: Chapter 5   sets & counting

Slide 66Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

2222222222 = 210 = 1024.

Page 67: Chapter 5   sets & counting

Slide 67Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

10 910,2 45.

2 1C

Page 68: Chapter 5   sets & counting

Slide 68Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 1 + 10 + 45 = 56 possible outcomes with at most two heads.

Page 69: Chapter 5   sets & counting

Slide 69Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Tossing Coins (d)

At least 2 heads means there can not be 0 heads or 1 head.

There are 1 + 10 = 11 possible outcomes with 0 or 1 head.

There are 1024 possible outcomes total.

So, there are 1024 - 11 = 1013 possible outcomes with at least 2 heads.

Page 70: Chapter 5   sets & counting

Slide 70Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Routes Through a City

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?

Page 71: Chapter 5   sets & counting

Slide 71Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

Page 72: Chapter 5   sets & counting

Slide 72Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 from A to B is

7 6 57,3 35.

3 2 1C

Page 73: Chapter 5   sets & counting

Slide 73Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Selecting Balls 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?

Page 74: Chapter 5   sets & counting

Slide 74Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Balls Drawn From an Urn (a)

A sample is just an unordered selection of 5 balls out of 25.

25 24 23 22 2125,5 53,130

5 4 3 2 1C

Page 75: Chapter 5   sets & counting

Slide 75Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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.

15 14 13 12 1115,5 3,003

5 4 3 2 1C

Page 76: Chapter 5   sets & counting

Slide 76Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

15 14 13 10 915,3 10,2 20,475.

3 2 1 2 1C C

Page 77: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.7

The Binomial Theorem

Page 78: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Formulas for C(n,r)2. Binominal Coefficient3. Binomial Theorem4. Number of Subsets

Page 79: Chapter 5   sets & counting

Slide 79Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Formulas for C(n,r)

, 1 1,

! 1 1

!,

! !

, ,

P n r n n n rC n r

r r r

nC n r

r n r

C n r C n n r

Page 80: Chapter 5   sets & counting

Slide 80Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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

7 6 5 47,4 35.

4 3 2 1C

Notice that C(7,4) = C (7,3).

Page 81: Chapter 5   sets & counting

Slide 81Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Binominal Coefficient

Another notation for C(n,r) is . n

r

n

r

is called a binominal coefficient.

Page 82: Chapter 5   sets & counting

Slide 82Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Binominal Coefficient

Page 83: Chapter 5   sets & counting

Slide 83Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Binominal Theorem

Binomial Theorem

1 2 2

1

0 1 2

1

n n n n

n n

n n n

n n

n n

x y x x y x y

xy y

Page 84: Chapter 5   sets & counting

Slide 84Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Binominal Theorem

Expand (x + y )5.

(x + y )5 = x5 + 5x4y + 10x3y2 + 10x2y3 + 5xy4 + y5

5 5 5 5 5 5

0 1 2 3 4 51 5 10 10 5 1

Page 85: Chapter 5   sets & counting

Slide 85Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Number of Subsets

A set with n elements has 2n subsets.

Page 86: Chapter 5   sets & counting

Slide 86Copyright © 2014, 2010, 2007 Pearson Education, Inc.

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 26 = 64 different pizzas.

Counting Pizza Options:

Page 87: Chapter 5   sets & counting

Slide 87Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Summary Section 5.7 - 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

n

r

1 2 2

1

0 1 2

1.

n n n n

n n

n n n

n n

n n

x y x x y x y

xy y

Page 88: Chapter 5   sets & counting

Slide 88Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Summary Section 5.7 - Part 2

A set with n elements has 2n subsets.

Page 89: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Section 5.8

Multinomial Coefficients and

Partitions

Page 90: Chapter 5   sets & counting

Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Outline

1. Ordered Partition

2. Number of Ordered Partitions

3. Unordered Partition

4. Number of Unordered Partitions

Page 91: Chapter 5   sets & counting

Slide 91Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Ordered Partition

Let S be a set of n elements. An ordered partition of S of type (n1,n2,…,nm) is a decomposition of S into m subsets (given in a specific order) S1, S2,…,Sm, where no two of these intersect and where n(S1) = n1, n(S2) = n2, … , n(Sm) = nm and n1 + n2 +… + nm = n.

Page 92: Chapter 5   sets & counting

Slide 92Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Ordered Partition

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})

Page 93: Chapter 5   sets & counting

Slide 93Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Number of Ordered Partitions

The number of ordered partition of type (n1,n2,…,nm) for a set with n elements is

1 2 1 2

!.

, , , ! ! !m m

n nn n n n n n

The above is called the multinomial coefficient.

Page 94: Chapter 5   sets & counting

Slide 94Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Ordered Partition

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?

Page 95: Chapter 5   sets & counting

Slide 95Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Ordered Partition (2)

Each assignment of jobs corresponds to an ordered partition of the type (4,3,3,2).

The number of ordered partitions is

12 12!277,200.

4,3,3,2 4!3!3!2!

Page 96: Chapter 5   sets & counting

Slide 96Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Unordered Partition

Let S be a set of n elements. An unordered partition of S of type (n1,n2,…,nm) is a decomposition of S into m subsets S1, S2,…,Sm, where no two of these intersect and where n(S1) = n1, n(S2) = n2, … , n(Sm) = nm and n1 + n2 +… + nm = n.

Page 97: Chapter 5   sets & counting

Slide 97Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Unordered Partition

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})

Page 98: Chapter 5   sets & counting

Slide 98Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Number of Unordered Partitions

The number of unordered partitions of type (n1,n1,…,n1) for a set with n elements is

1

1 !

! !m

n

m n

Page 99: Chapter 5   sets & counting

Slide 99Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Example Unordered Partition

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?

4

1 12!15,400.

4! 3!

Page 100: Chapter 5   sets & counting

Slide 100Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Summary Section 5.8 - Part 1

Let S be a set of n elements, and suppose that n = n1 + n2 +… + nm where each number in the sum is a positive integer. Then the number of ordered partitions of S into subsets of sizes n1, n2, …, nm

is

1 2 1 2

!, , , ! ! !m m

n nn n n n n n

Page 101: Chapter 5   sets & counting

Slide 101Copyright © 2014, 2010, 2007 Pearson Education, Inc.

Summary Section 5.8 - 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

1 !

! !m

n

m r