Suppose that a function $f(x)$ defined on $[0,1]$ satisfies $f(1/n)\to 0$ as $n\to\infty$. Is it true that $f(x)\to 0$ as $x\to 0^+$ provided
(a) $f$ is continuous on $[0,1]$ ?
(b) $f$ is differentiable $(0,1)$ ?
I know it will be true for example for the function $f(x)=sin(x)$ but is it true for any function $f(x)$? and how to prove it? I am thinking if $\frac{1}{n}$=$x$ then $x=\frac{1}{n}$ but I don't know how continue?
Can any one solve this problem for me?
Thanks so much.