Math 173 Homework Solutions - Problem Solving and Combinatorics, Assignments of Mathematics

Solutions to various math problems from a university-level course, including combinatorics and balls-and-boxes problems. The solutions involve using concepts such as multinomial coefficients, stars-and-bars method, and set composition principle.

Typology: Assignments

Pre 2010

Uploaded on 08/31/2009

koofers-user-8dm
koofers-user-8dm 🇺🇸

10 documents

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Homework #4 Math 173 Spring ’09
Solutions
(1) 5.4; 6) Let the number of balls in the three boxes be x,yand z. We are told that x+y+z=
21. If zcounts the number of balls in the box with twice as many as the others combined,
then z= 2(x+y). Eliminating the z, this tells us 3(x+y) = 21 or x+y= 7. So one box
has 14 balls and the other two have {0,7},{1,6},{2,5}or {3,4}.
No matter which combination (e.g., {14,4,3}) we choose for the the number of balls
in each box, all three values are different. So we have 3! possible orderings in each case.
Since we are distributing distinct objects, for each ordering we can just use the multinomial
coefficient. Since the different orderings are different cases, these answers are then just
added up:
3!  21
14,7,0+21
14,6,1+21
14,5,2+21
14,4,3= 44651520.
An alternative solution is to realize that after the we choose the 14 balls for the one box
in 21
14ways, each remaining ball can go into one of two boxes with no restrictions. By the
MR, therefore, these last 7 balls can be placed in 27ways. Finally, we need to multiply by
3 to choose whether the box with 14 balls is first, second or third. So, this way, the answer
is 321
1427.
(2) 5.4; 14) First we convert this to a problem for which we’re looking for nonnegative solutions
by subtracting 4 from each side: (x11)+(x21)+(x31)+(x41) <96. As we saw in class,
we can deal with the less-than sign by adding an extra variable, x5. This variable absorbs
the difference between our minimum possible sum (zero) and our maximum possible (ninety
five). So we have as our modified equation (x11) + (x21) + (x31) + (x41) + x5= 95.
This is now a balls-and-boxes problem with r= 95 and n= 5. So the number of solutions
is 95+51
95 =99
4= 3764376.
It would also be natural to try to deal with the inequality before dealing with the “posi-
tive” requirement. Then, after adding the dummy variable you’d have x1+x2+x3+x4+x5=
99. But then you’d only want to subtract one from the first four variables as the problem
requires that they be positive, while x5is certainly allowed to be zero. This leads to the
same final equation we obtained above.
(3) 5.4; 16) In the first step, person one is given one of 10 books, say Don Quixote. Then
persons two and three get books. Then the remaining 7 books are distributed. Suppose the
last of these 7 is an advance copy of Pride & Prejudice & Zombies that goes to the first
person. Alternatively, we could have made the same choices except have Pride & Prejudice
& Zombies be given to the first person in step one and Don Quixote be given as the last
book. These two cases are counted differently, however they lead to the same ultimate
distribution of books and therefore should only be counted once. In the language of the
book, this strategy violates the Set Composition Principle.
Another error is in how many ways there are to distribute those final 7 books. rdistinct
objects distributed to ndistinct boxes can be distributed in nrpossible ways. So the number
of possibilities here is 37, not 73as the book lists.
(4) 5.4; 20) The number of possible games for the first bag is 30
20. The number of possible toys
for the second bag is 20
15. The number of possible presents for the third bag is 502015
15 .
These choices are all independent, so by the MR, the answer is 30
2020
1515
15= 465817912560.
1
pf2

Partial preview of the text

Download Math 173 Homework Solutions - Problem Solving and Combinatorics and more Assignments Mathematics in PDF only on Docsity!

Homework #4 — Math 173 — Spring ’

Solutions

(1) 5.4; 6) Let the number of balls in the three boxes be x, y and z. We are told that x+y +z =

  1. If z counts the number of balls in the box with twice as many as the others combined, then z = 2(x + y). Eliminating the z, this tells us 3(x + y) = 21 or x + y = 7. So one box has 14 balls and the other two have { 0 , 7 }, { 1 , 6 }, { 2 , 5 } or { 3 , 4 }. No matter which combination (e.g., { 14 , 4 , 3 }) we choose for the the number of balls in each box, all three values are different. So we have 3! possible orderings in each case. Since we are distributing distinct objects, for each ordering we can just use the multinomial coefficient. Since the different orderings are different cases, these answers are then just added up:

[(

)]

An alternative solution is to realize that after the we choose the 14 balls for the one box in

14

