

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Solutions for various problems related to generating functions (gf) in math 173. Topics such as encoding differences between successive numbers picked, multiplying two gfs, and finding the mini-gf for each pile with no restrictions. The solutions involve using the difference rule and the formula for [(1-x)n].
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


(1) 6.1; 19) What would we like our GF to look like? Since there are five numbers to pick, we’d like five terms multiplied together; one for each choice. And we’d like the coefficient of xn (after everything is multiplied out) to be the number of ways of making the selection from 1 , 2 ,... n. But for the latter condition to be true, the exponents in each of the five pieces can’t be the actual numbers picked. The only thing that makes sense is for them to encode the differences between successive numbers picked. But even this setup isn’t quite right: We will need a sixth “choice” that encodes the difference between the final number picked and n + 1. This is a very similar setup to the “extra” box we introduced for those integer-equation problems like x 1 + x 2 + x 3 ≤ 5. In this case, you can think of the problem as asking you to choose six numbers between 1 and n + 1 where you must choose n + 1. So our first choice will be the difference between the lowest number picked and 1: encoded as (1 + x + x^2 + · · · ). The second through fifth choices will be the differences between successive numbers. We need a difference of at least two to avoid consecutive choices, so we can use (x^2 + x^3 + · · · )^4. The sixth choice will be the difference between the fifth number picked and the sixth number (i.e., n + 1). This difference needs to be at least 1. So the mini-GF here will be (x + x^2 + x^3 + · · · ). This leaves us with a final answer of [xn]
(1 + x + x^2 + · · · )(x^2 + x^3 + x^4 + · · · )^4 (x + x^2 + x^3 + · · · )
Notice that the book sets things up a little differently. We get their answer if we factor out an x · x^4. (2) 6.2; 3) This is a special case of the general problem of multipling two GF’s. Since the first GF is so simple, it’s best just to multiply out:
[x^8 ]
(1 + x^2 + x^4 )(1 + x)m
= [x^8 ](1 + x)m^ + [x^8 ]
x^2 (1 + x)m
x^4 (1 + x)m
m 8
m 8
m 6
m 4
(3) 6.2; 17) With no restrictions, the mini-GF for each pile would be (1 + x + x^2 + · · · ).
= [x^4 ]
(1 − x)^3
from the formula.
[x^10 ]
(1 − x)^2
(1 − x)^2
(1 − x)^2
=
Before reading further, see if you can figure out what the book did for its answer.
1
2
Answer: They used the difference rule to first compute [x^10 ](1 − x)−^3 , then subtracted off the number of ways of choosing at least three balls from the first pile).
[x^10 ](1 + x + x^2 + · · · )^2 (1 + x^2 + x^4 + · · · ) =
b=
[x^10 −^2 b]
(1 − x)^2
b=
10 − 2 b + (2 − 1) 10 − 2 b
(4) 6.2; 31) The RHS is [xr](1 + x)m+n^ = [xr](1 + x)m(1 + x)n. But if we use Rule 6 in the table on pg. 253, we immediately get the LHS.