Square Pyramidal Number — Definition, Formula & Examples
A square pyramidal number is the total number of objects in a pyramid with square layers, where the -th layer from the top is a square. Equivalently, it is the sum of the first perfect squares: .
The -th square pyramidal number is defined as , which equals . The sequence begins for
Key Formula
Where:
- = The n-th square pyramidal number
- = The number of square layers in the pyramid
How It Works
Imagine stacking square layers to build a pyramid. The top layer has ball, the next has , then , and so on. The square pyramidal number counts the total balls in the entire stack. You can compute it by adding squares one at a time or by using the closed-form formula directly.
Worked Example
Problem: Find the 5th square pyramidal number.
Step 1: Write out the sum of the first 5 perfect squares.
Step 2: Alternatively, apply the closed-form formula with n = 5.
Answer: The 5th square pyramidal number is .
Visualization
Why It Matters
Square pyramidal numbers appear in combinatorics and physics — for instance, counting the number of squares of all sizes on an chessboard. They also serve as a gateway to understanding summation formulas and polynomial closed forms, which are essential in discrete mathematics and computer science algorithm analysis.
Common Mistakes
Mistake: Confusing square pyramidal numbers with tetrahedral numbers.
Correction: Tetrahedral numbers sum triangular numbers (), while square pyramidal numbers sum perfect squares (). The formulas are different: tetrahedral uses , square pyramidal uses .
