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