Fact-checked by Grok 2 weeks ago

Centered hexagonal number

A , also known as a , is a representing the total number of dots arranged in a hexagonal with a central dot surrounded by successive layers of dots forming regular . These arise in the context of centered polygonal numbers for a , where the nth term counts the points in a figure with n layers around the center. The sequence of centered hexagonal numbers begins 1, 7, 19, 37, 61, 91, 127, 169, ... and is given by the explicit H_n = 3n^2 - 3n + 1 for n \geq 1, or equivalently H_n = 3n(n-1) + 1, which simplifies to the difference of consecutive cubes: H_n = n^3 - (n-1)^3. Alternatively, using zero-based indexing starting at n=0, the formula is H_n = 3n^2 + 3n + 1, or H_n = (n+1)^3 - n^3. A key property is that the sum of the first [n+1](/page/N+1) centered hexagonal numbers equals (n+1)^3, highlighting their intimate connection to cubic numbers. They also satisfy the H_n = 2H_{n-1} - H_{n-2} + 6 for n \geq 2, with initial terms H_0 = 1 and H_1 = 7. Centered hexagonal numbers appear in various mathematical contexts, such as the crystal ball sequence for a , where they count the number of lattice points up to a given shell in a 2D hexagonal grid, each point having six neighbors. This lattice structure relates to applications in and , modeling atomic arrangements in hexagonal crystals. Additionally, they enumerate the number of ordered triples (a, b, c) with -n \leq a, b, c \leq n such that a + b + c = 0, providing insights into combinatorial problems on lattices. Notable intersections with other figurate numbers include triangular centered hexagonal numbers (1, 91, 8911, ...) and square ones (1, 169, 32761, ...), though only 1 is both square and triangular among them.

Definition and Geometry

Geometric Interpretation

Centered hexagonal numbers are a type of that can be visualized as a constructed from dots arranged in a , beginning with a single central dot and expanding outward through successive concentric layers. Each layer forms a around the previous structure, with the dots positioned at the vertices and along the edges of in a symmetric . This geometric arrangement emphasizes the centered nature of the figure, where the central dot serves as the nucleus, and the surrounding layers build a cohesive, star-like or that approximates a filled as the number of layers increases. The layering process starts with layer 0 consisting of just the central dot. The first layer (k=1) adds 6 dots, forming the innermost around the center. Subsequent layers add 6k dots for the kth layer, where k increases outward: for example, the second layer (k=2) adds 12 dots, creating a larger hexagonal perimeter. This incremental ensures that each new layer maintains the hexagonal and alignment, with dots spaced equidistantly to preserve the overall geometric integrity. Visually, the progression of these figures illustrates the cumulative growth: for n=1, there is a single central dot; for n=2, this expands to 7 dots by adding the first layer of 6; and for n=3, it reaches 19 dots with the addition of the second layer's 12 dots, forming a more pronounced hexagonal outline. This step-by-step layering provides an intuitive foundation for understanding the spatial distribution of dots in a hexagonal grid, where each complete figure up to the nth layer encapsulates all preceding layers in a compact, self-similar form.

Sequence and Examples

The sequence of centered hexagonal numbers begins as 1, 7, 19, 37, , 91, 127, 169, 217, 271, and continues onward (OEIS A003215). These numbers represent the total count of dots in successively larger centered hexagonal figures. For n=1, the value is 1, a single central dot with no surrounding layers. For n=2, it is 7, formed by adding one layer of 6 dots around the center. The progression continues with n=3 yielding 19 (two layers, adding 12 more dots), n=4 giving 37 (three layers, adding 18 dots to form a complete ), and n=5 producing (four layers, adding 24 dots). This incremental layering ties directly to the geometric buildup of hexagonal patterns, where each new layer encircles the previous figure with 6 times the layer index in additional dots. The following table lists the first 10 centered hexagonal numbers, along with the corresponding n and the number of surrounding layers (equal to n-1):
nH_nNumber of layers
110
271
3192
4373
5614
6915
71276
81697
92178
102719
Centered hexagonal numbers grow quadratically with n, asymptotically as $3n^2, which is approximately six times faster than the quadratic growth of triangular numbers at \frac{1}{2}n^2.

