[Math] Generating Function for Even Number of Odd Parts

combinatoricsinteger-partitionsnumber theory

How I would write the generating function for a partition of a positive integer n with an even number of odd parts?

Any hints or suggestions will be greatly appreciated.

Best Answer

If $n$ is odd, then no partition of $n$ has an even number of odd parts. If $n$ is even, then every partition of $n$ has an even number of odd parts. So the generating function is just $Q(x)=\sum_0^{\infty}p(2k)x^{2k}$, where $p$ is the ordinary partition function. If we write $P(x)=\sum_0^{\infty}p(n)x^n$, then $Q(x)=(1/2)(P(x)+P(-x))$. You can play around with this to see if you get anything nicer.

EDIT: One way to write this generating function is $$\prod_{k=1}^{\infty}(1-x^{4k-2})^{-2}(1-x^{4k})^{-1}$$