Example (Euler-Mascheroni constant)

Using the previous theorem, set $f(x) = 1/x$ to get $$ \begin{align*} \sum_{k=1}^{n} \frac{1}{k} - \int_{1}^{n} \frac{1}{x}\,dx = \sum_{k=1}^{n} \frac{1}{k} - \log n \to \gamma \end{align*} $$ with $0\leq \gamma\leq 1$.

Whether $\gamma$ is rational is left as an exercise to the reader.