Fact-checked by Grok 2 weeks ago

Magic hexagon

A magic hexagon is a hexagonal arrangement of the consecutive positive integers from 1 to 19 within a centered hexagonal of order 3, consisting of 19 cells, such that the sums of the numbers along each of the 15 straight lines—extending in three principal directions (horizontal, 60 degrees, and 120 degrees)—equal the magic constant of 38. This configuration is the only known normal magic hexagon, meaning it uses the smallest consecutive positive integers without repetition, and it is unique up to rotations and reflections. No such normal magic hexagons exist for order 2 or for any order greater than 3, though abnormal variants (using non-consecutive or repeated numbers) have been constructed for higher orders. The magic hexagon was discovered independently by several individuals, including Ernst von Haselberg in 1887, William Radcliffe in 1895 (via a ), Martin Kühl in 1940, and Clifford W. Adams after 47 years of effort culminating in 1957; Adams shared his solution with , who published it in Scientific American in 1963. Its uniqueness was rigorously proved by Charles W. Trigg in 1963 through mathematical analysis, later confirmed computationally by Frank Allaire in 1969, which reduced the problem to checking 70 cases. The magic constant for an order-3 magic hexagon can be derived from the total sum of the numbers 1 through 19, which is 190, divided by the number of lines per direction (5), yielding 38, since the 5 in each of the three directions partition the cells; this property holds symmetrically across all directions due to the balanced placement of numbers. Recent research has explored extensions, such as semi-magic or generalized forms, but the order-3 example remains the canonical and most celebrated instance in .

Definition and Basics

Definition

A magic hexagon of order n is an arrangement of distinct positive integers placed in a centered hexagonal grid consisting of exactly $3n^2 - 3n + 1 cells, where the grid features n cells along each edge of the hexagon. The structure forms a close-packed hexagonal pattern, resembling a honeycomb, with cells organized in concentric layers around a central cell. The defining property requires that the sums of the numbers along all straight lines—known as rows—in three directions at 60° to each other (horizontal, 60-degree diagonals, and 120-degree diagonals) equal the same magic constant M. These lines vary in length depending on the order n, typically ranging from shorter segments at the edges to longer ones through the center, and the condition applies uniformly across all such lines in the grid. Unlike a magic square, which uses a square grid and sums rows, columns, and main diagonals in four directions, or a magic star, which follows a star-shaped polygram, the magic hexagon leverages hexagonal symmetry to enforce summing in exactly three symmetric directions, reflecting the geometry of the plane tiled by equilateral triangles. Magic hexagons are classified as normal or abnormal based on the set of integers used. A normal magic hexagon employs the consecutive positive s from 1 to $3n^2 - 3n + 1, filling the grid without repetition. In contrast, an abnormal magic hexagon uses consecutive positive integers starting from an integer greater than 1, without repetition, while still satisfying the summing condition in the three directions.

Magic Constant

In a normal magic hexagon of order n, the numbers 1 through N = 3n^2 - 3n + 1 are arranged such that the sums of the numbers in each line (in the three principal directions) equal the magic constant M. The total sum of these numbers is S = \frac{N(N+1)}{2} = \frac{(3n^2 - 3n + 1)(3n^2 - 3n + 2)}{2}. The lines in any one of the three principal directions partition the cells of the hexagon without overlap, covering each cell exactly once. There are $2n - 1 such lines in each direction, each summing to M. Therefore, the total sum S equals (2n - 1)M, yielding the formula M = \frac{(3n^2 - 3n + 1)(3n^2 - 3n + 2)}{2(2n - 1)} = \frac{9n^4 - 18n^3 + 18n^2 - 9n + 2}{2(2n - 1)}. For M to be an in a normal magic hexagon, the denominator $2(2n - 1) must divide the numerator appropriately. The expression simplifies such that $2n - 1 must divide 5, which holds only for positive integers n = 1 (where $2n - 1 = [1](/page/1)) and n = 3 (where $2n - 1 = 5). The case n = 1 is trivial, consisting of a single cell with the number , so M = 1.

History

Discovery

