Prereq Solutions
Prereq Solutions
• Do not open this quiz booklet until directed to do so. Read all the instructions on this page.
• When the quiz begins, write your name on the top of every page of this quiz booklet.
• You have 60 minutes to take this exam. Do not spend too much time on any one problem.
Read through all problems first, then solve them in an order that allows you to make the
most progress.
• Write your solutions in the space provided. Pages will be scanned and separated for grad-
ing. If you need more space, write “Continued on S1” and continue your solution on the
referenced scratch page at the end of the exam.
Name:
School Email:
2 6.006 Solution: Entrance Exam Name
Problem 1. Let A = {i2 | i ∈ {2, 3, 4, 5}} and B = {2i | i ∈ N and 0 < i < 10}. Evaluate:
(a) |A ∩ B| Solution: 2
(b) |A ∪ B| Solution: 11
Common Mistakes: Providing the sets for (a) and (b) instead of their cardinality.
Problem 2. Let X be the random variable representing the outcome of rolling one fair 6-sided
die. Let Y be the random variable representing how many chosen numbers are even, after choosing
exactly two numbers uniformly at random without replacement from set {1, 2, 3, 4, 5}. Evaluate:
Common Mistakes:
• Not knowing what an expected value is
• Thinking that E [X + Y ] = E [X] E [Y ] instead of E [X + Y ] = E [X] + E [Y ].
Problem 3. Let A = 600 × 6 and B = (60 × 4) + 2. Are the following statements True or False?
n
n+1 n n!
P
Problem 4. Prove by induction that i= 2
for any positive integer n. Note k
= k!(n−k)!
.
i=1
n+1
(n+1)! n(n+1)
Solution: Note that 2
= 2!(n−1)!
=
Induct on n. Base case: statement is true for n = 1,
2
.
n
1(1+1)
i = n(n+1)
P
since 2
= 1. Now assume by induction that 2
is true for n = k. We prove that the
i=1
statement is also true for n = k + 1:
k+1 k
X X 2(k + 1) k(k + 1) (k + 1)(k + 2)
i = (k + 1) + i= + = , as desired.
i=1 i=1
2 2 2
6.006 Solution: Entrance Exam Name 3
Problem 5. Prove by induction that the number of edges in any connected acyclic undirected
graph G = (V, E) is exactly one less than the number of vertices in the graph, i.e., |E| = |V | − 1.
You may use the fact that every connected acyclic undirected graph having more than one vertex
contains a vertex with degree one.
Solution: Induct on the number of vertices k. Base case: a graph with k = 1 cannot contain
edges without forming a cycle, so |E| = 1 − 1 = 0 as desired. Now assume by induction that the
claim is true for any connected acyclic undirected graph having k vertices, and consider any graph
G = (V, E) where |V | = k + 1 > 1. By the fact above, G contains a vertex v connected to exactly
one edge. Removing v and the edge connected to it yields a graph G0 = (V 0 , E 0 ), where |V 0 | =
|V | − 1 = k and |E 0 | = |E| − 1. G0 cannot contain a cycle since G is acyclic, and removing v and
its adjacent edge cannot separate the graph; so G0 is connected and acyclic. Then by the inductive
hypothesis, |E 0 | = |V 0 |−1, so |E| = |E 0 |+1 = |V 0 |−1+1 = |V |+1−1+1 = |V |+1, as desired.
Common Mistakes:
You can use this paper to write a longer solution if you run out of space, but be sure to write
“Continued on S1” on the problem statement’s page.