Find the number of nonnegative integer solutions for the equation using generating functions $$y_{1}+2y_{2}+2y_{3}=n$$ I'm going to let $$y_{1}=e_{1}$$ $$2y_{2}=e_{2}$$ $$2y_{3}=e_{3}$$ so it becomes $$e_{1}+e_{2}+e_{3}=n$$
I can represent it as the product $$(1+x+x^2+...)(1+x^2+x^4+...)(1+x^2+x^4+...)$$ $$=\frac{1}{1-x}\frac{1}{(1-x^2)}\frac{1}{(1-x^2)}$$ $$=\frac{1}{(1-x)^3(1+x)^2}$$
Then I could set up partial fractions to find the number of nonnegative integer solutions- is there a better way to do this? or can you help me complete this problem please?