I'm supposed to find the generating function of the number of partitions of a natural number n, where no summand can be higher than 3. For example, where n=8, the sum 2+3+3 is fine, but 2+2+4 isn't.
I was thinking of the following of using the following function: (1+x^1+x^2+...)(1+x^2+x^4+...)(1+x^3+x^6+x^9+...). The idea is I'm choosing how many "ones" to add to the sum with the first term ,how many "twos" with the second term and how many "threes" with the third. So if I wanted to say for n=8, and the sum 1+2+2+3 then I'll take x^1 from the first term, x^4 from the second and x^3 from the third.
I hope it is clear enough to understand. I don't have any final solutions to compare to, so I am wondering if this is at all correct.
Thanks for the help.