I want to argue that $$\lim_{n\rightarrow\infty} \frac{1}{n}\sum_{k=1}^n f(k)=0~~~~~~~ {\rm if}~~~~~ \lim_{k\rightarrow\infty}f(k)=0.$$
This identity does not seem to hold always, but seems to hold in practice based on my experience. I guess there should be some conditions to make this identity hold.
For example, I think $f(k)$ may have to converge to zero uniformly, not pointwise. Or $f(k)$ may have to be an uniformly continuous function of $k$.
Can anyone help me set up the conditions and prove the identity?