Prove $\sum_{i=1}^{n-1} \left[\frac{n}{i(i+1)} + \frac{n(n-1)}{i(i+1)} (n(H_{n-2} - H_{n-i-1}) - (i-1))) \right] =(n-1)^2$? Apparently the following expression
$$
    \sum_{i=1}^{n-1} \Bigg[\frac{n}{i(i+1)} + \frac{n(n-1)}{i(i+1)} (n(H_{n-2} - H_{n-i-1})  - (i-1)))   \Bigg] \\
$$
simplifies to $(n-1)^2$, where $H_i$ is the i-th harmonic number. 
I tried to simplify but I'm not seeing the simplification
\begin{align}
    \sum_{i=1}^{n-1} \Bigg[\frac{n}{i(i+1)} + \frac{n(n-1)}{i(i+1)} (n(H_{n-2} - H_{n-i-1})  - (i-1)))   \Bigg] \\
    =    n\sum_{i=1}^{n-1} \frac{1}{i(i+1)}\Bigg[1 + (n-1) (n(H_{n-2} - H_{n-i-1})  - (i-1)))   \Bigg]
\end{align}
It's not obvious to me how I can further simplify, especially with the harmonic terms. 
In addition, what kind of series is $\sum_i \frac{1}{i(i+1)}$? 
I have a little Python script below in case anyone wants to see that the 2 expressions are equal:
def solution(n):
  ans = 0
  for i in range(1, n):
    sum1 = 0

    for r in range(n-i, n-1):
      sum1 += 1/r

    sum1 *= n
    sum1 -= i-1
    sum1 *= n*(n-1)/i/(i+1);

    ans += sum1 + n/i/(i+1)

  return ans


for n in range(100,1000):
  print(solution(n) - (n-1)**2)
```


I got $-(n-1)^2$ and by calculating the first few cases, it seems to be the correct answer. I will assume that $n\geq 2$ and $H_0=0$. First note that
$$
\sum\limits_{i = 1}^{n - 1} {\frac{1}{{i(i + 1)}}}  = \sum\limits_{i = 1}^{n - 1} {\left[ {\frac{1}{i} - \frac{1}{{i + 1}}} \right]}  = 1 - \frac{1}{n}.
$$
We can decompose the sum into
\begin{align*}
& n\sum\limits_{i = 1}^{n - 1} {\frac{1}{{i(i + 1)}}}  + n^2 (n - 1)H_{n - 2} \sum\limits_{i = 1}^{n - 1} {\frac{1}{{i(i + 1)}}}  - n^2 (n - 1)\sum\limits_{i = 1}^{n - 1} {\frac{{H_{n - i - 1} }}{{i(i + 1)}}} \\ &\quad - n(n - 1)\sum\limits_{i = 1}^{n - 1} {\frac{1}{i}} 
\\ &
 = n - 1 + n(n - 1)^2 H_{n - 2}  - n^2 (n - 1)\sum\limits_{i = 1}^{n - 1} {\frac{{H_{n - i - 1} }}{{i(i + 1)}}}  - n(n - 1)H_{n - 1} 
\\ &
 = n - 1 + n(n - 1)^2 H_{n - 2}  - n^2 (n - 1)\sum\limits_{i = 1}^{n - 1} {\frac{{H_{n - i - 1} }}{{i(i + 1)}}}  - n(n - 1)\left( {H_{n - 2}  + \frac{1}{{n - 1}}} \right)
\\ &
 =  - 1 + n(n - 1)(n - 2)H_{n - 2}  - n^2 (n - 1)\sum\limits_{i = 1}^{n - 1} {\frac{{H_{n - i - 1} }}{{i(i + 1)}}} .
\end{align*}
Now
\begin{align*}
& \sum\limits_{i = 1}^{n - 1} {\frac{{H_{n - i - 1} }}{{i(i + 1)}}}  = \sum\limits_{i = 1}^{n - 2} {\frac{{H_{n - i - 1} }}{{i(i + 1)}}}  = \sum\limits_{i = 1}^{n - 2} {\left[ {\frac{{H_{n - i - 1} }}{i} - \frac{{H_{n - i - 1} }}{{i + 1}}} \right]} \\ & = \sum\limits_{i = 1}^{n - 2} {\left[ {\frac{{H_{n - i - 1} }}{i} - \frac{{H_{n - i - 2}  + \frac{1}{{n - i - 1}}}}{{i + 1}}} \right]} 
\\ &
 = \sum\limits_{i = 1}^{n - 2} {\left[ {\frac{{H_{n - i - 1} }}{i} - \frac{{H_{n - i - 2} }}{{i + 1}}} \right]}  + \sum\limits_{i = 1}^{n - 2} {\frac{1}{{(n - i - 1)(i + 1)}}} \\ & = H_{n - 2}  + \frac{1}{n}\sum\limits_{i = 1}^{n - 2} {\left[ {\frac{1}{{n - i - 1}} + \frac{1}{{i + 1}}} \right]} 
\\ &
 = H_{n - 2}  + \frac{1}{n}\left( {H_{n - 1}  - 1 + H_{n - 2} } \right).
\end{align*}
Therefore, the original sum is
$$
 - 1 + n(n - 1)(n - 2)H_{n - 2}  - n^2 (n - 1)H_{n - 2}  + n(n - 1)\left( {H_{n - 1}  - 1 + H_{n - 2} } \right) \\ =  - n^2  + 2n - 1 =  - (n - 1)^2 .
$$
