Pyramidal number (source code)

= Pyramidal number
{wiki=Pyramidal_number}

A pyramidal number is a type of figurate number that represents a pyramid with a polygonal base. More specifically, pyramidal numbers generalize triangular numbers and square numbers by extending the concept to higher dimensions.