Mathematical Formulation

Explicit Formula

The explicit formula for the nth centered hexagonal number H(n), where n \geq 1, is given by
H(n) = 3n(n-1) + 1.
This expands to the quadratic form
H(n) = 3n^2 - 3n + 1.
To verify the equivalence, expand the first expression:
$3n(n-1) + 1 = 3n^2 - 3n + 1,
which matches the second form directly by algebraic distribution.
This formula derives from the geometric construction of centered hexagonal numbers, where the figure consists of a central point surrounded by n-1 concentric hexagonal layers. The central point contributes 1, and the kth layer (for k = 1 to n-1) adds $6k points, forming the six sides of the hexagon. Thus,
H(n) = 1 + \sum_{k=1}^{n-1} 6k = 1 + 6 \sum_{k=1}^{n-1} k = 1 + 6 \cdot \frac{(n-1)n}{2} = 1 + 3n(n-1),
confirming the explicit expression.
To determine if a given positive m is a centered hexagonal number, solve for n in $3n^2 - 3n + 1 = m:
$3n^2 - 3n + (1 - m) = 0.
Applying the quadratic formula yields
n = \frac{3 \pm \sqrt{9 - 12(1 - m)}}{6} = \frac{3 \pm \sqrt{12m - 3}}{6}.
The positive root must be an for m to be centered hexagonal; the discriminant $12m - 3 must be a .

Recurrence Relation

The centered hexagonal numbers satisfy the first-order linear H(1) = 1 and H(n+1) = H(n) + 6n for n \geq 1. This relation allows sequential of the sequence by iteratively adding terms that reflect the incremental of the figurate . Geometrically, this recurrence arises from the of centered hexagonal figures, where each successive layer forms a hexagonal around the previous . The central point counts as H(1) = 1. The first adds 6 points, one at each vertex of the hexagon. For the second , 12 additional points are placed (6*2), forming the next concentric layer with points along each extended side, excluding overlaps at vertices. In general, the n-th contributes exactly $6n points, as the hexagon has six sides and the n-th layer requires n points per side beyond the inner connections, leading to the additive term $6n in the recurrence. To illustrate, compute the first few terms: H(2) = H(1) + 6 \cdot 1 = 1 + 6 = 7, representing the center plus the initial ring; H(3) = H(2) + 6 \cdot 2 = 7 + 12 = 19, incorporating the second ring. This iterative approach is particularly suited for building the sequence layer by layer, contrasting with direct evaluation via the closed-form expression H(n) = 3n(n-1) + 1.

Generating Function

The ordinary generating function for the centered hexagonal numbers H_n = 3n^2 - 3n + 1 (for n \geq 1) is given by \sum_{n=1}^{\infty} H_n x^n = \frac{x(1 + 4x + x^2)}{(1 - x)^3}. This expression can be derived from the explicit formula for H_n using the known generating functions for the powers of n. Specifically, the series expansions \sum_{n=1}^{\infty} n x^n = \frac{x}{(1 - x)^2}, \quad \sum_{n=1}^{\infty} n^2 x^n = \frac{x(1 + x)}{(1 - x)^3}, \quad \sum_{n=1}^{\infty} x^n = \frac{x}{1 - x} are standard results for quadratic sequences. Substituting H_n = 3n^2 - 3n + 1 yields \sum_{n=1}^{\infty} H_n x^n = 3 \cdot \frac{x(1 + x)}{(1 - x)^3} - 3 \cdot \frac{x}{(1 - x)^2} + \frac{x}{1 - x}, which simplifies to the given rational function after combining terms over the common denominator (1 - x)^3. The denominator (1 - x)^3 arises from the quadratic nature of H_n, reflecting the general form for generating functions of second-degree polynomials in n. This can be expressed in relation to binomial expansions, as \frac{1}{(1 - x)^3} = \sum_{n=0}^{\infty} \binom{n+2}{2} x^n, so the full generating function is x(1 + 4x + x^2) \sum_{n=0}^{\infty} \binom{n+2}{2} x^n, where the numerator polynomial adjusts the coefficients to match the centered hexagonal sequence. This facilitates analytic techniques, such as deriving asymptotic behaviors or partial sums of the sequence, and has been used to establish identities involving centered hexagonal numbers, including connections to other series.

