A generating function ends up rearranged into a form:
\begin{align} (1+x+x^2+\dotsb)^n&=\frac{1}{(1-x)^n}\\[6px] &= 1+\binom{1+n-1}{1}x+\binom{2+n-1}{2}x^2+\binom{3+n-1}{3}x^3\\ &\phantom{=\;1}+\dots+\binom{r+n-1}{r}x^r+\dotsb \end{align}
used to extract coefficients.
I can't find a proof (some construction akin to Pascal's triangle, for example) of these coefficients working for all cases.
Probably, it is just a matter of knowing the term to include in the online search, and if this is the case, I'll be happy to delete the question.