I get how to do a proof by induction for say, a sum of all numbers or a sum of all numbers^2 function. But where do I start with a problem like:
$$\frac{\sum_{k=0}^n (k-1)\cdot (n-k-1)}{n^2} = \frac{n}{6} - \frac{1}{6n}$$
So the function is (k-1)\cdot (n-k-1) but then the entire sum is over $n^2$.
And I'm told the answer will require me to make use of the sum of all numbers and sum of all numbers^2 functions:
$$\sum_{k=0}^n k = \frac{n\cdot (n+1)}{2}$$
$$\sum_{k=0}^n k^2 = \frac{n(n+1)\cdot (2n+1)}{6}$$
Which I thought I'd use by plugging in $\frac{n\cdot (n+1)}{2}$ for all the k's in the problem, but no luck. So I tried expanding the problem's function, so I can plug in the $k^2$ thing as well, but that doesn't seem to simplify properly either. Am I just going completely wrong with this?