Properties

Algebraic Properties

The nth centered hexagonal number is given by the explicit formula
H(n) = 3n^2 - 3n + 1
for positive integers n.
This expression reveals an intrinsic algebraic structure, as it can be transformed to show a direct relation to s:
H(n) - 1 = 6 T_{n-1},
where T_m = \frac{m(m+1)}{2} denotes the mth . To verify this, substitute the triangular formula:
$6 T_{n-1} = 6 \cdot \frac{(n-1)n}{2} = 3n(n-1),
so
$1 + 3n(n-1) = 3n^2 - 3n + 1,
confirming the equivalence algebraically. This transformation highlights how each centered hexagonal number builds upon layers of triangular arrangements, with the central unit plus six times the preceding .
Centered hexagonal numbers possess the property that all terms are s. From the , n(n−1) is the product of two consecutive s and hence even, making 3n(n−1) even; adding 1 then yields an result. A notable identity is
\sum_{k=1}^n H(k) = n^3.
This can be established by on n. For the base case n=1, H(1) = 1 = 1^3. Assume the statement holds for some positive n, so \sum_{k=1}^n H(k) = n^3. For n+1,
\sum_{k=1}^{n+1} H(k) = n^3 + H(n+1) = n^3 + [3(n+1)n + 1] = n^3 + 3n^2 + 3n + 1 = (n+1)^3.
By the principle of , the identity holds for all positive s n.

Number-Theoretic Properties

Centered hexagonal numbers exhibit periodic behavior in their base-10 representation. The units digits cycle every five terms in the pattern 1, 7, 9, 7, 1. In , centered hexagonal numbers are always congruent to 1 modulo 6, as derived from their explicit H_n = 3n(n-1) + 1, where n(n-1) is even, making $3n(n-1) divisible by 6. Consequently, all divisors of a centered hexagonal number greater than 1 are also congruent to 1 modulo 6, ensuring they are not divisible by 2 or 3. The differences between consecutive centered hexagonal numbers provide insight into their structure: H_{n+1} - H_n = 6n, which is always a multiple of 6. Furthermore, the expression $3n^2 + 3n - 1 arises in relations connecting centered hexagonal numbers to pronic numbers; specifically, it appears in differences from certain squares, such as (2n)^2 - H_n = n^2 + 3n - 1, highlighting a near-pronic form adjusted by -1. More directly, the sum of the n-th centered hexagonal number and the (n-1)-th pronic number equals (2n-1)^2, a perfect square. Prime centered hexagonal numbers constitute a of Cuban primes, which are primes of the form \frac{x^3 - y^3}{x - y} with x = y + 1. Examples include (n=2), 19 (n=3), 37 (n=4), (n=5), 127 (n=7), and 331 (n=11). It remains an open question whether there are infinitely many such primes, analogous to unresolved cases for primes in polynomials.

Relations to Other Mathematical Concepts

Connection to Triangular Numbers

