Let $f$ be an entire function and $\xi=e^{\frac{2\pi i}{n}}$ for some $n\in \mathbb{N}$. Suppose that $f\left(\xi z\right)=f(z)$ for all $z\in \mathbb{C}$. Show that there is a entire function $g$ such that $f(z)=g\left(z^{n}\right)$ for all $z \in \mathbb{C}$.
Remark: I have tried to express $g$ in terms of $f\left(\xi z\right)$ but my attempts have been unsuccessful.
Using power series is cheating because it makes it too easy. Say $$f(z)=\sum_{k=1}^\infty a_k z^k.$$
Now $f(\xi z)=f(z)$, with uniqueness of the power series coefficients, shows that $$\xi^ka_k=a_k$$for all $k$. If $k$ is not a multiple of $n$ then $\xi^k\ne1$, so $a_k=0$. Hence $$f(z)=\sum_{j=0}^\infty a_{jn}z^{jn}=g(z^n)$$if $$g(z)=\sum_{j=0}^\infty a_{jn}z^j.$$