I want to know how to simplify the following sum (given $i, n \in \mathbb{N}$):
$$ \sum_{k=1}^i \frac{k}{n-k} \frac{\binom{i-1}{k-1}}{\binom{n-1}{k-1}}\ . $$
$\binom{a}{b}$ is a binomial coefficient. WolframAlpha says this equals $\frac{n}{(n-i+1)(n-i)}$, but it doesn't show how to calculate this step-by-step. I tackled to solve this for a day, but I couldn't figure out. Could you let me know an approach?
Note: This sum is needed to calculate a complexity of Chang and Roberts algorithm.