Nonagonal number


A nonagonal number is a figurate number that extends the concept of triangular and square numbers to the nonagon. However, unlike the triangular and square numbers, the patterns involved in the construction of nonagonal numbers are not rotationally symmetrical. Specifically, the nth nonagonal number counts the number of dots in a pattern of n nested nonagons, all sharing a common corner, where the ith nonagon in the pattern has sides made of i dots spaced one unit apart from each other. The nonagonal number for n is given by the formula:
The first few nonagonal numbers are:
The parity of nonagonal numbers follows the pattern odd-odd-even-even.

Relationship between nonagonal and triangular numbers

Letting N denote the nth nonagonal number, and using the formula for the nth triangular number,

Test for nonagonal numbers

If is an integer, then is the -th nonagonal number. If is not an integer, then is not nonagonal.