Is there a computationally efficient way of calculating the coefficients of the polynomial expansion of expressions like $(1+x^a)^m(1+x^b)^n$ for arbitrary positive integers $m,n,a,b$ (and especially with $a=1$ and $b=2$)? The bi-binomial expansion $\sum_{i=0}^m\sum_{j=0}^n \binom{m}{i}\binom{n}{j}x^{ai+bj}$ doesn't really solve the problem, as adding up the contribution from all the possible combinations of, say, $k = ai+bj$ is still quite inefficiet...
And, by the way, I need all the coefficients at the same time, so some kind of fast iterative relation works fine too!
The canonical way to solve this kind of problem is via Stirling's theorem or normal approximation. I doubt if there are quick ways to solve this precisely because the complexity is exponential.