Centered hexagonal number

Number that represents a hexagon with a dot in the center
title: "Centered hexagonal number" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["figurate-numbers", "integer-sequences"] description: "Number that represents a hexagon with a dot in the center" topic_path: "general/figurate-numbers" source: "https://en.wikipedia.org/wiki/Centered_hexagonal_number" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Number that represents a hexagon with a dot in the center ::
::figure[src="https://upload.wikimedia.org/wikipedia/commons/f/f9/Catan_Universe_fixed_setup.svg" caption="Centered hexagonal numbers appearing in the [[Catan]] board game:
19 land tiles,
37 total tiles"]
::
In mathematics and combinatorics, a centered hexagonal number, or centered hexagon number, is a centered figurate number that represents a hexagon with a dot in the center and all other dots surrounding the center dot in a hexagonal lattice. The following figures illustrate this arrangement for the first four centered hexagonal numbers: ::data[format=table]
| 1 | 7 | 19 | 37 |
|---|---|---|---|
| +1 | +6 | ||
| [[Image:RedDotX.svg | 16px | *]] | |
| [[Image:RedDotX.svg | 16px | *]] [[Image:GrayDotX.svg | 16px |
| [[Image:RedDotX.svg | 16px | *]] [[Image:RedDotX.svg | 16px |
| :: |
Centered hexagonal numbers should not be confused with cornered hexagonal numbers, which are figurate numbers in which the associated hexagons share a vertex.
The sequence of hexagonal numbers starts out as follows :
Formula
::figure[src="https://upload.wikimedia.org/wikipedia/commons/7/7e/Centered_hexagonal_=1+_6triangular.svg" caption="''n''(''n''−1)}} dots each."] ::
The nth centered hexagonal number is given by the formula
Expressing the formula as
shows that the centered hexagonal number for n is 1 more than 6 times the (n − 1)th triangular number.
In the opposite direction, the index n corresponding to the centered hexagonal number H = H(n) can be calculated using the formula
{6}.}}
This can be used as a test for whether a number H is centered hexagonal: it will be if and only if the above expression is an integer.
Recurrence and generating function
The centered hexagonal numbers H(n) satisfy the recurrence relation
From this we can calculate the generating function F(x) = \sum_{n \ge 0} H(n) x^n. The generating function satisfies
The latter term is the Taylor series of \frac{6x}{(1-x)^2} - 6x, so we get
}
and end up at
Properties
::figure[src="https://upload.wikimedia.org/wikipedia/commons/f/f1/visual_proof_centered_hexagonal_numbers_sum.svg" caption="[[Proof without words]] of the sum of the first ''n'' hex numbers by arranging ''n''3 semitransparent balls in a cube and viewing along a [[space diagonal]] – colour denotes cube layer and line style denotes hex number"] ::
In base 10 one can notice that the hexagonal numbers' rightmost (least significant) digits follow the pattern 1–7–9–7–1 (repeating with period 5). This follows from the last digit of the triangle numbers which repeat 0-1-3-1-0 when taken modulo 5. In base 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 first n centered hexagonal numbers is n3. That is, centered hexagonal pyramidal numbers and cubes 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 the gnomon of the cubes. (This can be seen geometrically from the diagram.) In particular, prime centered hexagonal numbers are cuban primes.
The difference between (2n)2 and the nth centered hexagonal number is a number of the form 3n2 + 3n − 1, while the difference between (2n − 1)2 and the nth centered hexagonal number is a pronic number.
Applications
::figure[src="https://upload.wikimedia.org/wikipedia/commons/1/13/comparison_optical_telescope_primary_mirrors.svg" caption="Ignoring central holes, the number of mirror segments in several [[segmented mirror]] [[telescope]]s are centered hexagonal numbers"] ::
Many segmented mirror reflecting 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. Some examples: ::data[format=table] | 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 | ::
References
References
- Hindin, H. J.. (1983). "Stars, hexes, triangular numbers and Pythagorean triples". J. Rec. Math..
- (2012). "Figurate Numbers". World Scientific.
- Mast, T. S. and Nelson, J. E. [http://osti.gov/servlets/purl/6194407 ''Figure control for a segmented telescope mirror'']. United States: N. p., 1979. Web. doi:10.2172/6194407.
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::