The mathematical study of figurate numbers is said to have originated with
Pythagoras, possibly based on Babylonian or Egyptian precursors. Generating whichever class of figurate numbers the Pythagoreans studied using
gnomons is also attributed to Pythagoras. Unfortunately, there is no trustworthy source for these claims, because all surviving writings about the Pythagoreans are from centuries later.
Speusippus is the earliest source to expose the view that ten, as the fourth triangular number, was in fact the
tetractys, supposed to be of great importance for
Pythagoreanism. Figurate numbers were a concern of the Pythagorean worldview. It was well understood that some numbers could have many figurations, e.g.
36 is a both a square and a triangle and also various rectangles. The modern study of figurate numbers goes back to
Pierre de Fermat, specifically the
Fermat polygonal number theorem. Later, it became a significant topic for
Euler, who gave an explicit formula for all
triangular numbers that are also perfect squares, among many other discoveries relating to figurate numbers. Figurate numbers have played a significant role in modern recreational mathematics. In research mathematics, figurate numbers are studied by way of the
Ehrhart polynomials,
polynomials that count the number of integer points in a polygon or polyhedron when it is expanded by a given factor. == Triangular numbers and their analogs in higher dimensions ==