Centered hexagonal numbers exhibit a direct algebraic connection to triangular numbers through the formula H_n = 1 + 6 T_{n-1}, where T_m = \frac{m(m+1)}{2} denotes the m-th triangular number. This relation arises because the explicit form of the centered hexagonal number, H_n = 3n^2 - 3n + 1, simplifies to $1 + 3n(n-1), and since T_{n-1} = \frac{(n-1)n}{2}, multiplying by 6 yields the peripheral contribution. Geometrically, this formula reflects the construction of a , where a central point is surrounded by successive layers forming a . Each layer k (for k = 1 to n-1) adds $6k points, equivalent to six copies of the k-th linear arrangement, and the cumulative of these layers is $6 \sum_{k=1}^{n-1} k = 6 T_{n-1}, plus the central point. This layered structure underscores the shared figurate origins, with the decomposing into triangular components along each of the six radial directions. Both centered hexagonal and triangular numbers trace their roots to ancient figurate number theory, originating with the Pythagoreans in the 6th century BCE, who visualized numbers as geometric patterns of dots. The centered variant, emphasizing a core point with symmetric surrounds, extends this ancient tradition. For instance, the third centered hexagonal number is H_3 = 1 + 6 T_2 = 1 + 6 \times 3 = 19, illustrating how the two surrounding layers contribute 6 and 12 points, respectively, mirroring six triangular stacks.

Connection to Cubic Numbers

One remarkable property of centered hexagonal numbers H(k) = 3k^2 - 3k + 1 is that their partial sums yield perfect cubes: \sum_{k=1}^n H(k) = n^3. This identity equates the centered hexagonal pyramidal numbers—formed by stacking centered hexagons—to ordinary cubes, highlighting a deep connection between two-dimensional hexagonal lattices and three-dimensional cubic structures. For small values of n, the relation is evident. For n=2, H(1) + H(2) = 1 + 7 = 8 = 2^3. For n=3, $1 + 7 + 19 = 27 = 3^3. These examples illustrate how successive layers of centered hexagons accumulate to fill cubic volumes. An algebraic proof follows from the explicit formula, as H(k) = (k)^3 - (k-1)^3, making the sum telescope: \sum_{k=1}^n H(k) = \sum_{k=1}^n \left[ k^3 - (k-1)^3 \right] = n^3 - 0^3 = n^3. Geometrically, this can be visualized by arranging n^3 unit spheres into a and projecting along a body diagonal, where the layers align with centered hexagonal cross-sections, each contributing H(k) spheres. This summation links centered hexagonal numbers to three-dimensional figurate numbers, where the pyramidal stack mirrors the cube's discrete volume, offering insights into packings and higher-dimensional analogs.

Applications

In Telescopes and Optics

In the design of large astronomical s, centered hexagonal numbers play a key role in determining the arrangement and count of hexagonal mirror segments used to approximate a continuous circular . This approach allows for efficient packing of segments to maximize light collection while minimizing gaps and distortions in the . The concept emerged in the as researchers sought scalable solutions for building mirrors larger than traditional monolithic designs, with early proposals outlining hexagonal segmentation for a 10-meter using multiple rings of uniform hexagons around a central segment. A prominent example is the (GMT), which employs seven primary mirror segments arranged in a centered hexagonal pattern corresponding to the second centered hexagonal number (H(2) = 7), consisting of one central on-axis segment surrounded by six off-axis segments, each 8.4 meters in diameter. The (JWST) uses 18 hexagonal segments in a configuration akin to the third centered hexagonal number excluding the center (H(3) = 19), enabling a foldable 6.5-meter primary mirror that approximates a with . Similarly, the (GTC) and the twin Keck Telescopes each feature 36 segments, matching the fourth centered hexagonal number minus the center (H(4) = 37), which supports their 10-meter effective apertures. The advantages of this centered hexagonal arrangement include equal edge lengths across all segments, facilitating uniform and , as well as minimal gaps between segments due to the perfect of regular hexagons, which preserves optical performance and reduces . Studies on mirror fabrication have confirmed that hexagonal shapes optimize manufacturability and transportation for large-scale segmented primaries, balancing the trade-off between segment and total count. In practice, engineers select the ring order n such that the total segments approximate H(n), optimizing telescope resolution—proportional to the overall , roughly n times the segment —against the of controlling H(n) individual elements for active .

