• No results found

MATH 106 Lecture 2 Permutations & Combinations

N/A
N/A
Protected

Academic year: 2021

Share "MATH 106 Lecture 2 Permutations & Combinations"

Copied!
11
0
0

Loading.... (view fulltext now)

Full text

(1)

1 1

MATH 106

Lecture 2

Permutations & Combinations

© m j winter FS2004

2

Player Numbers

Suppose double digits are not allowed? You have one of each the numbers; you select two and iron them on. How many choices have you for one shirt?

6 * 5 = 30

Shirts have 2-digit numbers Six possible digits: 0, 1, 2, 3, 4, 5 How many different numbers?

6 possibilities for first digit; 6 for second 6 6 = 36

(2)

3

Permutations - Order Matters

The number of ways one can select 2 items from a set of 6, with order mattering, is called

the number of permutations of 2 items selected from 6 6 2

6×5 = 30 = P

Example: The final night of the Folklore Festival will feature 3 different bands. There are 7 bands to choose from. How many different programsare possible?

4

Calculating nPr

Solution to band problem: 7P3= 7·6·5 = 210

This is not the same as asking “How many ways are there to choose 3 bands from 7?”

Write out expressions for

52P4 7P6 = 52 ·51 ·50 ·49 = 7 ·6 ·5 ·4 ·3 ·2 = 7 ·6 ·5 ·4 ·3 ·2 ·1 = 7! Number of factors Starting factor

(3)

3 5 20 3 7 6 5 7 7 6 5 4 52 51 50 49 52 52 51 50 49 48 20 4 3 2 1 4 3 2 1 48 0 1 4 8 8 2 9 1 ⋅ ⋅ ⋅ ⋅ ⋅ = = ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ = = = ⋅ ⋅ ⋅ ⋅ ⋅ = ⋅ ⋅ ⋅ ! ! ! ! ! ! ! ? P

Factorial Notation for n

P

r

20! 17! = = − ! ( )! n r n P n r 7 3 52 4

P

P

=

=

Formula for nPr: 6

On your calculator

7

P

3

• TI-83 7- MATH-PRB- nPr-3- ENTER

(4)

7

Combinations - Order Does Not Matter

• The Classical Studies Department has 7 faculty members. Three must attend the graduation

ceremonies. How many different groups of 3 can be chosen?

• If order mattered, the answer would be 7·6·5 = 210 • Let’s look at one set of three professors: A, B, C:

AB C ACB B CA B AC CAB CB A

• Why are there 6 listings for the same set of 3 profs?

There are 3! = 6 possible arrangements of three objects.

8

n

P

n

There are 3 2 1 = 3! arrangements of 3 objects.

Using the nPr notation, from a set of 3 objects we are choosing 3. 3! 3! 3! 3 3 = 3! (3 3)! 0! 1

P

∗ ∗ = = = −

(5)

5 9

Combinations: 7

C

3

• In our list of 210 sets of 3 professors, with order mattering, each set of three profs is counted 3! = 6 times. The number of distinct combinationsof 3 professors is 7 3 6 3 35 3 3 2 1 6 7 3 7 3 7 7 6 5 210 7 3 ⋅ ⋅ − = = = = = = ⋅ ⋅ ! ( )! ! ! P P

C

7

C

3is the number combinations of 3 objects chosen

from a set of 7. “Of seven, take three”

10

Warning

The “combination,” or sequence of three numbers, on your combination lock is not a combination ! Order matters!

(6)

11

n

C

r

• Factorial formula is:

• Practice: = = − ! ! !( )! n C n r nPrr r n r 8 2 8 6 10 4 C C C 12

n

C

r

(of n, pick r)

• Factorial formula is:

• Practice: = − ! !( )! n C n r r n r 8 8 7 8 7 28 8 2 2 6 2 1 2 1 8 7 28 8 6 5 4 3 2 1 6 5 4 3 2 1 6 5 4 3 6 5 4 6 2 1 10 9 8 7 210 10 4 4 3 2 1 3 ⋅ ⋅ ⋅ = = = = ⋅ ⋅ ⋅ ⋅ ⋅ = = ⋅ ⋅ ⋅ ⋅ ⋅ = ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ ⋅ = ⋅ ⋅ ⋅ ⋅ ! ! ! C C C

