Let me first give a few examples:
How many ways are there to select 25 toys from 7 types with between 2 to 6 of each type.
How many ways can we distribute 25 identical balls to 7 boxes where the first box can have at most 10 balls.
There seems to be a method to solve this sort of question using generating functions. The set up for the second question is as follows: $(1+t+...+t^{10})(1+t+...) = \frac{1}{(1-t)^7} - \frac{t^4}{(1-t)^7}$ and from here I get confused as to how we obtain our answer.
I would love some clarification on this concept and some help to finish the example started above!
Thank you! :)
In order to obtain the coefficient it is convenient to use the coefficient of operator $[t^k]$ to denote the coefficient of $t^k$ in a series.
Comment:
In (1) we apply the geometric series formula.
In (2) we use the linearity of the coefficient of operator and apply the rule $[t^{p-q}]A(t)=[t^p]t^qA(t)$.
In (3) we apply the binomial series formula.
In (4) we use the binomial identity $\binom{-p}{q}=\binom{p+q-1}{p-1}(-1)^q$.
In (5) we select the coefficients accordingly.