In Games and Recreational Mathematics

Centered hexagonal numbers appear in the design of several board games, where they determine the count and arrangement of hexagonal tiles. In The Settlers of Catan, the standard board consists of 19 terrain hexes arranged in a centered hexagonal pattern of order 3, surrounding a central tile with successive rings of 6 and 12 tiles. In recreational puzzles, centered hexagonal numbers underpin magic hexagons and tiling challenges. A magic hexagon of order n arranges the consecutive integers from 1 to the n-th centered hexagonal number in a hexagonal grid such that all rows, columns, and diagonals sum to a constant magic constant; the only non-trivial solution is for n=3, using numbers 1 through 19 and summing to 38 in each line. This puzzle, popularized in recreational mathematics literature, has a unique arrangement up to rotation and reflection. Similarly, polyiamond tiling puzzles—analogous to polyominoes but on triangular grids forming hexagons—often target regions whose areas match centered hexagonal numbers, such as covering a hexagon of side length 3 (area 19 unit triangles) with scaled pieces. Centered hexagonal numbers also feature in other recreational contexts, such as cube-stacking puzzles where the maximum number of visible cubes in an n \times n \times n stack equals the n-th centered hexagonal number (e.g., 19 for n=3), and in geometric puzzles counting the maximum regions formed by n+1 intersecting triangles. In mathematics education, these numbers are visualized through dot patterns illustrating successive hexagonal layers around a central point, aiding the teaching of sequences in curricula like India's NCERT Class 6 . Explorations on the (OEIS A003215) further engage enthusiasts in pattern recognition and extensions to lattices. Hexagonal lattices based on centered hexagonal arrangements inspire recreational cellular automata simulations, akin to but with six neighbors per cell. Variants like "Hex Life" allow users to experiment with rules on grids of up to 12 neighbors, generating emergent patterns for puzzle-solving and visualization in tools like Demonstrations. These automata appear in browser-based and interactive apps, promoting exploration of complex behaviors from simple hexagonal setups.

