I'm looking at my textbooks steps for calculating the complexity of bubble sort...and it jumps a step where I don't know what exactly they did.
I see everything up to that point using summation rules and all, but am unsure about that jump. Any help on explaining more how they got that?

$$\sum_{i = 0}^{n-2} (n - 1 -i) = (n -1) + (n-2) + ... + 2 + 1 = \frac{(n -1)n}{2}$$
It is the sum of the simplest arithmetic series.