Docsity

Math 184A Final Exam Solutions March 2001, Exams of Mathematics

Toggle sidebar
bg1
Math 184A Final Exam Solutions March 2001
1. (30 pts) We want to divide 6 men and 7 women into two teams of 6 people each, plus
one referee.
(a) How many ways can this be done if the teams have no names?
Ans. We can choose the referee in 13 ways. Look at the first remaining person. We
can choose his/her teammates in ¡11
5¢ways. Thus the answer is 13 ס11
5¢.
Another way: Given an unlabeled choice, there are two ways we can label the
teams as 1 and 2. The number of ways to do things with labeled teams is ¡13
6,6,1¢,
but, by the preceding sentence, this is twice the desired answer. Hence we have
1
2¡13
6,6,1¢.
(b) How many ways can this be done if one team is called the “Hackers”, the other is
called the (Number) “Crunchers”, and each team must have 3 women and 3 men?
Ans. The refree must be a woman and there are 7 ways to choose her. Choose the men
for the Hackers and the women for the hackers. Altogether we get 7 ס6
3¢×¡6
3¢.
2. (20 pts) Suppose a0=0,a
1= 1 and an+1 =2a
n−a
n−1+6nfor n≥1. Find a simple
formula for an(not a recursion) and prove it by induction.
Hint: Compute the first few values of anand look for a pattern.
Ans. The pattern is an=n3. It is correct for n= 0 and n= 1. Consider n≥1. We will
prove that an+1 =(n+1)
3by induction. By the recursion and then the induction
hypothosis and finally some algebra,
an+1 =2a
n−a
n−1+6n=2n
3−(n−1)3+6n=n
3+3n
2+3n+1=(n+1)
3
.
3. (15 pts) Suppose n>1 Imagine listing the n! permutations of {1,2,...,n}in direct
insertion order. What permutation has rank n!/2? Be sure to explain how you got
your answer.
Ans. This is just past the middle of the list of permutations. The first decision in direct
insertion order is which of two places to put 2. Since each choice leads to n!/2 per-
mutations, we select the second choice and thereafter always select the first choice.
This gives us 2,1,3,4,...,n. In other words, the identity permutation with 1 and 2
switched.
4. (35 pts) We have an unlimited supply of bdifferent kinds of beads. We want to space
kof them uniformly around a circle. (In other word, we want a k-long circular list.)
(a) How many ways can this be done when k= 6 and all 6 beads must be different?
Ans. This is just a circular list without repeats, which was dealt with in Chapter 1.
The answer in general is b(b−1) ···(b−k+1)/k, from which you can work out
the answer for k=6.
1
pf3

Partial preview of the text

Download Math 184A Final Exam Solutions March 2001 and more Exams Mathematics in PDF only on Docsity!

  1. (30 pts) We want to divide 6 men and 7 women into two teams of 6 people each, plus one referee. (a) How many ways can this be done if the teams have no names? Ans. We can choose the referee in 13 ways. Look at the first remaining person. We can choose his/her teammates in

5

ways. Thus the answer is 13 ×

5

Another way: Given an unlabeled choice, there are two ways we can label the teams as 1 and 2. The number of ways to do things with labeled teams is

6 , 6 , 1

but, by the preceding sentence, this is twice the desired answer. Hence we have 1 2

6 , 6 , 1

(b) How many ways can this be done if one team is called the “Hackers”, the other is called the (Number) “Crunchers”, and each team must have 3 women and 3 men? Ans. The refree must be a woman and there are 7 ways to choose her. Choose the men for the Hackers and the women for the hackers. Altogether we get 7 ×

3

×

3

  1. (20 pts) Suppose a 0 = 0, a 1 = 1 and an+1 = 2an − an− 1 + 6n for n ≥ 1. Find a simple formula for an (not a recursion) and prove it by induction. Hint: Compute the first few values of an and look for a pattern.