The magic hexagon, analogous to the ancient magic square in recreational mathematics, represents a relatively recent development in the history of such figures. Magic squares, exemplified by the Lo Shu square of order three, were known in ancient by at least the 1st century BCE, where they held cultural and mystical significance. In contrast, the hexagonal variant emerged in the as mathematicians extended the concept of constant-sum arrangements to hexagonal grids. The first known discovery of a normal magic hexagon occurred in 1887, when mathematician Ernst von Haselberg (1827–1905) from constructed the unique order-3 example, filling a hexagonal grid with the consecutive integers 1 through 19 such that all lines in three directions sum to the magic constant of 38. Von Haselberg's solution was detailed in a and subsequently referenced in German publications, marking the initial documentation of this configuration. This finding sparked interest in recreational mathematics literature during the late 19th and early 20th centuries, with independent rediscoveries by others, including W. Radcliffe in 1895, who patented a puzzle based on the hexagon in 1896; Martin Kühl in 1940; and Tom Vickers in 1958. At the time, enthusiasts assumed higher-order normal magic hexagons were possible, mirroring the variety observed in magic squares of increasing sizes, which encouraged ongoing searches before later disproved such constructions. The hexagon's popularity grew further in the mid-20th century through Martin Gardner's 1963 column, which highlighted Clifford W. Adams' laborious trial-and-error derivation of the same order-3 solution after nearly five decades of effort.

Key Proofs and Developments

In 1964, Charles W. Trigg provided a seminal proof establishing the uniqueness of the order-3 normal magic hexagon, demonstrating that only one such arrangement exists using the consecutive integers from 1 to 19, up to rotations and reflections. His analysis involved exhaustive enumeration of perimeters and vertex sums, confirming that no other configurations satisfy the magic constant of 38 across all lines. Independent verifications supported this, including computer-assisted searches by William M. Daly using a Honeywell-800 (testing 196,729 configurations in under four minutes) and G. W. Anderson on an (taking 42 minutes), as well as a manual algebraic approach by Eduardo Esperón solving 15 equations with 19 unknowns. Trigg also developed the key divisibility condition for normal magic hexagons, showing that the magic constant is an only if $2n - 1 divides 5, where n is the . Since 5 is prime, the positive solutions are $2n - 1 = 1 (yielding n=1, a trivial single-cell case) or $2n - 1 = 5 (yielding n=3). This rigorously proves the impossibility of normal magic hexagons for n=2 or n > 3, as the condition fails to hold. Subsequent developments refined these results through more elegant methods. In 2008, Fanxing Meng presented a combinatorial for the order-3 magic hexagon that simultaneously proves its without exhaustive search, leveraging systematic placement of numbers to satisfy line sums. Meng's approach also explores symmetries, confirming 12 equivalent forms under the D6 (rotations and reflections). These advancements mark the evolution of magic hexagon research from empirical enumerations and early computational trials in the mid-20th century to rigorous combinatorial theorems in modern , solidifying the order-3 case as the sole non-trivial normal example.

Normal Magic Hexagons

Order-3 Example

The order-3 is a hexagonal arrangement of the consecutive integers from 1 to 19, forming a centered with three rings: a central and two surrounding layers. The central contains the number 1. The structure consists of five horizontal rows with 3, 4, 5, 4, and 3 cells, respectively, aligned to form the hexagonal shape. All lines—horizontal rows, northeast-southwest diagonals, and northwest-southeast diagonals—sum to the magic constant of 38. A textual representation of the unique arrangement (up to ) is as follows, with spaces indicating the staggered alignment for visualization:
    3  17  18
 16   6   4  12
19   7   1   2   9
  8   5  11  14
   10 13  15
