Q1: 20 points Q2: 40 points Q3: 20 points Q4: 20 points Total: 100 points
Question text is in black, solutions in blue.
Correction in green made 16 November 2016.
Correction in orange made 17 November 2016.
FALSE. The correct number is given in part (c).
FALSE. I meant for this to be true, because I meant to write "P(n, k)C(n, k)" without the C(n, k) being squared. That would have been correct since we could pick a set of k rows in C(n, k) ways, then place a rook in the first selected row in k ways, the next in k-1, and so on.
TRUE. If we choose a set of rows and a set of columns, there are k! ways to place noncapturing rooks on those rows and columns.
FALSE. This is the number of ways to distribute r identical treats to n distinct dogs.
TRUE. The partition number P(7) is 15, for the partitions 7, 61, 52, 511, 43, 421, 4111, 331, 322, 3211, 31111, 2221, 22111, 211111, and 1111111.
FALSE. 4111 is self-conjugate (it is the only one).
FALSE. This formula fails if A = B = C = {x}. The LHS is 1 but the RHS is 3 - 6 + 3 = 0.
FALSE. If c = 1 this works, but if c ≠ 1 it won't in general. For example, if c = 2 and d = 1, an = 2na0 + 2n - 1, which is not linear unless a0 = 0, and does not have slope d if a0 = 0.
FALSE. This is the rule for ordinary generating functions, but for example if an = bn = 1 for all n, f(x) = g(x) = ex, so f(x)g(x) = e2x which is the EGF for 1, 2, 4, 8,..., not for 1, 2, 3, 4,...
TRUE. This is the expansion by the Binomial Theorem of (-1+2)n.
Give each dog two treats, then choose a multiset of size 3 from the four dogs to distribute the other three. By the stars and bars argument, there are C(3+4-1, 4-1) = C(6, 3) = 20 such multisets.
The EGF for the number of ways to distribute at least two distinct treats to one dog is x2/2! + x3/3! + ... = ex - 1 - x. So the EGF for four dogs is (ex - 1 - x)4. We would need to multiply out this function, determine its x11 coefficient, and multiply that coefficient by 11!.
The size of X is C(11+4-1, 4-1) = C(14, 3). The size of A is the number of ways to give either ten or eleven treats to the other three dogs, which is C(10+3-1, 3-1) + C(11+3-1, 3-1) = C(12, 2) + C(13, 2), and of course B, C, and D have the same size. To use I/E, we need |X| - |A| - |B| - |C| - |D| + (C(4, 2) terms like |A∩B|) - (C(4, 3) terms like |A∩B∩C| + (last term which is zero because no distribution in X is in all four sets). |A∩B| is the number of ways to give zero or one treat to each of Arly and Biscuit, and the rest to the other two dogs, which is C(11+2-1, 2-1) + 2C(10+2-1, 2-1) + C(9+2-1, 2-1). |A∩B∩C| is just the number of ways to give zero or one treat to each of the first three dogs, since for each of these there is only one way to give Duncan all the other treats.
The GF is (x2 + x3 + ...)4, which we can express as (x2/(1-x))4 = x8/(1-x)4. We want the x11 coefficient of this GF, which is the x3 coefficient of 1/(1-x)4.
a3 = 3a1 + 2a0 = 3(0) + 2(2) = 4.
a4 = 3a2 + 2a1 = 3(7) +
2(0) = 21.
a5 = 3(4) + 2(7) = 26.
a6 = 3(21) + 2(4) = 71.
a7 = 3(26) + 2(21) = 120.
The polynomial is x3 - 3x - 2 = 0.
One of the roots is 2 since 23 - 3(2) - 2 = 0.
(We might guess 2 as a root because the solutions in part (a)
start to look like they are around doubling each time.)
Dividing the polynomial by x - 2 gives us x2 + 2x +
1, so the other two roots are each -1.
The general solution is A2n + (Bn + C)(-1)n. The n = 0 case tells us that A + C = 2. The n = 1 case tells us that 2A - (B + C) = 0, and the n = 2 case tells us that 4A + (2B + C) = 7. Subtracting the first equation from the third says that 3A + 2B = 5, and adding the first two tells us that 3A - B = 2. This solves to A = B = C = 1, so the solution is an = 2n +(-1)n(n + 1) which fits the results in part (a).
We can just prove that g(n) satisfies the recurrence and the initial
conditions. First,
g(0) is C(0, 0) which is 1. Next, g(1) is C(1, 0) + C(0, 1) =
1 + 0 = 1 as well.
Finally, g(n-1) + g(n-2) is the sum for i
from 0 to n-1 of C(n-1-i, i) plus the sum for i from 0 to n-2
of C(n-2-i, i). We can write the second sum as the sum for i
from 1 to n-1 of (C(n-1-i, i-1). Note that this sum is the
same if we make it for i from 0 to n-1, since C(n-1-0, 0-1) = 0.
The total is the sum for i from 0 to n-1
of [C(n-1-i, i) +
C(n-1-i,i-1)].
By Pascal's Identity, the expression in brackets is C(n-i, i),
so the sum is the desired one for g(n).
Last modified 17 November 2016