
Inmathematics andcombinatorics, acentered hexagonal number, orcenteredhexagon number,[1][2] is acenteredfigurate number that represents ahexagon with a dot in the center and all other dots surrounding the center dot in ahexagonal lattice. The following figures illustrate this arrangement for the first four centered hexagonal numbers:
| 1 | 7 | 19 | 37 | |||
|---|---|---|---|---|---|---|
| +1 | +6 | +12 | +18 | |||
Centered hexagonal numbers should not be confused withcornered hexagonal numbers, which are figurate numbers in which the associated hexagons share a vertex.
The sequence of hexagonal numbers starts out as follows (sequenceA003215 in theOEIS):

Thenth centered hexagonal number is given by the formula[2]
Expressing the formula as
shows that the centered hexagonal number forn is 1 more than 6 times the(n − 1)thtriangular number.
In the opposite direction, theindexn corresponding to the centered hexagonal number can be calculated using the formula
This can be used as a test for whether a numberH is centered hexagonal: it will be if and only if the above expression is an integer.
The centered hexagonal numbers satisfy therecurrence relation[2]
From this we can calculate thegenerating function. The generating function satisfies
The latter term is theTaylor series of, so we get
and end up at

Inbase 10 one can notice that the hexagonal numbers' rightmost (least significant) digits follow the pattern 1–7–9–7–1 (repeating withperiod 5).This follows from thelast digit of the triangle numbers (sequenceA008954 in theOEIS) which repeat 0-1-3-1-0 when taken modulo 5.Inbase 6 the rightmost digit is always 1: 16, 116, 316, 1016, 1416, 2316, 3316, 4416...This follows from the fact that every centered hexagonal number modulo 6 (=106) equals 1.
The sum of the firstn centered hexagonal numbers isn3. That is, centered hexagonalpyramidal numbers andcubes are the same numbers, but they represent different shapes. Viewed from the opposite perspective, centered hexagonal numbers are differences of two consecutive cubes, so that the centered hexagonal numbers are thegnomon of the cubes. (This can be seen geometrically from the diagram.) In particular,prime centered hexagonal numbers arecuban primes.
The difference between(2n)2 and thenth centered hexagonal number is a number of the form3n2 + 3n − 1, while the difference between(2n − 1)2 and thenth centered hexagonal number is apronic number.

Manysegmented mirrorreflecting telescopes have primary mirrors comprising a centered hexagonal number of segments (neglecting the central segment removed to allow passage of light) to simplify the control system.[3] Some examples:
| Telescope | Number of segments | Number missing | Total | n-th centered hexagonal number |
|---|---|---|---|---|
| Giant Magellan Telescope | 7 | 0 | 7 | 2 |
| James Webb Space Telescope | 18 | 1 | 19 | 3 |
| Gran Telescopio Canarias | 36 | 1 | 37 | 4 |
| Guido Horn d'Arturo's prototype | 61 | 0 | 61 | 5 |
| Southern African Large Telescope | 91 | 0 | 91 | 6 |