ways, each remaining ball can go into one of two boxes with no restrictions. By the MR, therefore, these last 7 balls can be placed in 2^7 ways. Finally, we need to multiply by 3 to choose whether the box with 14 balls is first, second or third. So, this way, the answer is 3

14

(2) 5.4; 14) First we convert this to a problem for which we’re looking for nonnegative solutions by subtracting 4 from each side: (x 1 −1)+(x 2 −1)+(x 3 −1)+(x 4 −1) < 96. As we saw in class, we can deal with the less-than sign by adding an extra variable, x 5. This variable absorbs the difference between our minimum possible sum (zero) and our maximum possible (ninety five). So we have as our modified equation (x 1 − 1) + (x 2 − 1) + (x 3 − 1) + (x 4 − 1) + x 5 = 95. This is now a balls-and-boxes problem with r = 95 and n = 5. So the number of solutions is

95

4

It would also be natural to try to deal with the inequality before dealing with the “posi- tive” requirement. Then, after adding the dummy variable you’d have x 1 +x 2 +x 3 +x 4 +x 5 =

  1. But then you’d only want to subtract one from the first four variables as the problem requires that they be positive, while x 5 is certainly allowed to be zero. This leads to the same final equation we obtained above.

(3) 5.4; 16) In the first step, person one is given one of 10 books, say Don Quixote. Then persons two and three get books. Then the remaining 7 books are distributed. Suppose the last of these 7 is an advance copy of Pride & Prejudice & Zombies that goes to the first person. Alternatively, we could have made the same choices except have Pride & Prejudice & Zombies be given to the first person in step one and Don Quixote be given as the last book. These two cases are counted differently, however they lead to the same ultimate distribution of books and therefore should only be counted once. In the language of the book, this strategy violates the Set Composition Principle. Another error is in how many ways there are to distribute those final 7 books. r distinct objects distributed to n distinct boxes can be distributed in nr^ possible ways. So the number of possibilities here is 3^7 , not 7^3 as the book lists.

(4) 5.4; 20) The number of possible games for the first bag is

20

. The number of possible toys for the second bag is

15

. The number of possible presents for the third bag is

15

These choices are all independent, so by the MR, the answer is

20

15

15

1

(5) 5.4; 24) The total number of possible arrangements is

4 , 2 , 2 , 1 , 1 , 1 , 1 , 1

. To count the ones they specify, first treat the two F’s and two C’s as single characters. So now we have 11 characters to arrange. First we place the 7 non-E’s in 7! possible ways. Then we place four E’s in the spaces between these slots in

4

possible ways. By the MR, the answer is therefore 7!

4

4 , 2 , 2 , 1 , 1 , 1 , 1 , 1

This also could have been solved by placing the E’s first (in one way). Then placing three generic consonants between successive pairs of E’s. Then distributing the remaining four generic letters in the spaces between the E’s in

4

ways (r = 4, n = 5; balls-and-boxes). Then finally determining the actual order of the 7 non-E characters in 7! ways.

(6) 5.4; 34b) As a selection problem: “Choose 18 objects from among six types with at least two of each type.” As an integer-solution problem: “The number of solutions to x 1 + x 2 + x 3 + x 4 + x 5 + x 6 = 18 with each xi ≥ 2.”

(7) 5.4; 44) First arrange the vowels in one of 4! possible orders. The first two vowels now become our first pair; the last two become our second pair. Place two generic consonants between these two vowel-pairs. Place the remaining five generic consonants in

5

ways (balls-and-boxes; r = 5, n = 3). Now arrange the actual consonants in 7!/2! ways (divide by 2! because of the repeated L’s). By the MR, we then have 4!

2

arrangements.

(8) 5.4; 54) If you only had to worry about the sixteen honors, this would relatively simple. However, the number of ways to distribute the remaining 36 cards varies according to the actual distribution of honors, so we need to break into cases. First, the denominator is

13 , 13 , 13 , 13

. For the numerator, it is easy to list that the distributions of honors we are interested in are { 7 , 3 , 3 , 3 }, { 6 , 4 , 3 , 3 }, { 5 , 5 , 3 , 3 }, { 5 , 4 , 4 , 3 } and { 4 , 4 , 4 , 4 }. These can each happen in 4, 12, 6, 12 and 1 possible orderings, respectively. (In other words, if the distribution of honors is { 7 , 3 , 3 , 3 } we have four possible choices for who gets the 7.) For a distribution {x, y, z, w}, we can then distribute the honors in

x,y,z,w

ways and the remaining 36 cards in

13 −x, 13 −y, 13 −z, 13 −w

ways. Using the MR and AR, we get as our answer

divided by

13 , 13 , 13 , 13

. This comes out to 45.3%

2