Proof (integral test)

We'll prove the second statement explicitly since it's easy: for $n-1\leq x\leq n$, we have the identity $$ \begin{align*} f(n-1) \geq f(x) \geq f(n). \end{align*} $$ Integrating over $[n-1, n]$, $$ \begin{align*} f(n-1) \geq \int_{n-1}^{n} f(x)\, dx \geq f(n). \tag{*} \end{align*} $$ Summing up, $$ \begin{align*} \sum_{r=1}^{n-1} f(r)\geq \int_{1}^{n} f(x)\, dx \geq \sum_{r=2}^{n} f(r). \tag{\dagger} \end{align*} $$ Therefore if $\int_{1}^{\infty} f(x)\, dx$ converges, $\sum_{r=2}^{n} f(r)$ is bounded and increasing with $n$ and therefore converges. If $\sum_n f(n)$ converges, then $\int_{1}^{n} f(x)\, dx$ is bounded and increasing with $n$ and therefore converges.


Let $$ \begin{align*} \phi(n) = \sum_{r=1}^{n} f(r) - \int_{1}^{n} f(x)\, dx. \end{align*} $$ $\phi$ is decreasing since by (*), $$ \begin{align*} \phi(n) - \phi(n-1) = f(n) - \int_{n-1}^{n} f(x)\, dx \leq 0. \end{align*} $$ But from ($\dagger$), $$ \begin{align*} \phi(n) = f(n) + \sum_{r=1}^{n-1} f(r) - \int_{1}^{n} f(x)\, dx \geq f(n) \geq 0 \end{align*} $$ so $\phi$ is bounded below.

Therefore $\phi(n)\to l$ as $n\to\infty$ for some $0\leq l\leq \phi(1) = f(1)$.