Homework #5 |
Last Updated: 03/14/2010 |
Total points 50
Bonus 5
Section 5.1 -- pp. 344 - 345
An office building contains 27 floors and has 37 offices on each floor. How any offices are there in the building?
Product rule: 27 floors * 37 offices/floor = 27 * 37 offices = 999 offices
A particular brand of shirt comes in 12 colors, has a male version and a female version, and comes in three sizes for each sex. How many different types of this shirt are made?
Product rule: 12 colors/version * 2 versions * 3 sizes = 72 types
How many bit strings are there of length eight?
Product rule: Each of 8 bits can be a 0 or 1: 2*2*2*2*2*2*2*2 = 28 = 256
How many bit strings are there of length six or less?
Product rule:
Sum rule: 64+32+16+8+4+2+1 = 127
How many strings are there of four lower-case letters that have the letter x in them?
264 strings of 4 characters, some include x
254 strings of 4 characters, all exclude x
264 - 254 = 66,351 all include x
How many positive integers between 5 and 31
- The first integer between 5 and 31 divisible by 3 is 6.
9 integers: 6, 9, 12, 15, 18, 21, 24, 27, 30
- The first integer between 5 and 31 divisible by 4 is 8.
6 integers: 8, 12, 16, 20, 24, 28
- Intersection of a. and b.
2 integers: 12, 24
How many license plates can be using either three digits followed by three letters or three letters followed by three digits?
2*103263 = 35,152,000
Use a tree diagram to find the number of bit strings of length four with no three consecutive 0s.
13 4-bit strings without 000.
Another way:
Note that there are 24 = 16 permutations of 4-bit strings.
With the substring 000, one bit remains, the 4-bit strings containing 000 are 0000, 1000, and 0001.
3 strings with 000 so 16-3=13 strings without 000.
If N objects are placed into k boxes then there is at least one box containing at least éN/kù objects.
#18 Hint:
Show that if there are 30 students in a class, then at least two have last names that begin with the same letter.
By pigeonhole principle, k=26, there are 30 people, at least one letter must occur twice or more as the first letter of a name.
é30/26ù = 2
A bowl contains 10 red balls and 10 blue balls. A woman selects balls at random without looking at them.
{1,10}, {2,9}, {3,8}, {4,7}, {5,6}
Select any 7 of the numbers from the 5 sets. By the pigeonhole principle, we select one, complete pair.
é7/5ù = 2
Now select 5 numbers from the remaining 4 sets. By the pigeonhole principle, we select one, different, complete pair.
é5/4ù = 2
é6/5ù = 2
é4/4ù = 1
Suppose that there are nine students in a discrete mathematics class at a small college.
p ® q v r
p is "9 students"
q is "At least 3 males"
r is "At least 7 females".
Assume:
p is true and q v r is false, that is: Ø(q v r) = Øq ^ Ør.
Øq ^ Ør is "no more than 2 males" and "no more than 6 females"
When no more than 2 males and no more than 6 females there are only 8 students.
Contradicts assumption p, q v r cannot be false.
How many different permutations are there of the set {a,b,c,d,e,f,g}?
7!/(7-7)! = 7!/1 = 7! = 5040
Let S = {1,2,3,4,5}
1 followed by 2,3 2,4 2,5 3,2 3,4 3,5 4,2 4,3 4,5 5,2 5,3 5,4
2 followed by 1,3 1,4 1,5 3,1 3,4 3,5 4,1 4,3 4,5 5,1 5,3 5,4
3 followed by 1,2 1,4 1,5 2,1 2,4 2,5 4,1 4,2 4,5 5,1 5,2 5,4
4 followed by 1,2 1,3 1,5 2,1 2,3 2,5 3,1 3,2 3,5 5,1 5,2 5,3
5 followed by 1,2 1,4 1,3 2,1 2,4 2,3 4,1 4,2 4,3 3,1 3,2 3,4
1,2,3 1,2,4 1,2,5 1,3,4 1,3,5 1,4,5 2,3,4 2,3,5 2,4,5 3,4,5
Find the value of each of these quantities.
In how many different orders can five runners finish a race if there are no ties?
P(5,5) = 5!/(5-5)! = 120
There are six different candidates for governor of a state. In how many different orders can the names be printed on the ballot?
P(6,6) = 6!(6-6)! = 6! = 720
In how many different ways can a set of two positive integers less than 100 be chosen?
C(99,2) = 99!/2!(99-2)! = 99*98/2 = 4851
A coin is flipped four times where each flip comes up either heads or tails. How many possible outcomes
Do this question flipping the coin 4 times, and draw a tree diagram
from Section 5.1 to obtain the answers
How many permutations of the letters ABCDEFGH contain the string ED?
With ED substring have ABCEDFGH or 7 substrings.
P(7,7) = 7!/(7-7) = 7! = 5040
How many permutations of the letters ABCDEFGH contain the string CDE?
With CDE substring have ABCDEFGH or 6 substrings.
P(6,6) = 6!/(6-6) = 6! = 720
Thirteen people on a softball team show up for a game.
How many ways are there to choose 10 players to take the field?
C(13,10) = 13!/10!(13-10)! = 13*12*11/6 = 286
How many ways are there to assign the ten positions by selecting players
from the 13 people who show up?
P(13,10) = 13!/(13-10)! = 1,037,836,800
- 2b (3 pts) Bonus
Find the expansion of (x+y)5 using Binomial Theorem
- 4 (2 pts) Bonus