Self-conjugate partition and distinct odd parts (source code)

= Self-conjugate partition and distinct odd parts

A self-conjugate partition is determined by the hook lengths of its diagonal cells. These are distinct odd positive <integers>, and every partition into distinct odd parts arises uniquely this way. Hence their <generating function> is
$$
\prod_{i=1}^\infty(1+x^{2i-1}).
$$