This layout uses each integer from 1 to 19 exactly once and satisfies the magic property in all required directions. One established construction method for this hexagon begins by placing 1 in the central cell to anchor the sums, followed by assigning numbers to the inner ring (six cells surrounding the center) using a balanced distribution of small and medium values to ensure partial line sums align toward 38. Numbers are then placed in the outer ring (twelve cells) by testing configurations that maintain equality across intersecting lines, often leveraging symmetrical properties of the rings—such as pairing numbers that sum to 20 (e.g., 2+18, 3+17) for opposite positions—to iteratively balance the diagonals and rows. This trial-and-error approach, refined through logical constraints on odd-even parity and ring totals, was originally devised by Clifford W. Adams in the early 20th century. To verify the magic property, consider the following example lines:
  • Horizontal row 1: $3 + 17 + 18 = 38
  • Horizontal row 3 (central): $19 + 7 + 1 + 2 + 9 = 38
  • Northwest-southeast diagonal (long example): $18 + 4 + 1 + 5 + 10 = 38
  • Northeast-southwest diagonal (short example): $3 + 16 + 19 = 38
These sums, along with the remaining twelve lines, all equal 38, confirming the arrangement. This unique form admits exactly 12 distinct symmetries under the dihedral group D_6, consisting of 6 rotations (by 0°, 60°, 120°, 180°, 240°, and 300°) and 6 reflections across the axes of symmetry passing through opposite vertices or midpoints of opposite sides.

Uniqueness and Impossibility for Other Orders

Normal magic s, which use the consecutive s from 1 to $3n(n-1) + 1 without repetition, exist only for orders n=1 and n=3. The proof of this limitation begins with the requirement that the magic constant M must be an . The total number of cells in an order-n is $3n^2 - 3n + 1, so the sum of the numbers placed in these cells is s = \frac{[3n^2 - 3n + 1][3n^2 - 3n + 2]}{2}. Since there are $2n-1 lines (rows in the three directions) that must each sum to M, it follows that M = s / (2n-1). Substituting the expression for s yields M = \frac{3n^2 - 3n + 1}{2} \cdot \frac{3n^2 - 3n + 2}{2n-1}. For M to be an , $2n-1 must divide the numerator appropriately, and simplifying the expression reveals that $2n-1 must divide 5 (a ). Thus, the possible values are $2n-1 = 1 (giving n=1) or $2n-1 = 5 (giving n=3). For n=1, the configuration is trivial: a single cell containing the number 1, with M=1. For n=2, the divisibility condition fails since $2 \cdot 2 - 1 = 3 does not divide 5, so M is not an . Even if one attempts to construct such a hexagon using numbers 1 through 7, additional constraints from line overlaps prevent a solution with distinct positive integers; specifically, the symmetry and overlapping lines force certain cells to hold equal values, which violates the distinctness requirement. For n>3, the condition similarly fails—for example, with n=4, $2 \cdot 4 - 1 = 7 does not divide 5—ensuring M cannot be an . Beyond the magic constant, further impossibilities arise from the partitioning of the total sum across overlapping lines and the hexagonal , which impose strict balance conditions that cannot be satisfied for other orders without or non-consecutive integers. Regarding the order-3 case, exhaustive confirms that there is only one fundamental solution up to and . This uniqueness was rigorously established by C. W. Trigg in through a systematic combinatorial of possible placements.

Abnormal Magic Hexagons

Definition and Construction

An abnormal magic hexagon is a centered hexagonal of distinct integers into a with n cells along each edge, such that the sums of the numbers in each of the three principal directions—horizontal rows, and two sets of diagonals—are equal to a fixed magic constant M. Unlike normal magic hexagons, which require the use of consecutive integers starting from up to $3n^2 - 3n + [1](/page/1), abnormal variants employ any set of distinct integers, permitting non-consecutive sequences, starting values greater than , or inclusion of negative numbers. This flexibility addresses the structural constraints that prevent normal magic hexagons from existing for orders n > 3, primarily due to divisibility conditions on the total sum and partial row balances that cannot be satisfied with consecutive integers. In abnormal cases, the numbers may include gaps in the sequence or skip initial values, enabling the magic property to hold while the magic constant M varies depending on the chosen set of integers and the order n. The underlying grid remains a standard with $3n^2 - 3n + 1 cells, preserving the geometric symmetry of the normal form. Construction of abnormal magic hexagons typically involves computational search methods, such as , to explore vast spaces and identify valid arrangements satisfying the sum constraints. For instance, higher-order examples have been found through such optimization techniques that iteratively adjust number placements to minimize deviations from the target sums. Alternatively, algebraic approaches provide systematic constructions by parameterizing cell values with variables (e.g., a, b, c, \dots) to express the magic constant as a , such as M = 2a + 2b + 2c for order 3 generalizations, which can then be instantiated with specific integers or combined linearly from known base hexagons to generate new ones. These methods demonstrate that infinitely many abnormal magic hexagons exist for any order n \geq 1 and arbitrary magic constant M.

