Placing any in a -polygonal diagram
Let , . We would like to draw the polygonal number diagram βup toβ . If happens to actually be a polygonal number, this will be a complete diagram with dots in a layered -polygon. Otherwise, this will be a diagram whose outer gnomon layer is incomplete.
Figure (3) shows hexagonal number () diagrams for the numbers 15 and 26. Because 15 actually is a hexagonal number, the diagram is complete. The diagram for 26 shows an incomplete diagram, with an incomplete outer layer.

Finding the gnomon for and
The recursive definition for in Equation (1 yields formulas stated as a summation (2) and a direct calculation (3).
Applying the quadratic formula to solve provides us with
This allows us to identify the gnomon layer that a given will sit in within a -polygonal diagram (5).
The position of within its gnomon layer
The size of the gnomon layer that will sit in (how many dots would be in the layer within the diagram) is given by Equation (6).
To find the position of the th dot within the gnomon, we need to count the number of dots that came before it within that gnomon. To do this we can sum up to over a function whose value is for all where , and whose value is for those where . This sum that gives us the βdepthβ of n within its gnomon is provided by Equation (7).