I'm checking this problem:
Find the integer solutions of $a+b+c=15$ if $a$ is multiple of 3, $b$ is less than 10 and $c$ is multiple of 2. With $a, b, c ≥ 0$
We can make a series of polynomials with combinatorics. The polynomials would be: $$P_a(x)=1+x^3+x^6+x^9+\dots$$
$$P_b(x) = 1 +x+x^2+x^3+\dots + x^9 = \frac{1-x^{10}}{1-x}$$
$$P_c(x) = 1+x^2 + x^4 + x^6 + \dots$$
I want to know if my $P_a(x)$ and $P_c(x)$ are stated correctly and how can they be simplified so that I get to $x^{15}$ in an easier way.
Big thanks for your help.
Without a CAS, I'm not sure there's a good way to do this. We have $$P_a=\frac1{1-x^3}\\P_c=\frac1{1-x^2}$$ so that if $$P(x)=\frac1{(1-x)(1-x^2)(1-x^3)}=\sum_{n=0}^\infty a_nx^n$$ we want $a_{15}-a_5$. The power series for $P(x)$ doesn't seem easy to calculate. Putting it in WolframAlpha, I got $a_{15}=27, a_5=5$ giving an answer of $22$. The series coefficients don't seem to follow a simple pattern. I get$$ 1,1,2,3,4,5,7,8,10,12,14,16,19,21,24,27,30,33,37,\dots$$ This turns out to be A001399,
but no simple formula is given.There are two fairly simple formulas given. The one mentioned by Rob Pratt in the comments, and also $$a_n=\left\lfloor\frac{n^2+3}{12}\right\rfloor+\left\lfloor\frac{n+2}{2}\right\rfloor$$ I don't know how to prove either one of them.