Magic hexagon
A magic hexagon is a hexagonal arrangement of the consecutive positive integers from 1 to 19 within a centered hexagonal pattern 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.[1] 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.[2] 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.[1] The magic hexagon was discovered independently by several individuals, including Ernst von Haselberg in 1887, William Radcliffe in 1895 (via a patent application), Martin Kühl in 1940, and Clifford W. Adams after 47 years of effort culminating in 1957; Adams shared his solution with Martin Gardner, who published it in Scientific American in 1963.[1] 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.[1] 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 parallel lines in each of the three directions partition the cells; this property holds symmetrically across all directions due to the balanced placement of numbers.[2] 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 recreational mathematics.[3]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.[4] The structure forms a close-packed hexagonal pattern, resembling a honeycomb, with cells organized in concentric layers around a central cell.[2] 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.[5] 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.[5] Magic hexagons are classified as normal or abnormal based on the set of integers used. A normal magic hexagon employs the consecutive positive integers from 1 to $3n^2 - 3n + 1, filling the grid without repetition.[5] 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}.[6][7] 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)}. [6][7] For M to be an integer 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).[6] The case n = 1 is trivial, consisting of a single cell with the number 1, so M = 1.[6][7]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 China by at least the 1st century BCE, where they held cultural and mystical significance.[8] In contrast, the hexagonal variant emerged in the modern era 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 German mathematician Ernst von Haselberg (1827–1905) from Stralsund 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.[2] Von Haselberg's solution was detailed in a manuscript and subsequently referenced in German publications, marking the initial documentation of this configuration.[6] 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.[2] 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 mathematical analysis disproved such constructions.[9] The hexagon's popularity grew further in the mid-20th century through Martin Gardner's 1963 Scientific American 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.[10] His analysis involved exhaustive enumeration of perimeters and vertex sums, confirming that no other configurations satisfy the magic constant of 38 across all lines.[10] 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 IBM 1620 (taking 42 minutes), as well as a manual algebraic approach by Eduardo Esperón solving 15 equations with 19 unknowns.[10] Trigg also developed the key divisibility condition for normal magic hexagons, showing that the magic constant is an integer only if $2n - 1 divides 5, where n is the order.[10] Since 5 is prime, the positive integer solutions are $2n - 1 = 1 (yielding n=1, a trivial single-cell case) or $2n - 1 = 5 (yielding n=3).[10] This rigorously proves the impossibility of normal magic hexagons for n=2 or n > 3, as the condition fails to hold.[10] Subsequent developments refined these results through more elegant methods. In 2008, Albert Fanxing Meng presented a combinatorial construction for the order-3 magic hexagon that simultaneously proves its uniqueness without exhaustive search, leveraging systematic placement of numbers to satisfy line sums.[4] Meng's approach also explores symmetries, confirming 12 equivalent forms under the dihedral group D6 (rotations and reflections).[4] 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 recreational mathematics, solidifying the order-3 case as the sole non-trivial normal example.[10][4]Normal Magic Hexagons
Order-3 Example
The order-3 normal magic hexagon is a hexagonal arrangement of the consecutive integers from 1 to 19, forming a centered hexagon with three rings: a central cell and two surrounding layers. The central cell 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.[2] A textual representation of the unique arrangement (up to symmetry) is as follows, with spaces indicating the staggered alignment for visualization:This layout uses each integer from 1 to 19 exactly once and satisfies the magic property in all required directions.[2][4] 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.[1][4] To verify the magic property, consider the following example lines:3 17 18 16 6 4 12 19 7 1 2 9 8 5 11 14 10 13 153 17 18 16 6 4 12 19 7 1 2 9 8 5 11 14 10 13 15
- 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