I have the following generating function:
$ (x + x^2 + x^3 + ... + x^m)^k $
I want to find the coefficient of $x^n$ ($ n \geq k,m $)
I tried to think of it from a combinatorial perspective but couldn't get anywhere.
How do I go about it? Any ideas would be appreciated..
EDIT: As Macavity has pointed out, that is indeed what I'm trying to find.
The recurrence I came up with is:
$$ f(n,k) = \sum_{i=1}^m f(n-i, k-1) $$ where $ f(n,k) = 0 \space if \space n \leq 0 $ or $k \leq 0$
$and \space f(n,1) = 1 \space if n \in [1,m]$
It is convenient to use the coefficient of operator $[x^n]$ to denote the coefficient of $x^n$ in a series.
Comment:
In (1) we factor out $x^k$.
In (2) we use the geometric series expansion and we apply the rule $$[x^{p-q}]A(x)=[x^p]x^qA(x)$$
In (3) we apply the binomial theorem and use the binomial series expansion.
In (4) we use the linearity of the coefficient of operator, apply the rule as in (2) and restrict the upper limit of the outer series since the expoent of $x^{n-k-ml}$ is non-negative. We also use the binomial identity \begin{align*} \binom{-p}{q}=\binom{p+q-1}{p-1}(-1)^q \end{align*}
In (5) we select the coefficient of $x^{n-k-ml}$.