I am looking to find the partial sum of the following sum for an algorithm I am analyzing: $\sum^{n-1}_{i=0} \frac{n-i-1}{n-i}$.
I can see it can be simplified to: $\sum^{n-1}_{i=0} \frac{n-i-1}{n-i}$ $= \sum^{n-1}_{i=0} (\frac{n-i}{n-i}-\frac{1}{n-i})$ $= \sum^{n-1}_{i=0} (1-\frac{1}{n-i})$
But the $\frac{1}{n-i}$ looks like the harmonic series to me. Which doesn't have a closed form. Have I done my analysis of the summation right or am I missing something?