You are here:

Advanced Math/A pile of cubes - sum of squares.

Advertisement


Question
A pyramid is made by piling up centimetre cubes layer upon layer. Each layer contains tightly packed cubes. The bottom layer is to be a square of side length 100cm and the next layer will be a square of side length 99cm and so on until there is a layer with side length 1cm (i.e. one cube), how many cubes will be needed to build the pyramid. How would you create an equation to find that out by entering the number of layers in the pyramid?

Answer
Questioner:   Stuart
Category:  Advanced Math
 
Subject:  A pile of cubes
Question:  A pyramid is made by piling up centimetre cubes layer upon layer. Each layer contains tightly packed cubes. The bottom layer is to be a square of side length 100cm and the next layer will be a square of side length 99cm and so on until there is a layer with side length 1cm (i.e. one cube), how many cubes will be needed to build the pyramid. How would you create an equation to find that out by entering the number of layers in the pyramid?
.................................................
Hi, Stuart,

Your TOP   layer has  1^2 = 1   cube.
Your next             2^2       cubes.
Your next             3^2       cubes.
.....
Your last             k^2       cubes.

Your pyramid has  1^2 + 2^2 + 3^2 + ... + k^2  cubes in it.

There is a well-known formula for the sum of  k  squares.  It's:
k(k + 1)(2k + 1)
-----------------
      6
That should do it for you.

Advanced Math

All Answers


Answers by Expert:


Ask Experts

Volunteer


Paul Klarreich

Expertise

I can answer questions in basic to advanced algebra (theory of equations, complex numbers), precalculus (functions, graphs, exponential, logarithmic, and trigonometric functions and identities), basic probability, and finite mathematics, including mathematical induction. I can also try (but not guarantee) to answer questions on Abstract Algebra -- groups, rings, etc. and Analysis -- sequences, limits, continuity. I won't understand specialized engineering or business jargon.

Experience

I taught at a two-year college for 25 years, including all subjects from algebra to third-semester calculus.

Education/Credentials
-----------

©2012 About.com, a part of The New York Times Company. All rights reserved.