Skip to main content

PolygonalNumber

PolygonalNumber[n] gives the nth triangular number Tn.

PolygonalNumber[r,n] gives the nth r-gonal number Pn r.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.