Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Square pyramid?

  1. Apr 15, 2007 #1
    I was reading book on numbers and it had an equation for


    but I worked out the equation several times with different integers and they didn't appear to work at all. Does anyone know the equation for finding the total sum if the base sum (such as 5 above) is known?
  2. jcsd
  3. Apr 15, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper
    2015 Award

    huh? the sum of the squares of the integers from 1 to n is well known (say to archimedes) to be (1/6)[n(n+1)(2n+1)].

    e.g. if n=1 we get 1,

    if n = 2 we get (1/6)(2+3+5] = 5 = 1^2 + 2^2.

    if n = 3 we get (1`/6)[3(4)(7)] = 14 = 1^2 + 2^2+ 3^2.

    if n=4, we get 30 = (1/6)[4(5)9].

    im not sure i understood your base sum remark, but since this is a cubic formula it is determined by the lagrange interpolation method, by the above results for n=1,2,3,4.

    i.e. there is only one cubic polynomial that comes out 1,5,14,30, when we plug in 1,2,3,4.

    namely 1[(x-2)(x-3)(x-4)/(1-2)(1-3)(1-4)] + 5[(x-1)(x-3)(x-4)/(2-1)(2-3)(2-4)] + ... you get it...
    Last edited: Apr 15, 2007
  4. Apr 15, 2007 #3

    Gib Z

    User Avatar
    Homework Helper

    As mathwonk already said, the sum of the squares of the integers from 1 to n is [tex]\frac{n(n+1)(2n+1)}{6}[/tex].

    Thats all you want to know, if you want to get confused, read forward :

    When n is infinity, the sum is actually zero :D Look up the Riemann zeta function if your interested.
  5. Apr 16, 2007 #4
    Hi shintashi,

    write down here what formula is given in your book, maybe
    the formula in the book is wrong.

    As you indicated in your title "square pyramid", you can indeed
    derive the formula for the sum of the square numbers from 1 to n
    by considering the problem in a geometric view.

    1 + 4 + 9 can be interpreted as a pyramid made up of
    square layers:
    9-layer at the bottom
    4-layer in the middle
    1-layer at the top

    Have a look at here: Pyramid

    Look at the section Sum of the first n squares of Natural Numbers S[Q] here.

    Look at the bottom of the website here.

    As an exercise try to figure out the formula by using the the pyramid picture.
    Hint: Start by asking yourself how many times the 1-layer fits into the pyramid.
    If you substract the 1-layer from all the other layers, what is left?

    You will need Gauss's formula:

    [tex]\sum_{k=1}^{n} k = \frac{n(n+1)}{2}[/tex]
    Last edited: Apr 16, 2007
  6. Apr 17, 2007 #5
    thank you much ^^

    (1/6)[7(7+1)(14+1)] =

    7x8x15 = 140.


    the book said:

    as you can clearly see, the equation (page 127 of kingdom of infinite number) is flawed, perhaps a typo, but changing n+1 to n+2 screwed up all the results I got from it and was obviously wrong.
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Square pyramid?
  1. Possibility pyramid (Replies: 4)

  2. Pascal's pyramid (Replies: 1)

  3. Frustum Pyramid (Replies: 3)