Download presentation
Presentation is loading. Please wait.
Published byBeatrix Bridget Simon Modified over 9 years ago
1
Chapter 6 Counting Arguments
2
The Pigeonhole Principle: Pigeonhole principle: let k be a positive integer. Imagine that you are delivering k+1 letters to k mailboxes. Then it must be that some mailbox will receive two letters. Counting Arguments
3
Example: Joe needs to get up at 4am each morning to go to work. He needs to get a pair of matching socks from his drawer without turning on the light and disturbing his wife. He knows that there are socks of three different colours, unpaired and randomly distributed, in the drawer. How many socks should he grab so that he can be sure to have a pair of the same colours? Counting Arguments
4
Solution: Call the sock colours red, green, and yellow. If Joe grabs three socks then one could be red, one could be green, and one could be yellow. So that will not do. The answer is that Joe should grab four socks (by the pigeonhole principle) Counting Arguments
5
Example: Suppose that a standard dartboard has radius 10 inches. We throw seven darts at the dartboard. Why is it true that two of the darts will be distance at most 10 inches apart? Counting Arguments
6
Solution: Examine the dartboard divided into six regions. But there are seven darts. By the pigeonhole principle, two of the darts must land in same region Counting Arguments
7
Orders and Permutations: Suppose that we have n objects, in how many different orders can they be presented? a1, a2, a3,…, an Counting Arguments
8
Example: Take n to be 3, in how many different orders can we present these objects? Look at the first position. We can put any of the n objects in that first position, so there are n possibilities for the first position. Next go to the second position. Counting Arguments
9
A B C, A C B, B A C, B C A, C A B, C B A For the second position one object is used up, so there are n-1 objects remaining. Any one of those n-1 objects can go into the second position. Now examine the third position. There are n-2 can objects remaining ( since two of them are used up). So any of those n- 2 can be in the third position. And so forth Counting Arguments
10
To count the total number of possible ordering, we multiply together all these counts: Number of permutation of n objects= n.(n-1).(n-2)….3.2.1 This expression is called n factorial, and is written n!. Counting Arguments
11
Example: In how many different ways can we order five objects? Solution: The number of permutations of five objects is 5!=5.4.3.2.1=120 There are 120 different permutations of 5 objects. Counting Arguments
12
Choosing and the Binomial Coefficients: Suppose that you have n objects and you are going to choose k of them (0≤k≤n). In how many different ways can you do this? Just to illustrate the idea, take n=3 and k=2. For convenience we have labelled the objects, A, B, C. The different ways that we can choose two from the three are: {A,B}, {A,C}, {B,C} Counting Arguments
13
This is a very common expression in mathematics, and we give it the name n choose k. We denote this quantity by
14
Counting Arguments Example: In how many different ways can we choose two objects from among five? Solution: In fact if the five objects are a, b, c. d. and e then the five possible choices of two are: {a,b}, {a,c}, {a,d}, {a,e}, {b,c}, {b,d}, {b,e}, {c,d}, {c,e}, {d,e}.
15
Counting Arguments Example: How many different 5-card poker hands are there in a standard 52-card deck of cards? Solution: The answer is
16
Counting Arguments Other Counting Arguments: Mathematical summation notation
17
Example: Draw a planar grid that is 31 squares wide and 17 squares high. How many different nontrivial (widths and height are positive) rectangles can be drawn, using the lines of the grid to determine the boundaries? Counting Arguments
18
Solution: The total of rectangles are 31X17=527 We can say
19
Counting Arguments Geometric Sum:
20
Counting Arguments Example: Let λ be a real number and k a positive integer. Calculate the sum of the geometric
21
Counting Arguments Solution:
22
Counting Arguments So
23
Counting Arguments Also
24
Generating Functions Powerful technique of generating functions. Example: Fibonacci sequence 1,1,2,3,5,8,13,21,34,55,…
25
Solution: We shall use the method of generating function, a powerful technique that is used throughout the mathematical sciences. Generating Functions
30
A Few Words About Recursion Relations The sequences is list never stops. It is frequently the case that we will have a rule that tells us the value of the jth element of the list in terms of some of the previous elements. This situation is called a recursion. The method of generating functions can sometimes be used to good effect to solve recursions. Generating Functions
31
Example: A sequence is defined by the rule Use the method of generating functions to find a formula for
32
Generating Functions
34
This is the solution to our recursion problem
35
Generating Functions Use the method of generating functions to find a formula for aj Q1: A sequence is defined by the rule Q2: A sequence is defined by the rule
36
Generating Functions Exercise (9) Solve the recursion
37
Probability This is a very common expression in mathematics, and we give it the name n choose k. We denote this quantity by
38
Probability If we are flipping a coin, then there are two possible outcomes heads and tails
39
Example: A girl flips a fair coin five times. What is the probability that precisely three of the flips will come up heads? Solution: Each flip has two possible outcomes. So the total number of possible outcomes for five flips is Probability
40
2.2.2.2.2=32 Now the number of ways that three head flips can occur is the number of ways that three objects can be chosen from five. This is
41
Probability We conclude that the answer to the question is
42
Conclude the probability that the girl in the last example will get zero heads, one head, two heads, three heads, four heads, five heads. Add up all these result. The answer should of course be 1. Probability
43
Example: Eight slips of paper with the letters A, B, C, D, E, F, G, and H written on them are placed into a bin. The eight slips are drawn one by one from the bin. What is the probability that the first four to come out are A, C, E, and H (in some order) Probability
44
The number of different ways to choose four objects from among eight is Of these different subsets of four, only one will be the set [A,C,E,H]. Thus the probability of the first four slips being the ones that we want will be 1/70
45
Example: Suppose that you have 37 envelopes and you address 37 letters to go with them. Closing your eyes, you randomly stuff one letter into each envelope. What is the probability that precisely two letters are in the wrong envelopes and all others in the correct envelope? Probability
47
Exercises (4): There are 20 people sitting in a waiting room. The functionary in charge must choose five of these people to go to the green sanctuary and three of these people to go to the red sanctuary. In how many different ways can she do this? Probability
49
The rule for forming Pascal’s triangle is this: 1) A 1 goes at the top vertex 2) Each term in each subsequent row is formed by adding together the two numbers that are to the upper left and upper right of the given term. Pascal’s Triangle
50
Exercises 1) There are 300 adult people in a room, none of them obese. Explain why two of them must have the same weight (in whole numbers of pounds).
51
A1) Assuming that everyone is healthy, we may suppose that the weights of people in the room range from 75 pounds to 200 pounds. That is a range of 126 possible value. And each of 300 people will have one such value. So there are 300 letters and 126 mailboxes. It follows that two people will have the same weight. Exercises
52
2) There are 50 people in a room, none of them obese. Explain why two of them must have the same waist measurement (in whole numbers of inches). Exercises
53
A2) The waist measurements will be in the range 15 inches to 45 inches. That is a span of 31 values. But there are 50 people. Just as in the last problem, to people will have the same measurement. Exercises
54
3) Explain why the answer to Exercise 2 changes if the waist measurement is change to whole numbers of millimetres. Exercises
55
A3) If instead we measure waist size by millimetres, then the range will be from 15X25.4=381 to 45X25.4=1143. That is a span of 763 possible values. Since there are just 50 people, each person could have a different waist measurement in millimeters. Exercises
56
5) In a standard deck of 52 playing cards, in how many different ways can you form two-of-a-kind? Exercises
57
A5) Given any particular denomination of card (from two through ace), there are four cards of that kind. There are four different ways to choose three from among those. And 13 different denominations. Hence there are 4X13=52 different ways to form three- of-a-kind. Exercises
58
6) In a standard deck of 52 playing cards, in how many different ways can you form four-of-a-kind. Exercises
59
A6) The analysis here is similar to the last problem. Given any particular denomination, there is just one way to form four of that kind. And there are 13 different denominations. Thus there are 13 different ways to from four-of-a- kind. Exercises
60
7) A standard dice used for gambling is a six-side cube, with the sides numbered 1 through 6. You usually roll two dice at a time, and the two face-up values are added together to give your score. What is the likelihood that you will roll a seven? Exercises
61
A7) The only way to roll a 7 are 1-6, 6- 1, 2-5, 5-2, 4-3, and 3-4 (where we are taking into account that there are two dice, so two ways to realize any particular score). And there are 6X6=36 possible outcomes altogether. So the likelihood is 6/36=1/6 Exercises
62
8) Refer to the last exercise for terminology. What is the chance that you will roll two dice and get a two? How about a 12? Are there any other values that give this same answer? Why or why not?. Exercises
63
A8) The only way to get a 2 is 1-1. Thus the chances of getting a 2 are 1/36. Also there is only one way to get a 12. So the chances of getting a 12 are 1/36. Every other value can be achieved in more than one way, so these are the only two values for which the odds are 1/36. Exercises
64
9) Again refer to Exercise 7 for terminology. Now suppose that you are rolling three dice. Your score is obtained by adding together the three face values. What is your probability of getting a 10? Exercises
65
A9) The only ways to get a 10 are 1-3-6 1-4-5 2-2-6 2-3-5 2-4-4 3-3-4 6-1-3 And the six permutations of each of these. So there are 6X7=42 rolls that give 10. There are 6X6X6=216 possible rolls. Thus the odds are 42/216=7/36. Exercises
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.