I hope some of the questions are easy. I suggest you do those first. Some are open ended - use your time wisely.
Here's a picture for n = 4.
The following table enumerates some features for n = 2,3 and 4.
number of lines vertices regions edges 2 1 4 4 3 3 7 9 4 6 11 16
Each pair of lines crosses just once, so counting vertices is the handshake problem we studied on the first day of class. There are C(n,2) = n(n-1)/2 vertices.
The n-1 vertices on each line divide the line into n edges, so there are n*n = n2 edges.
Counting the regions is a little harder. There are several ways. Here's one. Let R(k) = the number of regions when there are k lines. Then R(1) = 2. If there are k lines drawn and you add one more, that line splits k of the existing regions in two, so R(k+1) = R(k) + k. That recursive formula says that
R(n) = 2 + 3 + ... + n = 1 + (1 + 2 + ... + n) = 1 + C(n+1,2) = 1 + (n+1)n/2
The Euler formula for these configurations is just V-E+R=1. To prove it, just do the algebra starting with the answers to (a).
"Coloring" means "color the regions". You can always do it with two colors. Suppose that's been done for n lines. When you add a line you can just reverse all the colors on one side of the line, changing some regions completely and changing pieces of the n regions that have been split.
Alternatively, note that every vertex has degree four, so the dual graph is bipartitite and hence two-colorable.
Yes. Each new line splits two unbounded regions, so the number of unbounded regions increases by 2, so for n lines there are 2n unbounded regions.
Counting the unbounded regions and the bounded regions and proving the Euler formula are related problems. For example: if you remove all the unbounded regions and the unbounded edges then you have a graph that satisfies the Euler formula we know about. Since you know the number of vertices and edges, you can use that to compute the number of bounded regions. That allows you to compute the number of regions (add back the 2n unbounded ones) and to verify the Euler formula for the whole configuration.
f(x,y,z) = (x + 3y + 5z)2008
dxaybzc
) will there be
if you multiply this out?
There are as many terms as there are sums a+b+c=2008 with a, b and c nonnegative integers. We counted those in class (apples, bananas and cherries) and found the anser C(2010,2). You could have looked it up in your notes.
Hardly anyone got this right. Some got close.
x2005y2z1
?
There are 2008 ways to pick the factor that contributes the z and then C(2007,2) ways to choose the two factors that contribute the y's. So the answer is 2008*(2007*2006/2)*45. The 45 is the factor from the coefficients of y and z themselves.
xy = yx
. What
is the answer to part (a) if x, y
and z represent
matrices, for which multiplication may not be commutative.
This is the number of 2008 letter words you can build from a three letter alphabet: 32008.
Here are some hints you shouldn't need - but I really want to read correct answers, so I'll provide them anyway. (If you didn't need them, let me know. If they helped, let me know that too.)
1 + 2 + ... + 22007 = 22008 -1You ought to know the sum of that geometric series without having to think twice!
Since the SG value for a Nim pile is the number of counters in the pile, the SG value for this game is the nim sum of the powers of 2. But each of those powers of 2 has a single bit set in its own column, nothing cancels in the nim sum, which is just the string of 2007 1's. That's the binary representation of 22008 -1, so the answer to (b) is the same as the answer to (a).
Remove one chip from the largest pile, converting the SG value from 100...000 to 11...111. Then there are two 1's in each column when you look at all the piles, so the nim sum is 0: a P position.
The Euler phi function.
Euler's theorem (from number theory).
Euler paths.
Euler's theorem on the existence of Euler paths (the Konigsburg bridge problem).
The Euclidean algorithm takes only two steps to show that gcd(2008,4267) = 251, and that 251 = 1*4267 - 2*2008.
From the previous problem, we know that 2008 = 8*251. 8 and 251 are relatively prime, and 251 is prime (you need to say that!) so
phi(2008) = phi(8) * phi(251) = 4 * 250 = 1000.I was amused to find that out.
t(n) is odd if and only if ...
... n is a perfect square.Proof: The factors of n come in pairs d and n/d. They are equal only when d = n/d, so n = d2. Only then is t(n) odd.
If m and n are relatively prime then t(mn) = t(m)t(n).This is true. To prove it, note that the divisors of a number correspond to subsets of the set of primes dividing that number (you need the fundamentatal theorem of arithmetic to prove that). When m and n are relatively prime, they have no prime factors in common. Now the theorem follows from the fact that there's an obvious one to one correspondence between the cartesian product P(A)X P(B) and P(A union B) when A and B ar disjoint. (That was a homework problem.)
Use part (b) to conclude that t(2008) = t(8)*t(251) = 4*2 = 8. Or just list all 8 divisors of 2008.