Pyramidal number

A pyramidal number is a figurate number that represents a pyramid with a polygonal base and a given number of triangular sides. A pyramidal number is the number of points in a pyramid where each layer of the pyramid is an r-sided polygon of points.[1] The term usually refers to square pyramidal numbers, which have a square base with four sides, but it can also refer to pyramids with three or more sides.[2] It is possible to extend the pyramidal numbers to higher dimensions.

Geometric representation of the square pyramidal number 1 + 4 + 9 + 16 = 30.

Formula

The formula for the nth r-gonal pyramidal number is

where r, r ≥ 3. [1]

This formula can be factored:

where Tn is the nth triangular number.

gollark: I trust them to not randomly break things more than I do Microsoft, honestly, at least.
gollark: With binary packages you are relying on the trust of your distro packagers I guess.
gollark: Well, at least *in theory* other people are looking at it, and you can.
gollark: I agree.
gollark: I have things I want out of software other than "it's the absolute easiest possible thing to use for very basic things".

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.