How to calculate this expression? evaluate the expression [1]:
$$\sum\limits_{n = 1}^\infty  {\left( {\frac{1}{n} - \frac{1}{{n + x}}} \right)} $$
where $x$ is a real number, $0\le x\le1$, and $x$ is rounded to 3 digits.
For example, when $x=0.500$, the expression is [2]:
$$\left(\frac11 -\frac1{1.5}\right)+\left(\frac12 -\frac1{2.5}\right)+\left(\frac13 -\frac 1{3.5}\right) + ...$$
For a given $x$, how can I evaluate it?
The answer must be rounded to more than 12 digits.
 A: It may be interesting to observe that this sum is an example of a harmonic sum that is often used in textbooks to illustrate the use of Mellin transforms on these sums, where the trick is to compute the Mellin transform of the sum and thereafter use Mellin inversion to get an asymptotic expansion of the latter. Introduce
$$ f(x) = \sum_{k\ge 1} \left(\frac{1}{k} - \frac{1}{x+k}\right).$$
The reason this is very useful is the fact that
$$ f(n) = H_n,$$
which should be obvious. Here $H_n$ denotes the $n$-th harmonic number. So if we expand $f(x)$ at infinity we get the asymptotic expansion of harmonic numbers.
Now to do the harmonic analysis we rewrite the sum as follows:
$$ f(x) = \sum_{k\ge 1} \frac{x}{k(x+k)} =
\sum_{k\ge 1} \frac{1}{k} \frac{x}{x+k} =
\sum_{k\ge 1} \frac{1}{k} \frac{x/k}{x/k+1}.$$
Comparing this with the equation for the Mellin transform of a harmonic sum, which we recall is
$$\mathfrak{M}\left(\sum_{k\ge 1} \lambda_k g(\mu_k x); s\right) =
\left(\sum_{k\ge 1} \frac{\lambda_k}{\mu_k^s} \right) g^*(s),$$
where $g^*(s)$ is the Mellin transform of $g(x),$ we see that in the present case
$$\lambda_k = \frac{1}{k},
\quad \mu_k = \frac{1}{k}
\quad \text{and} \quad
g(x) = \frac{x}{1+x}.$$
This gives
$$ \sum_{k\ge 1} \frac{\lambda_k}{\mu_k^s} = \zeta(1-s).$$
We use a keyhole contour for the Mellin transform of $g(x)$ and take into account the pole at $x=-1$, obtaining
$$ \left(1-e^{2\pi i (s-1)}\right) \int_0^\infty g(x) x^{s-1} dx =
2\pi i(-1)^s$$
which implies that
$$g^*(s) = 2\pi i\frac{e^{i\pi s}}{1-e^{2\pi i s}}
= \pi \frac{2i}{e^{-\pi i s} - e^{\pi i s}} =
-\frac{\pi}{\sin(\pi s)}.$$
We may now conclude that the Mellin transform $f^*(s)$ of $f(x)$ is given by
$$\mathfrak{M}(f(x); s) = - \zeta(1-s) \frac{\pi}{\sin(\pi s)}.$$
We are ready to apply Mellin inversion to $f^*(s)$, shifting the inversion integral, which is 
$$ \frac{1}{2\pi i}\int_{-1/2-i\infty}^{-1/2+i\infty} f^*(s)/x^s\, ds,$$  to the right for an expansion at infinity.
We get
$$\operatorname{Res}(f^*(s)/x^s; s=0) = -\gamma -\log x$$
$$\operatorname{Res}(f^*(s)/x^s; s=1) = -\frac{1}{2x}$$
and from then on
$$\operatorname{Res}(f^*(s)/x^s; s=m) = - \zeta(1-m) \frac{(-1)^m}{x^m} =
\frac{(-1)^m B_m}{m}\frac{1}{x^m}$$
where the $B_m$ are Bernoulli numbers.
The conclusion is that
$$ f(x) \sim \gamma + \log x + \frac{1}{2x}
- \sum_{m\ge 2} \frac{(-1)^m B_m}{m}\frac{1}{x^m}$$
and in particular
$$ H_n \sim \gamma + \log n 
+ \frac{1}{2n} - \frac{1}{12n^2} + \frac{1}{120n^4} - \cdots.$$ 
A: $$\sum\limits_{n = 1}^\infty  {\left( {\frac{1}{n} - \frac{1}{{n + x}}} \right)}=\sum\limits_{n = 1}^\infty  \frac{x}{n(n+x)}$$
It is known that the sum is
$$\sum\limits_{n = 1}^\infty  \frac{x}{n(n+x)}=\psi(x+1)+\gamma$$ 
where $\psi$ is the digamma function 
$\gamma$ is the Euler constant .
Added :
We can easily prove that for $x=0.5$ we have 
$$\psi(1.5)=2-\gamma -\log(4)$$
Hence the sum is equal to 
$$2-\log(4)$$
A: I don't get why you self-limit yourself to $x$ rounded to 3 digits, work with real numbers and then choose something more specific.
So for $x\in \mathbb R, x\in[0,1]$, let $$S_N = \sum_{n = 1}^N \frac 1n - \frac1{n+x} = \sum_{n=1}^N \frac x{n(n+x)}$$
$$S_N - S_{N-1} = \frac x{n(n+x)}$$
Solution to this difference equation uses the Harmonic function, see wolframalpha.
Then use the property that $H_n \approx \log n + \gamma + \frac1{2n} - \frac1{12n^2} + ...$ where $\gamma$ is the Euler Mascheroni constant. You should use as many terms as you need to round up to 12 digits. Th rest of the sequence can be found here.
I guess that from here you could find an appropriate limit for special cases of $x$, perhaps not for general $x$.
A: For $x=0$, the sum evaluates to $0$, and for $x=1$, it is $1$. 
For $0<x<1$,  you can derive a power series expression for the given sum as below:
\begin{align}
\sum_{n=1}^{\infty}\left(\frac{1}{n}-\frac{1}{x+n}\right)=&\sum_{n=1}^{\infty}\left(\frac{1}{n}-\frac{1}{n}\left(1+\frac{x}{n}\right)^{-1}\right)\\
\ =& \sum_{n=1}^{\infty}\left(\frac{1}{n}-\frac{1}{n}\left(1-\frac{x}{n}+\frac{x^2}{n^2}-\frac{x^3}{n^3}+\cdots\right)\right)\\
\ =&\sum_{n=1}^{\infty}\left(\frac{x}{n^2}-\frac{x^2}{n^3}+\frac{x^3}{n^4}-\cdots\right)\\
\ =&\zeta(2)x-\zeta(3)x^2+\zeta(4)x^3-\cdots\\
\ =&\sum_{k=1}^{\infty}\zeta(k+1)x^k
\end{align}
