In elementary number theory, a centered square number is a centered figurate number that gives the number of dots in a square with a dot in the center and all other dots surrounding the center dot in successive square layers. That is, each centered square number equals the number of dots within a given city block distance of the center dot on a regular square lattice. While centered square numbers, like figurate numbers in general, have few if any direct practical applications, they are sometimes studied in recreational mathematics for their elegant geometric and arithmetic properties. The figures for the first four centered square numbers are shown below: {| |- align="center" valign="middle" style="line-height: 0;" | | | | | | | | | | |- align="center" valign="top" | | | | | | | | | | |} Each centered square number is the sum of successive squares. Example: as shown in the following figure of Floyd's triangle, 25 is a centered square number, and is the sum of the square 16 (yellow rhombus formed by shearing a square) and of the next smaller square, 9 (sum of two blue triangles): Relationships with other figurate numbers Let Ck,n generally represent the nth centered k-gonal number. The nth centered square number is given by the formula: That is, the nth centered square number is the sum of the nth and the (n – 1)th square numbers. The following pattern demonstrates this formula: {| |- align="center" valign="middle" style="line-height: 0;" | | | | | | | | | | |- align="center" valign="top" | | | | | | | | | | |} The formula can also be expressed as: That is, the nth centered square number is half of the nth odd square number plus 1, as illustrated below: {| |- align="center" valign="bottom" style="line-height: 0;" | | | | | | | | | | |- align="center" valign="top" | | | | | | | | | | |} Like all centered polygonal numbers, centered square numbers can also be expressed in terms of triangular numbers: where is the nth triangular number. This can be easily seen by removing the center dot and dividing the rest of the figure into four triangles, as below: {| |- align="center" valign="middle" style="line-height: 0;" | | | | | | | | | | |- align="center" valign="top" | | | | | | | |