I am trying to prove by induction that: $$1^3-2^3 +\cdots+n^3=(1+2+\cdots+n)^2 $$
This was a problem from a practice worksheet, but I don't understand how to interpret the LHS.
Is the following correct:
$$1^3-2^3+3^3-4^3+5^3-6^3+\cdots+n^3$$
Or this:
$$1^3-2^3+3^3+4^3+5^3+6^3+\cdots+n^3$$
I have a feeling it is the former. If this is the case, I presumably have to consider odd and even cases for n right?
Thanks