I know how to reduce this problem to the convolution of 2 polynomials and then finding the sum of products of certain pairs of coefficients.
I am looking for a faster way or a closed form if possible to find the power of $x^N$ in $(1 + x + x^2 + x^3 + ... + x^A)^K$.
I want to avoid iterating over $N$ to find the sum of products of certain coefficients, in the usual solution to this problem.
Is a closed form possible here?
You can use higher order differentials. That is, assuming $A,K\in\Bbb{N}$, if $$f(x)=(1 + x + x^2 + x^3 + ... + x^A)^K$$ then the coefficient of $x^n$ in $f(x)$, i.e., $a_n$, is $$a_n=\frac{f^{(n)}(0)}{n!}$$ where $$f^{(n)}(x)=\frac{\mathrm{d}^n}{\mathrm{d}x^n}f(x)$$ This is a closed-from solution, but I don't know that's what you're looking for.