(7)

7 13

What about x

P

3 and x

C

3?

3

(

1)(

2)

x

P

=

x x

x

3

(

1)(

2)

3!

x

x x

x

C

=

14

Application to poker: Full House

In how many different ways can one have a full house with sixes over nines?

ways to have 3 sixes ways to have 2 nines = 4·6 = 24 4

C

3 4

C

2 =

(8)

15

How many ways to have a Full House?

1. How many ways to have a full house with “sixes over”?

There are 24 ways to have 6’s over 9’s.

24*12= 288 ways to have a full house with 6’s over. 2. How many ways to have a full house?

Could have 7’s over, Queens over, etc..

13*24*12= 3744 ways to have a full house

Could also have 6’s over 2’s, 6’s over 3’s, etc 12 possibilities for the pair

13 possibilities for the triplet

16

Stock Market Example

Suppose 12 stocks have been traded, and

7increased, 3decreased, 2stayed the same. In how many ways could this happen?

Think: 3 separate selections: “three-box problem”

Of the 12, 7 increased Of the remaining 5, 3 decreased Of the remaining 2, 2 stayed the same 12

C

7 5

C

3 2

C

2 =1 1 12! 1 7 2! 5 7920 7!3!2 ! !5!3!2! = !=

(9)

9 17

How many 3-digit numbers can be made

using only 2 different digits?

Number must have 2 of one digit, one of another ways to select ways to select

repeated digit single digit

10 9 = 90 Once selection is made, how many arrangements are possible?

Suppose we’d selected: 4 4 5 How many places to put the “5”?

How many ways to choose 1 of 3 possible locations? 3C1= 3 90selections, 3arrangements for each: 90 * 3 = 270

18

There are many ways to do these problems!

• Some are more complicated that others. • Sometimes there are shortcuts.

(10)

19 B O S S BOSS BOSS BSOS BSOS BSSO BSSO OBSS OBSS OSBS OSBS OSSB OSSB SSBO SSOB SBOS SBSO SOBS SOSB SSBO SSOB SBOS SBSO SOBS SOSB

Rearrangements with repeated letters; example BOSS

4! arrangements if S and S are distinct

If not, cross out repeats There are 2! = 2 rearrangements of S and S Every distinct arrangement had been counted 2 times. Divide by 2.

There are 4!/2! = 12 distinct

rearrangements of the letters BOSS

20

STRE

SS

6!=720

S

TRE

S

S

S

TRES

S

S TRE

S S

….

The number of distinct

rearrangements of STRESS is

How many ways can one rearrange

S

, S, and

S

?

3! = 6 How many distinct arrangements

if

S

,

S

, andSare regarded as distinct letters?

What if

S

,

S

, and Sare not regarded as distinct letters? If all the fonts were changed to Arial, how many of the 720 would look like STRESS?

720

6!

=

= 120

(11)

11 21

Rearrangements of sets containing repeats

• STRESS • STRESSED • SUPERSTRESSED 6! 120 3!= 8! 60 3!2!= 13! 21621600 4!3!2!= STRESSED 8! If we could distinguish the E's,

3!

References

Related documents

Key words: Coupled Problems, Multiphysics, Piezoelectric, Energy Harvesting, Finite Integration Technique, Cell Method.. A detailed analysis and optimization of

Objective: To evaluate and compare the clinical outcomes and development of children born between obstructive azoospermia (OA) couples and nonobstructive azoospermia couples (NOA)

Clearly such a RDEU functional is concave and one may wonder if in the more tractable framework of random variables, strong risk aversion would not be equivalent to convexity

From these results, we find that public leadership and private leadership can be payoff dominant and risk dominant to private leadership and public leadership, depending on the

Note that we are plotting BLBM 1 to line 1 in reverse, because we are beginning at point 1 going to BLBM #1, instead of beginning from BLBM # 1 to point “1” should be done in

• the proposed garage would be located in an area away from the utility servicing on-site. It should be noted that the site plan provided by the applicant was based upon a 1998 Site

To establish if statistical persistence or anti- persistence was present in the treadmill and stairmill climbing stride time, stride length, and stride speed time series, one-

In the Navigator pane, right-click the dvs-Lab distributed switch and select Settings > Edit Settings.. In the Edit Settings dialog box, select Advanced on