I'm trying to understand how to simplify summations. My text says that: $$\sum_{i=1}^{\frac{n}{2}} \sum_{j=i}^{n-i} \sum_{k=1}^{j} 1 = \frac{n^3}{8}$$
But does not explain how to get to the right-hand side.
I think the above nested summation evaluates to $\sum_{i=1}^{n/2} \left[\sum_{j=i}^{n-i} j = i + (i + 1) + (i + 2) + .. + (n-i-1) + (n-i)\right]$, but I don't know how to proceed from here.