


Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



g(x) = (x^0 + x^1 + x^2 + x^3 + x^4 )^5.
We want the coefficient of x^12 in the above expression. g(x) can be rewritten as follows:
g(x) =
1 − x^5 1 − x
= (1 − x^5 )^5
1 − x
Let f (x) = (1 − x^5 )^5 and h(x) = (1 − x)−^5. Since the expansion of f (x) gives us only powers of x which are multiples of 5, to find the coefficient of x^12 , we can either take all of the xs from h(x) and none from f (x), 5 from f (x) and 7 from h(x), or 10 from f (x) and 2 from h(x). This leads to the solution:
a 12 =
g(x) = (x^0 + x^1 + x^2 + x^3 + x^4 + x^5 )^6 =
1 − x^6 1 − x
= (1 − x^6 )^6
1 − x
and we want the coefficient of x^15. Separating g(x) into f (x) = (1 − x^6 )^6 and h(x) = (1 − x)−^6 , we can either choose no xs from f (x) and all 15 from g(x), 6 from f (x) and 9 from h(x), or 12 from f (x) and 3 from h(x). This leads to the solution:
a 15 =
to give each person at most 5 lobsters. Once we know these quantities from the coefficients of the generating functions, the answer should be their product: as × a. Each person can get between 0 and 5 steaks, and there are four people, so the generating function for the steak problem isg(x) = (x^0 + x^1 + x^2 + x^3 + x^4 + x^5 )^4 =
1 − x^6 1 − x
= (1 − x^6 )^4 (1 − x)−^4 ,
and we want the coefficient of x^10. Breaking g(x) into f (x) = (1 − x^6 )^4 and h(x) = (1 − x)−^4 , we see that we can either take 0 xs from f (x) and 10 from h(x), or 6 from f (x) and 4 from h(x):
as =
Note that the only thing that changes in the lobster problem is which coefficient we’re interested in: x^15. The generating function is exacatly the same. Now we can still take 0 xs from f (x) and 15 from h(x), 6 from f (x) and 9 from h(x), or 12 from f (x) and 3 from h(x):
a` =
Putting it all together gives a total of:
as × a` =
G(x) =
x^0 0!
1 1!
2 2!
3 3!
4 4!
and we would want the coefficient of x^13 /13!.
G(x) =
x^1 1!
x^2 2!
x^1 1!
x^3 3!
x^5 5!
x^0 0!
x^1 1!
x^2 2!
where the first factor describes the pennies, the second describes the quarters, and the last describes nickels and dimes (which are unconstrained). We want the coefficient of xr^ /r!. Using some identities of the exponential,
G(x) = (ex^ − 1)
ex^ − e−x 2
(ex)^2 =
e^4 x^ − e^2 x^ − e^3 x^ + ex
and the coefficient is 1 2
(4r^ − 2 r^ − 3 r^ + 1).
(b) 0 and 1 each appear a positive even number of times? We can have any number of 2s, but 0 and 1 must appear 2, 4, 6, etc. times:
G(x) =
x^2 2!
4 4!
x^0 0!
1 1!
ex^ + e−x^ − 2 2
ex
and we again want the coefficient of xr^ /r!. Multiplying out gives us
G(x) =
e^3 x^ − 4 e^2 x^ + 6ex^ − 4 + e−x
So the coefficient of xr^ /r! (for r 6 = 0) is 1 4
(3r^ − 4 × 2 r^ + 6 + (−1)r^ ).
If r = 0, we must include the constant term from the generating function:
1 4