Yahoo Answers is shutting down on 4 May 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

sum of consecutive square numbers?

I'm trying to work out a formula for the sum of:

1^2 + 2^2 + 3^2 + 4^2+...+ n^2

so that I could input n and have the formula return the sum. I'm shooting blanks. Anybody have any ideas?

2 Answers

Relevance
  • 1 decade ago
    Favourite answer

    The formula you're looking for is:

    n(n+ 1)(2n +1)/6

    Unfortunately, the method I used to derive it won't stand inspection. I can only assert it, not prove it.

    It looked like a polynomial, so I hypothesized something big:

    An^4 + Bn^3 + Cn^2 + Dn + E = sum

    Then I took the first five instances of n and the corresponding first five sums, plugged them in, creating 5 equations in 5 unknowns. Solved that system of equations and got:

    A= 0, B = 1/3, C = 1/2 , D = 1/6, E = 0.

    I put those coefficients back into the original hypothesis, and rearranged to get what I asserted above.

    I'm sure there's a much cleverer way, along the lines of Gauss' solution to the sum of consecutive integers from 1 to n, but I'm not seeing it just now.

  • devers
    Lv 4
    4 years ago

    Sum Of Consecutive Squares Formula

Still have questions? Get answers by asking now.