Ans. The pattern is an = n^3. It is correct for n = 0 and n = 1. Consider n ≥ 1. We will prove that an+1 = (n + 1)^3 by induction. By the recursion and then the induction hypothosis and finally some algebra,

an+1 = 2an − an− 1 + 6n = 2n^3 − (n − 1)^3 + 6n = n^3 + 3n^2 + 3n + 1 = (n + 1)^3.

  1. (15 pts) Suppose n > 1 Imagine listing the n! permutations of { 1 , 2 ,... , n} in direct insertion order. What permutation has rank n!/2? Be sure to explain how you got your answer.

Ans. This is just past the middle of the list of permutations. The first decision in direct insertion order is which of two places to put 2. Since each choice leads to n!/2 per- mutations, we select the second choice and thereafter always select the first choice. This gives us 2, 1 , 3 , 4 ,... , n. In other words, the identity permutation with 1 and 2 switched.

  1. (35 pts) We have an unlimited supply of b different kinds of beads. We want to space k of them uniformly around a circle. (In other word, we want a k-long circular list.) (a) How many ways can this be done when k = 6 and all 6 beads must be different? Ans. This is just a circular list without repeats, which was dealt with in Chapter 1. The answer in general is b(b − 1) · · · (b − k + 1)/k, from which you can work out the answer for k = 6.

(b) How many ways can this be done when k = 6 and there is no restriction on the beads? Suggestion: Use the Burnside Lemma.

Ans. This is an example in the text. For completeness, here’s a solution. We can circularly shift the beads by 0, 1, 2, 3, 4, or 5. Here are the results

original b 1 b 2 b 3 b 4 b 5 b 6 shift by 0 b 1 b 2 b 3 b 4 b 5 b 6 shift by 1 b 2 b 3 b 4 b 5 b 6 b 1 shift by 2 b 3 b 4 b 5 b 6 b 1 b 2 shift by 3 b 4 b 5 b 6 b 1 b 2 b 3 shift by 4 b 5 b 6 b 1 b 2 b 3 b 4 shift by 5 b 6 b 1 b 2 b 3 b 4 b 5

A shift fixes a bead arrangement if and only if the bead shifted into a position is the same as the bead that was there originally. Hence we have the following conditions and resulting counts.

shift conditions number by 0 no conditions b^6 by 1 b 1 = b 2 = b 3 = b 4 = b 5 = b 6 b^1 by 2 b 1 = b 3 = b 5 and b 2 = b 4 = b 6 b^2 by 3 b 1 = b 4 , b 2 = b 5 and b 3 = b 6 b^3 by 4 b 1 = b 5 = b 3 and b 2 = b 6 = b 4 b^2 by 5 b 1 = b 6 = b 5 = b 4 = b 3 = b 2 b^1

Thus the answer is (b^6 + b + b^2 + b^3 + b^2 + b)/6 = b(b^5 + b^2 + 2b + 2)/6.

  1. (45 pts) Call an n × n matrix A of zeroes and ones bad if there is an index k such that ak,i = ai,k = 0 for all i. In other words, the row and column passing through (k, k) consist entirely of zeroes. Let g(n) be the number of n × n matrices of zeroes and ones which are not bad. We want to find g(n) by using inclusion and exclusion. Let K be a subset of { 1 , 2 ,... , n}. Let z(K) be the number of matrices A that have ai,j = 0 whenever either i or j or both belong to K. (a) Explain why z(K) depends only on |K| and n. Ans. Various explanations are possible. Here’s one. Permute the rows and colums so that those belonging to K now appear as the first |K| rows and first |K| columns. (b) Let zk(n) = z(K), where K is any subset of { 1 , 2 ,... , n} with |K| = k. (We can do this because of (a).) Obtain a formula for zk(n). Ans. Look at the case when K = { 1 , 2 ,... , k}. The matrix must consist entirely of zeroes except for an (n − k) × (n − k) block in the lower right which is arbitrary. This block contains (n − k)^2 entries and there are 2 choices for each entry. Thus the number of possible matrices is 2(n−k)

2 .