What will a good approximation of the following series ?
S=Σ(1/√r) where r varies from 1 to N=10⁶ Specifically, we need to find floor(S)
I tried this by two methods,
1.Using the inequality, S<2√N , which can be proven easily by induction. Using this I got S<2000 but wasn't able to find out floor(S) as S can be 1999 or 1998 or anything below, but close to 2000.
- Replacing terms adjacent to perfect squares by perfect squares and adjusting the inequality , i.e replacing √3 by √4 and so on. This was a huge failure as it couldn't work for large values of N.
How would we obtain the right value? Is there a general method for any value of N?
We could estimate this sum by using an integral over $f(x)=\frac{1}{\sqrt{x}}$ since $f(x)$ is positive and decreasing over $[1,\infty)$. So
$$\sum_{n=1}^k \frac{1}{\sqrt{n}}\approx\int_1^k \frac{dx}{\sqrt{x}}=2\sqrt{x}|_{x=1}^k=2(\sqrt{k}-1)$$ For $k=10^6$, $$\sum_{n=1}^{10^6}\frac{1}{\sqrt{n}}\approx2(10^3-1)=1998$$