Q1: 15 points Q2: 20 points Q3: 25 points Q4: 30 points Q5: 30 points Total: 120 points
Exam text is in black, solutions in blue.
x is a divisor of y if y = xz for some integer z. x is a multiple of y if x = yz for some integer z.
Disjoint events have Pr(x ∧ y) = 0, i.e., they cannot both occur. Independent events have Pr(x ∧ y) = Pr(x)Pr(y) -- this is the case if neither event has any influence on the other.
A symmetric relation has the property that for any x and y, P(x, y) → P(y, x). An antisymmetric relation has the property that for any x and y, (P(x, y) ∧ P(y, x)) → (x = y).
The zero matrix Z has every entry zero, so that ZX = XZ = Z for any matrix X of the appropriate size. The identity matrix I has 1's on the main diagonal and 0's everywhere else, so that IX = XI = X for any matrix X of the appropriate size.
A tree is a simple graph without cycles, but it must also be connected.
X first has four choices of dog. Then Y has three, because the dog picked by X is excluded. Then Z has two, because the dogs picked by X and Y are excluded. By the Product Rule, there are 4 × 3 × 2 = 24 total ways to pick the dogs.
The set of dogs picked must be a subset of the total set of dogs, of size 3. There are C(4, 3) = (4 × 3 × 2)/(1 × 2 × 3) = 4 possible sets, corresponding to the four choices of which dog is not chosen.
There are 43 =
64 ways for each student to choose a dog, and all are
equally likely. There are 24 ways for the dogs to be distinct,
as we computed in part (a), so the probability is 24/64 = 3/8.
Alternatively, we could argue that X must have a new dog, then
Y has a 3/4 chance of picking a dog other than X's, then Z has
a 2/4 chance of picking a dog other than X's or Y's, so the
probability is 1 × (3/4) × (1/2) = 3/8.
This is a "stars and bars" argument. If we let a 0 represent each student, and place a 1 for the boundaries between A's and B's students, between B's and C's, and between C's and D's, we get a binary string with three 0's and three 1's, each such string representing exactly one choice of numbers of students for each dog. There are C(6, 3) = (6 × 5 × 4)/(1 × 2 × 3) = 20 such strings.
P(x, c) ↔ (P(y, b) ∨ P(z, d))
∃u:∃v:∃w: P(u, v) ∧ P(u, w) ∧ (v ≠ w)
For every dog, there is a student who pets that dog.
There are four dogs and three students. If every dog is petted according to the statement of (c), the total number of pettings must be at least 4, one for each dog. If the statement of (b) were false, the total number of pettings could be at most 3, one for each student. So (b) must be true.
FALSE. Not every function is onto. For example, there is a function where every student pets Cardie.
FALSE. The statement of 3 (b) must be false, as there are only three students and four dogs, and in a function the students would only pet one dog each.
FALSE. It is (3/4) × (3/4) = 9/16, greater than 1/2.
TRUE. Yolanda's dog is one of Zhang's four equally likely choices.
TRUE. Odd - even + odd - even = even.
TRUE. If P(x) were true for any x, there would have to be a smallest positive integer x for which it were true. This cannot be 1 because P(1) is false, and if it were any other number x the number m of the second assumption could not exist. (Actually we don't even need the first assumption to get a contradiction.)
TRUE. The bitwise XOR of 3, 4, 5, 6, and 7 is 3. By changing the 3 to a 0, we change the bitwise XOR to 0, which is a winning move. We can win by continuing to make the bitwise XOR 0 on each of our moves, as each of our opponent's moves will change it from 0 to something else.
FALSE. There could be as many as n(n-1)/2, which is greater than 2n - 1 for most n. For example, n could be 5, and we could have as many as 5(5-1)/2 = 10 edges, but 2n - 1 is only 9.
FALSE. If G is not connected, for example if it has more than one node and no edges at all, there is no such cycle.
TRUE. The edge is in itself a path, and the transitive closure includes all pairs (x, y) such that there is a path from x to y.
Also consider a Markov process P with the same states A, B, and C, where the probability of transitioning on each edge of G is 1/2. (Thus from C, for example, the probability of going to C is 1.) Let Z be the matrix of this Markov process.
1 1 0 1/2 1/2 0
M = 0 1 1 Z = 0 1/2 1/2
0 0 2 0 0 1
1 2 1 1 3 4
M^2 = 0 1 3 M^3 = 0 1 7
0 0 4 0 0 8
1 n 2^n - n - 1
0 1 2^n - 1
0 0 2^n
For the base case, we plug n = 1 into the given matrix and
confirm that the result is exactly n.
The IH is that Mn-1 is the matrix:
The inductive goal is that Mn is the given
matrix. To confirm this, we multiply M by the matrix
above for Mn-1. The top row of the result is
the sum of the top and middle rows of Mn-1,
which is exactly (1, n, 2n - n - 1) as it
should be. The middle row of the result is the sum of
the middle and bottom rows of Mn-1, which is
(0, 1, 2n - 1) as it should be. And the bottom
row of the result is twice the bottom row of Mn-1,
which is (0, 0, 2n) as it should be.
1 n-1 2^{n-1} - (n-1) - 1
0 1 2^{n-1} - 1
0 0 2^{n-1}
Since Z = (1/2)M (in that every entry of Z is half the
corresponding entry
of M), z3 is just (1/2)3M3 =
(1/8)M3 which is:
1/8 3/8 1/2
Z^3 = 0 1/8 7/8
0 0 1
We need the (A, C) (or top right) entry of the matrix Z6.
This is the dot product of the top row of Z3 and the
right column of Z3, which is (1/8 × 1/2) +
(3/8 × 7/8) + (1/2 × 1) = 4/64 + 21/64 + 32/64 = 57/64.
We could also use the result of (c) to find that the top right
entry of M6 is 26 - 6 - 1 = 57, so that
the top right entry of Z6 is (1/2)6 times
that, or 57/64.
Last modified 10 January 2017