I was given the following exercise:
Let $f(z)$ be analytic in an open and connected set $U$ containing the point $z=0$ and assume $|f(1/n)| < \frac{1}{2^n}$ for $n \in \mathbb{N}_{> 0}$. Prove that $f(z)=0$ in $U$.
My idea was to show that there exists an open neighborhood $A$ around $z=0$ such that $f(z)=0$ in $A$ since it is easy to show that $f(0)=0$. From this the result follows due to connectedness of $U$. I have however no idea how to do this.
Another idea was to consider the set $B = \{ 1/n | n \in \mathbb{N} \} \cup \{ 0 \}$ (which is not discrete) and show that $f(x)=0$ for all $x \in B$.
Can someone please help me out? Thanks in advanced!