Let $g$ be some power series $g(x)=\sum_{n=0}^{\infty}a_{n}x^{n}$, $\forall x$.
(a) If $g$ is an odd function, prove that it must be the case that $$ a_{0} = a_{2} = a_{4} = \cdots $$
(b) If $g$ is an even function, prove that it must be the case that $$ a_{1} = a_{3} = a_{5} = \cdots $$
Thanks!
$f$ is odd if and only if $f(x)+f(-x)=0$ for all $x$. This yields the identity $$2\sum_{k=0}^\infty a_{2k}x^{2k}=0$$ which should need no further explanation.
$f$ is even if and only if $f(x)-f(-x)=0$ for all $x$. This yields the identity $$2\sum_{k=0}^\infty a_{2k+1}x^{2k+1}=0$$ which should need no further explanation.