Let $f:(0,\infty)\rightarrow\mathbb{R}$ be a function.
My question is Find an example such that the sequence $(f(n)-f(n+1))$ is divergent as $n\to\infty$.
I found a lot of well known functions which they are divergent, but $(f(n)-f(n-1))$ is convergent such as $f(x)=\sqrt{x}$. Even I dealt to some functions with mentioned property but they are cooked up from other simple functions. anyone can take a well known example about my question. Thanks.
What about the function $f(x)=\cos(\pi x)$?