Question is prove or disprove: There exists an analytic function such that $f(1/n)=(-1)^n/n, n=1,2\dots$, with $0$ in the domain of $f.$
My attempt: If it exists, then clearly $f(z)=z^kg(z)$, where $k\ge0$ is the order of zero [or possible zero,I have included this by $k\gt0$] $z=0$ of $f(z).$Also,$g(0)\ne0$
So, $g(1/n)=f(1/n)n^k\implies g(1/n)=n^k\{\frac{(-1)^n}n\}$
Now the $\lim_{n\to\infty}\{\frac{(-1)^nn^k}n\}$ does not exist[of course,when $k\ge1$]$\implies g(0)$ doesn't exist.
But this is a contradiction to my assumption that $f$ is analytic.So such an $f$ doesn't exist.
And in case of $k=0$,above limit $\lim_{n\to\infty}g(1/n)=0$,which is again a contradiction.
Is there something wrong in above procedure?Please guide me through if there is some.I'll appreciate any help towards this.Thanks in advance!
PS:I stated that $g(0)\implies$ "contradiction to my assumption that $f$ is analytic".Well,I stated so because since by assumption $f$ is analytic and $z^k$ is entire[$k\ge0$],so $g$ must be analytic in the domain of $f$.