A pyramid with side length 5 contains 35 spheres. Each layer represents one of the first five triangular numbers.
A tetrahedral number, or triangular pyramidal number, is a figurate number that represents a pyramid with a triangular base and three sides, called a tetrahedron. The nth tetrahedral number, Ten, is the sum of the first ntriangular numbers, that is,