An introduction to permutations Slideshow 60, Mathematics Mr Richard Sasaki, Room 307
Objectives Understand the meaning of a permutation Recall how to calculate permutations with repetition (replacement) Learn how to calculate permutations without repetition (without replacement)
Permutations What is a permutation? A permutation is an arrangement of objects (numbers, letters, words etc…) in a specific order. Let’s list the possible ways we can pick two numbers from 1, 2 and 3 where repetition is okay. If 𝑛 is the # of possibilities and 𝑟 is the # of times we choose, there are… 1, 1 2, 1 3, 1 1, 2 2, 2 3, 2 1, 3 2, 3 3, 3 𝑛 𝑟 permutations.
Permutations with repetition We have seen this before. If we use this formula, we can easily calculate the number of permutations possible. Example Three meetings will take place next week and are possible to happen on any day of the week. It is possible for one, two or all three meetings to take place on a single day. How many possible ways are there for the meetings to take place? 𝑛=7, 𝑟=3, 𝑛 𝑟 ⇒ 7 3 =343 ways
36 20 6 8 36 4 81 Months have differing numbers of days. 365.
Permutations without repetition So, permutations with repetition are simple! But without repetition (where a value can’t appear twice) is more complicated. Let’s see the difference. Example (repetition) Example (without repetition) A four digit number is made where zero is allowed in all four positions. How many permutations are there? ? ? ? ? 0 ~ 9; four times 𝑛 𝑟 = 10 4 10 possible 9 possible 8 possible 7 possible =10,000 =10∙9∙8∙7 =5040
10∙9∙8∙7…? Factorials! =10∙9∙8∙7∙6∙5∙4∙3∙2∙1 =10! 10! ___________ Does this pattern remind you of anything we learned briefly at the start of this year? =10∙9∙8∙7∙6∙5∙4∙3∙2∙1 =10! How can we represent 10∙9∙8∙7 in terms of factorials? 10! ___________ = 10! 6! 6∙5∙4∙3∙2∙1 How about the general case…with 𝑛 and 𝑟?
Permutations without repetition In our example, we have 10 choices for each digit and there are 4 so… 𝑛= 10 𝑟= 4 10! 6! The top number is obviously 𝑛! 𝑛! But where does the bottom number come from? (____ = 6!…?) _____ 𝑛−𝑟 ! We clearly did 10 – 4, right? (𝑛 – 𝑟) But we got 6!, not 6…so… 𝑛! 𝑛−𝑟 ! is for permutations without repetition where 𝑛 is the # of possibilities and 𝑟 is the # of times we choose.
Permutations without repetition Example How many ways can 𝑎, 𝑏, 𝑐, 𝑑 be ordered where only 2 letters are used but each can’t be used twice? 𝑛= 4 𝑟= 2 𝑛! 𝑛−𝑟 ! = 4! 4−2 ! = 4! 2! = 4∙3∙2∙1 2∙1 = 24 2 =12 12 ways (- 𝑎, 𝑏 𝑎, 𝑐 𝑎, 𝑑 𝑏, 𝑎 𝑏, 𝑐 𝑏, 𝑑 𝑐, 𝑎 𝑐, 𝑏 𝑐, 𝑑 𝑑, 𝑎 𝑑, 𝑏 𝑑, 𝑐)
Answers 120 72 240 81 210
Answers (Part 3) 64 24 216 120 49 42 256 24 With repetition: 343, Without repetition: 210
Answers (Part 4) 6 30 𝑛=3, 𝑟=3 𝑤𝑖𝑡ℎ𝑜𝑢𝑡 12 𝑛! 36 4 8
Answers (Part 5) 9P8 2 20 870 720 Crazy: n = 5, r = 5 ⟹5! Because we can’t pick more options than there are as one is removed each pick. Crazy: n = 5, r = 5 ⟹5! Hello has ‘l’ twice (indistinguishable) so it will have less than 5!. Or…factorials need to be positive, (n – r)! ≥0.
Answers (Part 6) 64 4!=24 720 156 6 7 49! 45! You can’t get 7 different outcomes from a die.