Known Examples by Order

Abnormal magic hexagons have been discovered for orders greater than 3, though they do not use consecutive integers starting from 1. These examples typically employ computational methods such as to find arrangements where all lines sum to a magic constant M. For order 4, an abnormal magic hexagon was discovered by Zahray in , utilizing the numbers 3 through 39 across its 37 cells, with a magic constant of M = 111. For order 5, two notable examples exist. One, also found by Zahray in , uses numbers from 6 to 66 and achieves M = 244. Another arrangement starts with and ends at 75, yielding M = 305, representing the maximum possible sum for this order without exceeding the constraints of sequential positive integers. An order-6 abnormal magic hexagon, created by Louis K. Hoelbling on October 11, 2004, employs numbers from 21 to 111 across 91 cells, with M = 546. Zahray extended the discoveries in 2006 with an order-7 example starting at 2 and ending at 128, using 127 numbers and summing to M = 635. For higher orders incorporating both positive and negative integers to balance around zero, Hoelbling generated an order-8 magic hexagon on February 5, 2006, ranging from -84 to 84 with M = 0. Most recently, Klaus Meffert discovered an order-9 abnormal hexagon on September 10, 2024, using AI-assisted code; it spans from -108 to 108 across 217 cells, achieving M = 0.

Magic T-Hexagons

Definition and Structure

A T-hexagon is a variant of the hexagon constructed using triangular cells rather than hexagonal ones, forming a large equilateral divided into small equilateral triangles. The grid consists of $6n^2 upward-pointing unit triangles arranged in a centered hexagonal with n units along each side, where n is a positive even . These triangles are filled with the consecutive from 1 to $6n^2, each cell receiving exactly one number. In contrast to the standard magic hexagon, which employs 19 hexagonal cells for order 3 and exhibits six-fold rotational symmetry with sums along lines in three directions, the T-hexagon uses triangular cells leading to a different total cell count of $6n^2 and a triangular grid symmetry that incorporates both upward and downward orientations in the overall structure, though the magic property focuses on the upward-pointing ones for placement. The summing lines run along the three principal directions of the triangular grid—horizontal, and the two diagonal orientations at 60 degrees—where each such line contains a varying number of cells depending on its position, but all complete lines sum to the same magic constant. This arrangement is only possible for even n, as the requirement for integer sums in the lines necessitates an even number of rows (r = 2n) to divide the total sum evenly. The magic constant S for a T-hexagon of order n is derived from the total sum of the numbers 1 through $6n^2, which is \frac{6n^2(6n^2 + 1)}{2} = 3n^2(6n^2 + 1), divided by the number of rows $2n: S = \frac{3n^2(6n^2 + 1)}{2n} = \frac{3n(6n^2 + 1)}{2}. This ensures S is an when n is even, establishing the balanced summing property across the directions. For example, with n=2, there are 24 cells filled with 1 to 24, yielding S = 75.

Discoveries and Enumeration

Magic T-hexagons were first investigated by Hans F. Bauch, who published an example of order 2 in 1991. Independently, John Baker discovered a magic T-hexagon of order 2 on September 13, 2003. This breakthrough was later explored in collaboration with David King, leading to the identification of key properties and arrangements. Magic T-hexagons exist only for even orders n, as odd orders are impossible due to imbalances in the triangular sector sums that prevent uniform row totals. For order 2, a comprehensive computer search enumerated exactly 59,674,527 non-congruent solutions using the numbers 1 through 24, where each row sums to 75; this count represents a tiny fraction of all possible arrangements but highlights the structure's constrained yet abundant magic configurations. While the framework suggests potential for higher even orders such as n=4, no detailed enumerations or specific constructions beyond order 2 have been published as of , owing to escalating computational challenges in searching vast spaces. These efforts underscore the role of algorithmic in uncovering the finite yet intricate landscape of T-hexagon properties.

