Let $U$ be an open subset of $\mathbb{C}$ which contains $0$ and $f \, : \, U \, \rightarrow \, \mathbb{C}$ an holomorphic function on $U$ such that $f(0)=0$. I want to show that :
There exist a function $\varphi$, holomorphic around $0$ and $n \in \mathbb{N}^{\ast}$ such that $f = \varphi^n$.
My attempt :
Because $f$ is holomorphic on $U$, it is analytic around $z=0$ and that means that there exist $r > 0$ such that $D(0,r) \subset U$ and
$$ \forall z \in D(0,r), \; f(z) = \sum_{k=0}^{+\infty} a_k z^k $$
where $(a_n)_{n \geq 0} \in \mathbb{C}^{\mathbb{N}}$. Let $k_0 = \min \lbrace k \geq 1, \; a_k \neq 0 \rbrace$. Then :
$$ \forall z \in D(0,r), \; f(z) = z^{k_0} g(z) $$
where :
$$ \forall z \in D(0,r), \; g(z) = \sum_{k=k_0}^{+\infty} a_k z^{k- k_0}. $$
$g$ is holomorphic on $D(0,r)$ and $g(0) = a_{k_0} \neq 0$. Since $g$ is continuous, there exist $\eta > 0$ such that $g \neq 0$ on $D(0,\eta) \subset D(0,r)$. Therefore :
$$ \forall z \in D(0,\eta), \; f(z) = z^{k_0} g(z) $$
and $g$ is nonzero on $D(0,\eta)$. Which complex logarithm shall I consider to conclude ? As long as $z \in \mathbb{C} \smallsetminus ]-\infty,0]$, I can write $z^{k_0} = \exp\big( k_{0} \operatorname{Log}(z) \big)$.
Note that $f(z)=a_{k_0}z^{k_0}h(z)$, with$$h(z)=1+\frac{a_{k+1}}{a_k}z+\frac{a_{k+2}}{a_k}z^2+\cdots.$$Besides, $a_{k_0}\neq0$, and therefore $a_{k_0}=e^\omega$, for some $\omega$. Now, you consider$$\log(z)=z-\frac{z^2}2+\frac{z^3}3-\frac{z^4}4+\cdots$$on a neighborood of of $1$ so small that its image under $\log$ is contained in $D(0,\eta)$. Then$$f(z)=z^{k_0}\exp\left(\omega+\log\bigl(h(z)\bigr)\right).$$