References

  1. [1]
    Hex Number -- from Wolfram MathWorld
    A hex number, also called a centered hexagonal number, is given by where T_n=n(n+1)/2 is the n th triangular number and the indexing with H_0=1 is used.Missing: definition properties
  2. [2]
    (PDF) PROPERTIES OF CENTRED POLYGONAL NUMBERS
    Feb 8, 2024 · The Centred Polygonal Numbers are a less well known family of Figurate Numbers, this time generated by arranging points into a sequence of nested polygons.
  3. [3]
    A003215 - OEIS
    The hexagonal lattice is the familiar 2-dimensional lattice in which each point has 6 neighbors. This is sometimes called the triangular lattice.
  4. [4]
    centered hexagonal number - PlanetMath
    Mar 22, 2013 · A centered hexagonal number, or hex number is a figurate number Mathworld Planetmath that represents a hexagon with a dot in the center.
  5. [5]
    [PDF] generatingfunctionology - Penn Math
    May 21, 1992 · This book is about generating functions and some of their uses in discrete mathematics. The subject is so vast that I have not attempted to give ...
  6. [6]
    [PDF] Sequences from Centered Hexagons of Integers - m-hikari.com
    The generating function of these centered hexagonal numbers is. 1+4x + x2. (1 − x). 3. =1+7x + 19x2. + 37x3. + ... This sequence represents the maximum integer ...
  7. [7]
    Hexagon number sequences
    The hexagonal centred numbers result from counting the number of spots making up a full hexagon: The sequence is 1, 7, 19, 37, 61, 91, 127, 169, 217, 271, 331 .Missing: properties | Show results with:properties
  8. [8]
    Centered hexagonal number - Wikipedia
    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.Formula · Recurrence and generating... · Properties · Applications
  9. [9]
    Full article: Food for Thought
    Jan 24, 2019 · Figure 5 shows that the sum of the nth hex number and the ( 𝑛 − 1 ) ⁢ s t pronic number is a perfect square: 𝐻 𝑛 + 𝑃 𝑛 − 1 = 1 + 3 ⁢ 𝑛 ⁢ ( 𝑛 − 1 ) ...
  10. [10]
    why does prime numbers appear in the some of hexagons in a ...
    Aug 8, 2022 · As already observed, the sequence is 3n(n+1)+1. This sequence contains an infinity of composite integers (that's not hard to prove) and probably ...Centered hexagonal numbers - Mathematics Stack ExchangeIs there an intuitionist (i.e., constructive) proof of the infinitude of ...More results from math.stackexchange.com
  11. [11]
    [PDF] Figurate Numbers: A Historical Survey of an Ancient Mathematics
    ... centered hexagonal numbers: Table 6: An alternative figurate number arrangement geometric object formula n=1 n=2 n=3 n=4 n=5 … hexagonal. 2𝑛𝑛2 − 𝑛𝑛 1 6 15 28 45 ...
  12. [12]
    (Centered polygons) pyramidal numbers - OeisWiki
    6, Centered hexagonal pyramidal, n ( 6 n 2 + 0 ) 6. n 3. P 2 3 ( 3 ) ( n ). Cubic ; 7, Centered heptagonal pyramidal, n ( 7 n 2 − 1 ) 6 ; 8, Centered octagonal ...
  13. [13]
    File:Visual proof centered hexagonal numbers sum.svg
    Jul 15, 2024 · Proof without words of the sum of the first n hex numbers by arranging n³ semitransparent balls in a cube and viewing along a body diagonal, by ...
  14. [14]
    Figurate numbers - OeisWiki
    This introductory page shows only the 2-dimensional regular convex figurate numbers (polygonal numbers and centered polygonal numbers) and their associated 3- ...
  15. [15]
    Webb's Mirrors - NASA Science
    Each of the primary mirror's 18 hexagonal-shaped mirror segments is 1.32 meters (4.3 feet) in diameter, flat to flat. (Webb's circular secondary mirror is 0.74 ...
  16. [16]
    Gran Telescopio CANARIAS (GTC)
    Dec 16, 2020 · The GTC has a primary mirror of about 10.4 m in diameter, composed of 36 segments of about 450 kg each. In other words, only one of these mirror ...
  17. [17]
    [PDF] hexagonal vs pinwheel segmented telescopes: a comparison study of
    The Hexagonal Segmented Mirror is comprised of 18 segments with the center segment not included. The geometry of the mirror is comparable to the JWST. The full ...
  18. [18]
    How to Set Up Catan Board - Brain Games Publishing
    May 27, 2025 · Take a quick look before you start: check that the sea frame is around all 19 hex tiles, the robber is on the desert tile, and the number tokens ...Missing: centered | Show results with:centered
  19. [19]
    Magic Hexagon -- from Wolfram MathWorld
    A magic hexagon of order n is an arrangement of close-packed hexagons containing the numbers 1, 2, ..., H_(n-1) , where H_n is the n th hex number.
  20. [20]
    Hexiamond Tiling -- from Wolfram MathWorld
    There are a number of tilings of various shapes by all the 12 order n=6 polyiamonds, summarized in the following table. Several of these (starred in the ...
  21. [21]
    Hex Life: Hexagonal Cellular Automata | Wolfram Demonstrations ...
    Hex Life is based on Conway's classic game of life, but instead of having cells with only four neighbors, each cell can have up to 12 neighbors.Missing: recreational | Show results with:recreational
  22. [22]
    Hexagonal Game of life by Agar3s - itch.io
    In this version an hexagonal cell is used instead of the original square one. The player can change the survive and born ranges. The idea with this tame is the ...