Consider the inequality $x_1 + x_2 + x_3 + x_4 ≤n$ where $x_1,x_2,x_3,x_4,n ≥ 0$ are all integers. Suppose also that $x_2 ≥ 2$, that $x_3$ is a multiple of 4, and $1 ≤ x_4 ≤ 3$. Let $c_n$ be the number of solutions of the inequality subject to these restrictions. Find the generating function for the sequence $\{c_n: n≥0\}$ and use it to find a closed formula for $c_n$.
I have figured out that $$G(x)= \frac{1}{1-x^4}\frac{1}{1-x}(x^2+x^3+x^4)(x+x^2+x^3)$$ because I analyzed the conditions for each variable separately. I am unsure how to solve the closed form, what steps to take because this is a weird equation where I can't seem to simplify stuff.
Please let me know if you have any questions.
First, let's sort out what the generating function is.
$x_1$ can be any non-negative integer: $$1+x+x^2+x^3+x^4+\ldots$$ $x_2$ is any integer greater than or equal to $2$: $$x^2+x^3+x^4+x^5+\ldots$$ $x_3$ is a non-negative multiple of four: $$1+x^4+x^8+x^{12}+\ldots$$ $x_4$ is in $\{1,2,3\}$: $$x+x^2+x^3$$
Multiplied together: $$\frac1{1-x}\cdot\frac{x^2}{1-x}\cdot\frac1{1-x^4}\cdot(x+x^2+x^3)$$ $$=\frac{x^3+x^4+x^5}{(1-x)^2(1-x^4)}$$