Finding an asymptotic expansion for $\sum_{k=0}^{n} \frac{1}{1+\frac{k}{n}}$ It is well known that an asymptotic expansion of the n-th harmonic number is $$H_{n}= \sum_{k=1}^{n} \frac{1}{k} \sim  \ln(n) + \gamma + \frac{1}{2n} -\frac{1}{12n^{2}} + O(n^{-4}).$$
How could we find an asymptotic expansion for the sum $ \displaystyle \sum_{k=0}^n \frac{1}{1+\frac{k}{n}}$ to a similar order?

Let $ \displaystyle f(x) = \frac{1}{1+\frac{x}{n}}$.
Using the Euler-Maclaurin summation formula, we get
$$ \begin{align} \sum_{k=0}^{n} \frac{1}{1+\frac{k}{n}} &\sim \int_{0}^{n} \frac{1}{1+\frac{x}{n}} \, dx + \frac{f(n)+f(0)}{2} + \sum_{m=1}^{\infty} \frac{B_{2m}}{(2m)!} \left(f^{(2m-1)}(n) -f^{(2m-1)}(0) \right) \\ &= n \ln \left( 1+\frac{x}{n} \right) \Bigg|^{n}_{0} + \frac{\frac{1}{2}+1}{2}  + \frac{1}{6} \left(\frac{1}{2!} \right) \left(-\frac{1}{n} \frac{1}{(1+\frac{x}{n})^{2}} \right) \Bigg|^{n}_{0} \\ &- \frac{1}{30} \frac{1}{4!} \left( - \frac{6}{n^{3}} \frac{1}{(1+ \frac{x}{n})^{4}}\right) \Bigg|^{n}_{0} + \mathcal{O}(n^{-5}) \\ &= n \ln (2) + \frac{3}{4} + \frac{1}{16n} - \frac{1}{128 n^{3}} + \mathcal{O}(n^{-5}) \end{align}$$
For $n=20$, the above approximation is correct to $8$ digits after the decimal point.
