Write down the generating function for the number of partitions of $n$ in which each odd part can occur any number of times but each even part can occur at most twice. Apply algebra to this generating function to complete the following theorem:
The number of partitions of n in which each odd part can occur any number of times but each even part can occur at most twice is the number of partitions of n in which...
The generating function I've found for the first part is $$\prod_{k\geq1}\frac{(1+x^{2k})^2}{1-x^{2k-1}}$$ but I'm unsure how to start the second part, any help would be appreciated.