Give an example of a non-monotonic function for which the series $\displaystyle f(n)$ converges and the integral from 1 to infinity of f(x) diverges.