18.600: lecture 1 .1in permutations and combinations ...math.mit.edu/~sheffield/600/lecture1.pdf ·...
TRANSCRIPT
![Page 1: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/1.jpg)
18.600: Lecture 1
Permutations and combinations, Pascal’striangle, learning to count
Scott Sheffield
MIT
18.600 Lecture 1
![Page 2: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/2.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 3: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/3.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 4: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/4.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 5: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/5.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 6: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/6.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 7: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/7.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 8: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/8.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 9: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/9.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 10: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/10.jpg)
Politics
I Suppose that betting markets place the probability that yourfavorite presidential candidates will be elected at 58 percent.Price of a contact that pays 100 dollars if your candidate winsis 58 dollars.
I Market seems to say that your candidate will probably win, if“probably” means with probability greater than .5.
I The price of such a contract may fluctuate in time.
I Let X (t) denote the price at time t.
I Suppose X (t) is known to vary continuously in time. What isthe probability it will reach 59 before reaching 57?
I “Efficient market hypothesis” suggests about .5.
I Reasonable model: use sequence of fair coin tosses to decidethe order in which X (t) passes through different integers.
18.600 Lecture 1
![Page 11: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/11.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.
I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 12: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/12.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some point
I 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 13: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/13.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.
I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 14: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/14.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.
I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 15: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/15.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.
I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 16: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/16.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.
I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 17: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/17.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.
I Probability is central to politics. Also military, finance,economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 18: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/18.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 19: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/19.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.
I Provocative question: what simple advice, that would greatlybenefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 20: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/20.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 21: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/21.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.
18.600 Lecture 1
![Page 22: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/22.jpg)
Which of these statements is “probably” true?
I 1. X (t) will go below 50 at some future point.I 2. X (t) will get all the way below 20 at some pointI 3. X (t) will reach both 70 and 30, at different future times.I 4. X (t) will reach both 65 and 35 at different future times.I 5. X (t) will hit 65, then 50, then 60, then 55.I Answers: 1, 2, 4.I Full explanations coming at the end of the course.I Probability is central to politics. Also military, finance,
economics, all kinds of science and engineering, philosophy,religion, social networking, dating, etc.
I All of the math in this course has applications.I Provocative question: what simple advice, that would greatly
benefit humanity, are we unaware of? Foods to avoid?Exercises to do? Books to read? How would we know?
I Can we use probabilistic reasoning to address most importantquestions in life?
I Let’s start with easier questions.18.600 Lecture 1
![Page 23: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/23.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 24: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/24.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 25: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/25.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 26: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/26.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 27: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/27.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 28: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/28.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 29: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/29.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 30: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/30.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 31: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/31.jpg)
Permutations
I How many ways to order 52 cards?
I Answer: 52 · 51 · 50 · . . . · 1 = 52! =80658175170943878571660636856403766975289505600883277824×1012
I n hats, n people, how many ways to assign each person a hat?
I Answer: n!
I n hats, k < n people, how many ways to assign each person ahat?
I n · (n − 1) · (n − 2) . . . (n − k + 1) = n!/(n − k)!
I A permutation is a map from {1, 2, . . . , n} to {1, 2, . . . , n}.There are n! permutations of n elements.
18.600 Lecture 1
![Page 32: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/32.jpg)
Permutation notation
I A permutation is a function from {1, 2, . . . , n} to{1, 2, . . . , n} whose range is the whole set {1, 2, . . . , n}. If σis a permutation then for each j between 1 and n, the thevalue σ(j) is the number that j gets mapped to.
I For example, if n = 3, then σ could be a function such thatσ(1) = 3, σ(2) = 2, and σ(3) = 1.
I If you have n cards with labels 1 through n and you shufflethem, then you can let σ(j) denote the label of the card in thejth position. Thus orderings of n cards are in one-to-onecorrespondence with permutations of n elements.
I One way to represent σ is to list the valuesσ(1), σ(2), . . . , σ(n) in order. The σ above is represented as{3, 2, 1}.
I If σ and ρ are both permutations, write σ ◦ ρ for theircomposition. That is, σ ◦ ρ(j) = σ(ρ(j)).
18.600 Lecture 1
![Page 33: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/33.jpg)
Permutation notation
I A permutation is a function from {1, 2, . . . , n} to{1, 2, . . . , n} whose range is the whole set {1, 2, . . . , n}. If σis a permutation then for each j between 1 and n, the thevalue σ(j) is the number that j gets mapped to.
I For example, if n = 3, then σ could be a function such thatσ(1) = 3, σ(2) = 2, and σ(3) = 1.
I If you have n cards with labels 1 through n and you shufflethem, then you can let σ(j) denote the label of the card in thejth position. Thus orderings of n cards are in one-to-onecorrespondence with permutations of n elements.
I One way to represent σ is to list the valuesσ(1), σ(2), . . . , σ(n) in order. The σ above is represented as{3, 2, 1}.
I If σ and ρ are both permutations, write σ ◦ ρ for theircomposition. That is, σ ◦ ρ(j) = σ(ρ(j)).
18.600 Lecture 1
![Page 34: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/34.jpg)
Permutation notation
I A permutation is a function from {1, 2, . . . , n} to{1, 2, . . . , n} whose range is the whole set {1, 2, . . . , n}. If σis a permutation then for each j between 1 and n, the thevalue σ(j) is the number that j gets mapped to.
I For example, if n = 3, then σ could be a function such thatσ(1) = 3, σ(2) = 2, and σ(3) = 1.
I If you have n cards with labels 1 through n and you shufflethem, then you can let σ(j) denote the label of the card in thejth position. Thus orderings of n cards are in one-to-onecorrespondence with permutations of n elements.
I One way to represent σ is to list the valuesσ(1), σ(2), . . . , σ(n) in order. The σ above is represented as{3, 2, 1}.
I If σ and ρ are both permutations, write σ ◦ ρ for theircomposition. That is, σ ◦ ρ(j) = σ(ρ(j)).
18.600 Lecture 1
![Page 35: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/35.jpg)
Permutation notation
I A permutation is a function from {1, 2, . . . , n} to{1, 2, . . . , n} whose range is the whole set {1, 2, . . . , n}. If σis a permutation then for each j between 1 and n, the thevalue σ(j) is the number that j gets mapped to.
I For example, if n = 3, then σ could be a function such thatσ(1) = 3, σ(2) = 2, and σ(3) = 1.
I If you have n cards with labels 1 through n and you shufflethem, then you can let σ(j) denote the label of the card in thejth position. Thus orderings of n cards are in one-to-onecorrespondence with permutations of n elements.
I One way to represent σ is to list the valuesσ(1), σ(2), . . . , σ(n) in order. The σ above is represented as{3, 2, 1}.
I If σ and ρ are both permutations, write σ ◦ ρ for theircomposition. That is, σ ◦ ρ(j) = σ(ρ(j)).
18.600 Lecture 1
![Page 36: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/36.jpg)
Permutation notation
I A permutation is a function from {1, 2, . . . , n} to{1, 2, . . . , n} whose range is the whole set {1, 2, . . . , n}. If σis a permutation then for each j between 1 and n, the thevalue σ(j) is the number that j gets mapped to.
I For example, if n = 3, then σ could be a function such thatσ(1) = 3, σ(2) = 2, and σ(3) = 1.
I If you have n cards with labels 1 through n and you shufflethem, then you can let σ(j) denote the label of the card in thejth position. Thus orderings of n cards are in one-to-onecorrespondence with permutations of n elements.
I One way to represent σ is to list the valuesσ(1), σ(2), . . . , σ(n) in order. The σ above is represented as{3, 2, 1}.
I If σ and ρ are both permutations, write σ ◦ ρ for theircomposition. That is, σ ◦ ρ(j) = σ(ρ(j)).
18.600 Lecture 1
![Page 37: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/37.jpg)
Cycle decomposition
I Another way to write a permutation is to describe its cycles:
I For example, taking n = 7, we write (2, 3, 5), (1, 7), (4, 6) forthe permutation σ such that σ(2) = 3, σ(3) = 5, σ(5) = 2 andσ(1) = 7, σ(7) = 1, and σ(4) = 6, σ(6) = 4.
I If you pick some j and repeatedly apply σ to it, it will “cyclethrough” the numbers in its cycle.
I Generally, a function is called an involution if f (f (x)) = x forall x .
I A permutation is an involution if all cycles have length one ortwo.
I A permutation is “fixed point free” if there are no cycles oflength one.
18.600 Lecture 1
![Page 38: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/38.jpg)
Cycle decomposition
I Another way to write a permutation is to describe its cycles:
I For example, taking n = 7, we write (2, 3, 5), (1, 7), (4, 6) forthe permutation σ such that σ(2) = 3, σ(3) = 5, σ(5) = 2 andσ(1) = 7, σ(7) = 1, and σ(4) = 6, σ(6) = 4.
I If you pick some j and repeatedly apply σ to it, it will “cyclethrough” the numbers in its cycle.
I Generally, a function is called an involution if f (f (x)) = x forall x .
I A permutation is an involution if all cycles have length one ortwo.
I A permutation is “fixed point free” if there are no cycles oflength one.
18.600 Lecture 1
![Page 39: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/39.jpg)
Cycle decomposition
I Another way to write a permutation is to describe its cycles:
I For example, taking n = 7, we write (2, 3, 5), (1, 7), (4, 6) forthe permutation σ such that σ(2) = 3, σ(3) = 5, σ(5) = 2 andσ(1) = 7, σ(7) = 1, and σ(4) = 6, σ(6) = 4.
I If you pick some j and repeatedly apply σ to it, it will “cyclethrough” the numbers in its cycle.
I Generally, a function is called an involution if f (f (x)) = x forall x .
I A permutation is an involution if all cycles have length one ortwo.
I A permutation is “fixed point free” if there are no cycles oflength one.
18.600 Lecture 1
![Page 40: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/40.jpg)
Cycle decomposition
I Another way to write a permutation is to describe its cycles:
I For example, taking n = 7, we write (2, 3, 5), (1, 7), (4, 6) forthe permutation σ such that σ(2) = 3, σ(3) = 5, σ(5) = 2 andσ(1) = 7, σ(7) = 1, and σ(4) = 6, σ(6) = 4.
I If you pick some j and repeatedly apply σ to it, it will “cyclethrough” the numbers in its cycle.
I Generally, a function is called an involution if f (f (x)) = x forall x .
I A permutation is an involution if all cycles have length one ortwo.
I A permutation is “fixed point free” if there are no cycles oflength one.
18.600 Lecture 1
![Page 41: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/41.jpg)
Cycle decomposition
I Another way to write a permutation is to describe its cycles:
I For example, taking n = 7, we write (2, 3, 5), (1, 7), (4, 6) forthe permutation σ such that σ(2) = 3, σ(3) = 5, σ(5) = 2 andσ(1) = 7, σ(7) = 1, and σ(4) = 6, σ(6) = 4.
I If you pick some j and repeatedly apply σ to it, it will “cyclethrough” the numbers in its cycle.
I Generally, a function is called an involution if f (f (x)) = x forall x .
I A permutation is an involution if all cycles have length one ortwo.
I A permutation is “fixed point free” if there are no cycles oflength one.
18.600 Lecture 1
![Page 42: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/42.jpg)
Cycle decomposition
I Another way to write a permutation is to describe its cycles:
I For example, taking n = 7, we write (2, 3, 5), (1, 7), (4, 6) forthe permutation σ such that σ(2) = 3, σ(3) = 5, σ(5) = 2 andσ(1) = 7, σ(7) = 1, and σ(4) = 6, σ(6) = 4.
I If you pick some j and repeatedly apply σ to it, it will “cyclethrough” the numbers in its cycle.
I Generally, a function is called an involution if f (f (x)) = x forall x .
I A permutation is an involution if all cycles have length one ortwo.
I A permutation is “fixed point free” if there are no cycles oflength one.
18.600 Lecture 1
![Page 43: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/43.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 44: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/44.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 45: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/45.jpg)
Fundamental counting trick
I n ways to assign hat for the first person. No matter whatchoice I make, there will remain n− 1 was to assign hat to thesecond person. No matter what choice I make there, there willremain n − 2 ways to assign a hat to the third person, etc.
I This is a useful trick: break counting problem into a sequenceof stages so that one always has the same number of choicesto make at each stage. Then the total count becomes aproduct of number of choices available at each stage.
I Easy to make mistakes. For example, maybe in your problem,the number of choices at one stage actually does depend onchoices made during earlier stages.
18.600 Lecture 1
![Page 46: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/46.jpg)
Fundamental counting trick
I n ways to assign hat for the first person. No matter whatchoice I make, there will remain n− 1 was to assign hat to thesecond person. No matter what choice I make there, there willremain n − 2 ways to assign a hat to the third person, etc.
I This is a useful trick: break counting problem into a sequenceof stages so that one always has the same number of choicesto make at each stage. Then the total count becomes aproduct of number of choices available at each stage.
I Easy to make mistakes. For example, maybe in your problem,the number of choices at one stage actually does depend onchoices made during earlier stages.
18.600 Lecture 1
![Page 47: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/47.jpg)
Fundamental counting trick
I n ways to assign hat for the first person. No matter whatchoice I make, there will remain n− 1 was to assign hat to thesecond person. No matter what choice I make there, there willremain n − 2 ways to assign a hat to the third person, etc.
I This is a useful trick: break counting problem into a sequenceof stages so that one always has the same number of choicesto make at each stage. Then the total count becomes aproduct of number of choices available at each stage.
I Easy to make mistakes. For example, maybe in your problem,the number of choices at one stage actually does depend onchoices made during earlier stages.
18.600 Lecture 1
![Page 48: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/48.jpg)
Another trick: overcount by a fixed factor
I If you have 5 indistinguishable black cards, 2 indistinguishablered cards, and three indistinguishable green cards, how manydistinct shuffle patterns of the ten cards are there?
I Answer: if the cards were distinguishable, we’d have 10!. Butwe’re overcounting by a factor of 5!2!3!, so the answer is10!/(5!2!3!).
18.600 Lecture 1
![Page 49: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/49.jpg)
Another trick: overcount by a fixed factor
I If you have 5 indistinguishable black cards, 2 indistinguishablered cards, and three indistinguishable green cards, how manydistinct shuffle patterns of the ten cards are there?
I Answer: if the cards were distinguishable, we’d have 10!. Butwe’re overcounting by a factor of 5!2!3!, so the answer is10!/(5!2!3!).
18.600 Lecture 1
![Page 50: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/50.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 51: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/51.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 52: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/52.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 53: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/53.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 54: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/54.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 55: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/55.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 56: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/56.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 57: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/57.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 58: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/58.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 59: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/59.jpg)
(nk
)notation
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats allowed?
I Answer: nk
I How many ways to choose an ordered sequence of k elementsfrom a list of n elements, with repeats forbidden?
I Answer: n!/(n − k)!
I How many way to choose (unordered) k elements from a listof n without repeats?
I Answer:(nk
):= n!
k!(n−k)!
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
18.600 Lecture 1
![Page 60: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/60.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 61: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/61.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 62: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/62.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 63: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/63.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 64: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/64.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 65: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/65.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 66: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/66.jpg)
Pascal’s triangle
I Arnold principle.
I A simple recursion:(nk
)=(n−1k−1
)+(n−1
k
).
I What is the coefficient in front of xk in the expansion of(x + 1)n?
I Answer:(nk
).
I (x + 1)n =(n0
)· 1 +
(n1
)x1 +
(n2
)x2 + . . .+
( nn−1
)xn−1 +
(nn
)xn.
I Question: what is∑n
k=0
(nk
)?
I Answer: (1 + 1)n = 2n.
18.600 Lecture 1
![Page 67: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/67.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 68: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/68.jpg)
Outline
Remark, just for fun
Permutations
Counting tricks
Binomial coefficients
Problems
18.600 Lecture 1
![Page 69: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/69.jpg)
More problems
I How many full house hands in poker?
I 13(43
)· 12(42
)I How many “2 pair” hands?
I 13(42
)· 12(42
)· 11(41
)/2
I How many royal flush hands?
I 4
18.600 Lecture 1
![Page 70: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/70.jpg)
More problems
I How many full house hands in poker?
I 13(43
)· 12(42
)
I How many “2 pair” hands?
I 13(42
)· 12(42
)· 11(41
)/2
I How many royal flush hands?
I 4
18.600 Lecture 1
![Page 71: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/71.jpg)
More problems
I How many full house hands in poker?
I 13(43
)· 12(42
)I How many “2 pair” hands?
I 13(42
)· 12(42
)· 11(41
)/2
I How many royal flush hands?
I 4
18.600 Lecture 1
![Page 72: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/72.jpg)
More problems
I How many full house hands in poker?
I 13(43
)· 12(42
)I How many “2 pair” hands?
I 13(42
)· 12(42
)· 11(41
)/2
I How many royal flush hands?
I 4
18.600 Lecture 1
![Page 73: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/73.jpg)
More problems
I How many full house hands in poker?
I 13(43
)· 12(42
)I How many “2 pair” hands?
I 13(42
)· 12(42
)· 11(41
)/2
I How many royal flush hands?
I 4
18.600 Lecture 1
![Page 74: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/74.jpg)
More problems
I How many full house hands in poker?
I 13(43
)· 12(42
)I How many “2 pair” hands?
I 13(42
)· 12(42
)· 11(41
)/2
I How many royal flush hands?
I 4
18.600 Lecture 1
![Page 75: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/75.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 76: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/76.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)
I How many 10 digit numbers with no consecutive digits thatagree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 77: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/77.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 78: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/78.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 79: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/79.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 80: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/80.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 81: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/81.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1
![Page 82: 18.600: Lecture 1 .1in Permutations and combinations ...math.mit.edu/~sheffield/600/Lecture1.pdf · 18.600: Lecture 1 Permutations and combinations, Pascal’s triangle, learning](https://reader035.vdocuments.site/reader035/viewer/2022071219/6055b62556d16e64d901f15c/html5/thumbnails/82.jpg)
More problems
I How many hands that have four cards of the same suit, onecard of another suit?
I 4(134
)· 3(131
)I How many 10 digit numbers with no consecutive digits that
agree?
I If initial digit can be zero, have 10 · 99 ten-digit sequences. Ifinitial digit required to be non-zero, have 910.
I How many 10 digit numbers (allowing initial digit to be zero)in which only 5 of the 10 possible digits are represented?
I This is one is tricky, can be solved with inclusion-exclusion (tocome later in the course).
I How many ways to assign a birthday to each of 23 distinctpeople? What if no birthday can be repeated?
I 36623 if repeats allowed. 366!/343! if repeats not allowed.
18.600 Lecture 1