Heptagonal pyramidal number


In mathematics, a heptagonal pyramidal number is a figurate number representing the number of dots in a three-dimensional pattern in the shape of a heptagonal pyramid.
The first few heptagonal pyramidal numbers are:
The nth heptagonal number can be calculated by adding up the first n heptagonal numbers, or more directly by using the formula