Https:web Cs Hacettepe Edu TR: bbm205:arxiv:Fa18Ex1Soln
Https:web Cs Hacettepe Edu TR: bbm205:arxiv:Fa18Ex1Soln
Https:web Cs Hacettepe Edu TR: bbm205:arxiv:Fa18Ex1Soln
Name:
Student ID:
Question: 1 2 3 4 5 6 7 8 9 Total
Points: 12 9 10 10 15 10 12 12 10 100
Score:
1. (12 points) Use the extended Euclid algorithm to find integers x and y that satisfy
Solution: We use proof by contradiction, assume that we can color G with less
than four colors, say using three colors as {1, 2, 3}. Let f be the color function for
the vertex set as f : V (G) ! {1, 2, 3}.
Since c and d are neighbors, they must have di↵erent colors, say i and j, i, j 2
{1, 2, 3}. Then, f (x) 6= i, j and f (z) 6= i, j, because they are both neighbors of c and
d. Since, there is only one color left in {1, 2, 3} other than i and j, call this k, both
f (x) = k and f (z) = k. So, f (x) = f (z).
By the similar idea (because of symmetry), we also see that f (x) = f (y). However,
this gives f (x) = f (z) = f (y) and this is not proper coloring, because y and z are
neighbors. Hence, there is no proper 3-coloring of G and we need at least 4 colors.
To see 4 colors are enough, just provide any proper coloring function f : V (G) !
{1, 2, 3, 4}. One example is as f (x) = 1, f (a) = f (c) = 2, f (b) = f (d) = 3, f (y) = 1
and f (z) = 4.
Page 2
3. (10 points) Prove that for every positive integer n,
Page 3
5. (15 points) Indicate true or false for the following statements about the greatest com-
mon divisor, and provide counterexamples for those that are false.
(a) If gcd(a, b) 6= 1 and gcd(b, c) 6= 1, then gcd(a, c) 6= 1.
Solution: False
Let b = 15, a = 3 and c = 5.
Although, gcd(3, 15) = 3 and gcd(15, 5) = 5, we see that gcd(3, 5) = 1.
Solution: True
Solution: True
Solution: False
Let a = 3 and b = 9.
We see that gcd(1 + 3, 1 + 9) = gcd(4, 10) = 2, but 1 + gcd(3, 9) = 1 + 3 = 4 6= 2.
(e) If an integer linear combination of a and b equals 1, then so does some integer linear
combination of a and b2 .
Solution: True
Page 4
6. (10 points) Prove that if m + n and n + p are even integers, where m, n and p are
integers, then m + p is even.
7. (12 points) Determine if the two graphs below are isomorphic. If they are, provide an
isomorphism function. If not, explain why.
a) b)
Solution:
(a) Yes. The isomorphism function is as follows:
(b) Yes. The isomorphism function is as follows (note that there can be more than
one isomorphism function in this example):
Page 5
8. (a) (6 points) Draw the following graphs: K5 , Q2 , Q3 . How many edges and vertices
does each graph have?
Solution:
(b) (3 points) Is there a graph (not necessarily simple) with five vertices with degrees
{3, 2, 1, 3, 2}. If yes, give an example. If no, explain why.
Solution: There is no such graph, because the sum of these numbers is 11, but
the degree sum of a graph should always be even.
1010 0010
9. (10 points) Use proof by contradiction to show that at least 10 of any 64 days chosen
must fall on the same day of the week.
Solution: Assume that we have at most 9 from each day of the week. Then the
total number of days is at most 9 · 7 = 63, but there are 64 days, a contradiction.
Page 6