I am reading about Gaussian elimination, and the book gives the equation for the number of multiplications/divisions needed to solve a nXn matrix $$\sum_{2}^{n} (k^2-k)$$
The formula I can understand, but what confuses me is when the book says this:
"Through induction you can show that $$\sum_{2}^{n} (k^2-k)=\frac{n^3-n}{3}$$
Edit: Sorry, I was asking the wrong question. I can se that through induction it is true, but how did they come to $\frac{n^3-n}{3}$ without induction in the first place?