Arrangements and Selections With Repetitions How many ways

  • Slides: 7
Download presentation
Arrangements and Selections With Repetitions How many ways to arrange the six letters b,

Arrangements and Selections With Repetitions How many ways to arrange the six letters b, a, n, a ? Six places: __ __ __ places to put the a’s: __ a, a, __ __ a places to put the n’s: n, a, a, __ n, a places left to put the b: n, a, a, b, n, a Total: 4/2/03 Tucker, Section 5. 3 1

General Formula The number of arrangements of n objects chosen from m types, with

General Formula The number of arrangements of n objects chosen from m types, with rj of type j, where , is P(n; r 1, …, rm) = = 0! =1 4/2/03 Tucker, Section 5. 3 2

Alternate Proof Think of b, a, n, a as 6 different letters, so 6!

Alternate Proof Think of b, a, n, a as 6 different letters, so 6! ways to arrange them. But then, it doesn’t matter which of the three a’s comes in which order, so have to divide by 3!. Similarly, have to divide by 2! for the two n’s. And lastly, have to divide by 1! for the b, giving: This generalizes to the same formula of P(n; r 1, …, rm) = 4/2/03 Tucker, Section 5. 3 3

Selections with Repetition How many ways are there to select 6 pieces of fruit

Selections with Repetition How many ways are there to select 6 pieces of fruit if the choices are apples, oranges, and bananas? XX X 2 apples, 3 oranges, 1 banana XXXXX X 5 apples, no oranges, 1 banana XXXX X X 4 apples, 1 orange, 1 banana Think of 6 X’s split in 2 (one less than the number of types) places. So we need to choose 6 out of 8 possible places to put the X’s. Answer: 4/2/03 Tucker, Section 5. 3 4

Selections with Repetition General Formula The number of selections with repetition of r objects

Selections with Repetition General Formula The number of selections with repetition of r objects chosen from n types of objects is C(r + n – 1, r). Proof: XXX… X… X There are r X’s, and we have to choose where to place n – 1 slashes to group them into the n different types, and there are C(r + n – 1, r) ways to do this. 4/2/03 Tucker, Section 5. 3 5

Example How many ways are there to pick exactly 10 balls from a (large*)

Example How many ways are there to pick exactly 10 balls from a (large*) pile of red, blue and purple balls, if there must be at least 5 red balls? First set aside the 5 red balls you need (only 1 way to do this). Then pick 5 more balls from the three colors: C(5 + 3 – 1, 5) = 21 ways to do this. *I. e. at least 10 of each color. 4/2/03 Tucker, Section 5. 3 6

Example How many ways are there to pick exactly 10 balls from a large

Example How many ways are there to pick exactly 10 balls from a large pile of red, blue and purple balls, if there must be at most 5 red balls? Notice that ‘at most 5 red balls’ is the complement of ‘at least 6 red balls’, so if we count the total number of ways to pick 10 balls, and then subtract the number of way to get at least 6 red balls, this will give us the number of ways to get at most 5 balls. Pick 10 balls: C(10 + 3 – 1, 10) = 66 ways total. Pick at least 6 red balls (ie set aside 6 red balls, then pick 4): C(4 + 3 – 1, 4) = 15. Answer: 66 – 15 = 51 ways to choose at most 5 red balls. 4/2/03 Tucker, Section 5. 3 7