References

  1. [1]
    [PDF] THE MAGIC HEXAGON by M. A. B. Deakin, Monash University
    By a slight, but allowable, misuse of language,. The study of such magic squares can hardly be said to be a major t~eme of mathematics, but it is an interesting.
  2. [2]
    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.
  3. [3]
    Magic Hexagon Formulas - arXiv
    Aug 14, 2025 · We give a variety of magic hexagons of Orders from 3 to 7, many of which are extensions of known results. We also give a theorem that their are ...<|control11|><|separator|>
  4. [4]
    [PDF] Research into the Order 3 Magic Hexagon: Its Properties ...
    Abstract. An order 3 magic hexagon resembles the shape of a 19-cell honeycomb, arranged in a 3 4 5 4. 3 manner. The requirement is to fill the numbers 1-19 ...
  5. [5]
    A magic hexagon of order 9 - ResearchGate
    Sep 17, 2024 · The solution for a magic hexagon of order 9 is presented, which was found in the year 2024. It has been found by using an AI systems to develop a Python code.<|control11|><|separator|>
  6. [6]
    Magic Hexagon
    Magic Hexagon of Hexagons. Can we arrange consecutive numbers (1, 2, 3..) in hexagonal cells forming a hexagon, so that all rows add up to the same number?
  7. [7]
    Magic Hexagon - Mathematische Basteleien
    A magic hexagon is a figure, which contains the numbers 1 to 19 and where the sums horizontally (-), sloping up to the right (/) and up to the left (\) are ...
  8. [8]
    Magic Square -- from Wolfram MathWorld
    A magic square is a square array of numbers consisting of the distinct positive integers 1, 2, ..., n^2 arranged such that the sum of the n numbers in any ...
  9. [9]
    The history of the magic hexagon | The Mathematical Gazette
    Aug 1, 2016 · The history of the magic hexagon. Martin Gardner (a1). (a1). Woods End, Inc , 110 Glenbrook Drive , Hendersonville , North Carolina 28739 ...
  10. [10]
  11. [11]
    [PDF] Magic Hexagon - Department of Energy Science and Engineering
    Apr 3, 2020 · Later on, the uniqueness of this magic hexagon was confirmed independently by William Daly, G. W. Anderson, and Eduardo Esperón (Trigg,. 1964) ...
  12. [12]
    [2508.10961] Magic Hexagon Formulas - arXiv
    Aug 14, 2025 · View a PDF of the paper titled Magic Hexagon Formulas, by Geoffrey B. Campbell. View PDF HTML (experimental). Abstract:We give a variety of ...
  13. [13]
  14. [14]
    Magic Hexagon: Definition, Properties & Examples Explained
    Rating 4.2 (373,000) Magic hexagon of order n is an array of numbers in a centered hexagonal pattern with n cells on each edge, in such a way that the numbers in each row, ...
  15. [15]
    (PDF) Magic Hexagon Formulas - ResearchGate
    Aug 24, 2025 · Order 3 Magic Hexagon formula with an M= 3 case. contains mostly squares and also derives from LHS hexagon in figure 3. In figure 3: (a) the LHS ...Missing: constant | Show results with:constant<|control11|><|separator|>
  16. [16]
    The Wonderful World of Magical Hexagons - Louis Hoelbling ...
    I have been fascinated with Magical Hexagons for a few years now, and I'd like to share with you what I've developed. For now ...
  17. [17]
    The use of visual schema to find properties of a hexagon John Baker
    ... magic T-hexagon of side 2. The outcomes of this investigation are described elsewhere; here we focus on a visual schema that enables some other features of ...
  18. [18]
    Magic Hexagons of Triangles
    A magic hexagon arranges numbers 1-24 in a hexagon so that all rows sum to the same number. The sum of up triangles equals the sum of down triangles.
  19. [19]
    Magic Hexagons — Magic Moments - jstor
    A2 + A* = 150. (4). Equation 4 expresses the simple result that the sum of all numbers in the top ...