I have a problem that I already received hints but still hard for me.
Let $f$ be an analytic function in a region $D$. Suppose that, for each $z \in D$ exist $n=n(z) \in \mathbb{N}$ such that $f^{(n(z))}(z)=0$. Prove that $f$ is polynomial.
What I already have is that I can define $D_n = \{ z \in D | f^{(n)}(z)=0 \}$ and I need to use exhaustion by compact sets.
I have no idea how to do that and I will apreciate if someone give me the most elementary awnser possible. (Or a really good hint)