Show that there exist a unique function $f(z)$, define as the series $$f(z)=\sum_{n=0}^{\infty}{a_{n}z^{n}}$$ with positive radii convergence, such that $f(0)=2$ and for all $z\in\mathbb{C}$, $f'(z)=f(z)-1$
My approach: If $f'(z)=f(z)-1$, then $$\sum_{n=1}^{\infty}{a_{n}z^{n}}=\sum_{n=0}^{\infty}{a_{n}z^{n}}-1\implies a_{0}=1$$ But $f(0)=a_{0}=2$, so I don't see how prove this exercise or maybe it has some mistake.
Your mistake is:
$\sum_{n=1}^{\infty}{a_{n}z^{n}}=\sum_{n=0}^{\infty}{a_{n}z^{n}}-1$.
From $f'(z)=f(z)-1$ we get
$\sum_{n=1}^{\infty}{na_{n}z^{n-1}}=\sum_{n=0}^{\infty}{a_{n}z^{n}}-1$.