I am trying to solve the German Tank Problem. There might be numerous ways of finding the expected value of N. However, the way in which I am proceeding, I need to find this sum. However I am stuck at it.
$$\sum_{i=a+1}^{N}\frac{i(i-1)}{i-a}$$
Any help will be greatly appreciated.
We have
\begin{align}\sum_{i = a+1}^N \frac{i(i-1)}{i-a} &= \sum_{i = a+1}^N \frac{((i - a) + a)(i - 1)}{i - a} \\ &= \sum_{i = a+1}^N \left(1 + \frac{a}{i - a}\right)(i - 1)\\ &= \sum_{i = a+1}^N \left(1 + \frac{a}{i - a}\right)((i - a) + (a - 1))\\ &= \sum_{i = a+1}^N \left[((i - a) + a) + \left(a - 1 + \frac{a(a-1)}{i - a}\right)\right]\\ &= \sum_{i = a+1}^N (i + a - 1) + \sum_{i = a+1}^N \frac{a(a-1)}{i-a}\\ &= \sum_{i = 1}^{N-a} (i + 2a - 1) + \sum_{i = 1}^{N-a} \frac{a(a-1)}{i}\\ &= \frac{(N-a)(N-3a-1)}{2} + a(a-1)H_{N-a} \end{align}
where $H_k$ denotes the $k$ harmonic number.