The pgf of a random variable that takes values in is:Originally Posted by zealot
where is the probability that takes a value .
So if you write the pgf as a power series in the probability
is equal to the coeficient of in the expansion.
What you lecturer has done is collect together the terms containing the same
powers of , and the resulting coefficients are the required probabilities.