Let $b(n)$ denote the number of binary partitions of $n$, that is, the number of partitions of $n$ as the sum of powers of $2$. Define \begin{equation*} F(x) = \sum_{n=0}^\infty b(n)x^n = \prod_{n=0}^\infty \frac{1}{1-x^{2^{n}}}. \end{equation*} Clearly, $F(x)$ satisfies the functional equation \begin{equation*} (1-x)F(x) = F(x^2). \end{equation*} Then, we have recurrence relation $b(2n+1)=b(2n)$ and $b(2n) = b(2n-2) + b(n), n\ge1$.
How to derive these recurrence relation from the given informations?
What I tried: We have \begin{equation*} \sum_{n=0}^\infty b(2n)x^n = \prod_{n=0}^\infty \frac{1}{1-x^{2^{2n}}} \end{equation*} and \begin{equation*} \sum_{n=0}^\infty b(2n+1)x^n = \prod_{n=0}^\infty \frac{1}{1-x^{2^{2n+1}}}. \end{equation*} But, I didn't get those recurrence relation.
Let $[x^n]g(x)$ denote the $n$th coefficient in the power series of some function $g$.
Note that $[x^n](1-x)F(x)=[x^n]F(x)-[x^{n-1}]F(x)$, if $n\gt1$, and this is allegedly equal to $[x^n]F(x^2)$. Since $F(x^2)=\sum_{n=0}^\infty b(n)(x^2)^n=\sum_{n=0}^\infty b(n)x^{2n}$, that is $[x^{2n}]F(x)=b(n)$, we find:
Which is the second relation.
Observe that there are no odd powers of $x$ in $F(x^2)$; thus $[x^{2n+1}]F(x^2)=0$ for all $n$. Using the same logic, you find $b(2n+1)-b(2n)=0$ which gives the first relation.
More detail:
Note:
The relations you gave at the end of your question were not at all obvious to me, and in general they would not be true. I'm not sure how you arrived at them, but I believe the argument was wrong in some way.
Answer to your questions in the comments:
Note that these functions will have different product representations to what you suggested; an exercise for you (it’s probably difficult - I’ve not tried - so don’t worry too much) might be to use the generating functions I’ve given you to find the correct products! Having said that, I’m not convinced about the product formula; the product is an even function of $x$, but the power series has odd components - I’m not familiar with partitions however, so I’ll leave you to figure that out / challenge your teacher.
As for why the second relation “implies $b(n)$ is even”, I think you’re asking why I chose to calculate $[x^{2n}]$ in the first bit of working out. I did so just... because! It was what worked, in order to figure out the relations. Feel free to clarify your question.