let $f:\mathbb{R} \to \mathbb{R}\ $ be infinitely times differentiable.such that $f(\frac{1}{n})=\frac{1}{n} \forall n \in\mathbb\ {N}$. then find $f(0),f^{k}(0)\ \forall\ k\in \mathbb{N} $.
it is easy to see because of continuity of $f$ ,$f(0)=0$. Now apply taylor formula for $f$ in $[0,x]$.we get $f(x)=xf'(0)+\frac{x^2}{2}f''(t)$ for some $t$ in $(0,x)$.since $f'' $ is bounded in $[0,x ]$ and putting $x=\frac{1}{n}$ in above expression and taking limit as $n\to \infty$. i get $f'(0)=1$.similiary taking other higher order taylor expenssion i get $f^{n}(0)=0$.
is this explaination right.please help.is there any better method to do this ?