I have $1^2+2^2+...+n^2$ and I want to prove the sum is $\frac{m(m+1)(2m+1)}{6}$. So for proving the formula for $1+3+5+7+... = n^2$ this is how i got the formula:
the common difference is 2, so the formula for $a_n = 2n-1$
The sum of an arithmetic series is $\frac{n(a_{1}+a_{n})}{2}$ so I have $\frac{n(1+(2n-1)}{2}$ so its $n^2$.
For the sum of the squares, I know that the term for $a_n$ is $n^2$. But since it's not an arithmetic sequence, I can't use my previous formula. Is there an analogous method?
I already know how to prove this by induction and i understand the visual proofs. But if you see how I formulated my sum for the first consecutive odd integers, can you please show me how I can do this for the sum of the squares in the same way or just tell me it's not possible if it isn't. Thank you!