Square pyramidal numbers are a sequence of numbers that represent the number of objects needed to form a square-based pyramid. Each layer of the pyramid is a square, and the sequence is formed by summing the squares of the first n positive integers.
The nth square pyramidal number, denoted as \(P_n\), is given by the formula:
\[P_n = \sum_{k=1}^n k^2 = \frac{n(n+1)(2n+1)}{6}\]
Where:
To calculate the nth square pyramidal number:
Let's calculate the 4th square pyramidal number:
This diagram represents the 4th square pyramidal number as a pyramid with 4 layers, totaling 30 units.
We can create a free, personalized calculator just for you!
Contact us and let's bring your idea to life.