I'm having trouble in this homework question. Let's suppose $U=\mathbb{C}-\{z\in\mathbb{C}:Re(z)\leq 0\}$ and $n\in\mathbb{Z}^*_+$. I need to find all holomorphic functions $f$ that satisfies the functional equation $z=(f(z))^n$, for all $z\in U$.
How should I approach this problem? The domain suggests the use of logarithm, but I'm not sure how.
I tried working with $f(z)=|f(z)|(\cos(\theta(z))+i\sin(\theta(z)))$ where $\theta$ is its principal argument, that is, $\theta(z)\in (-\frac{\pi}{2},\frac{\pi}{2})$, which led me to these $n$ functions $$ f_k(z)=\sqrt[n]{|z|}\left(\cos\left(\frac{\theta(z)+2k\pi}{n}\right)+i\sin\left(\frac{\theta(z)+2k\pi}{n}\right)\right) $$ , $k=0,1,...,n-1$, and each one of these satisfies $(f_k)^n(z)=z$. But if this is correct why aren't there functions defined on all $z$?