There Are Magic Hexagons of Every Order
Article URL: https://gukov.dev/math/2026/08/02/new-magic-hexagons.html Comments URL: https://news.ycombinator.com/item?id=49229174 Points: 189 # Comments: 31
The term "magic hexagon" refers to a hexagonal grid of numbers, where the sum of numbers along every row, column, and diagonal is the same. This concept is similar to a magic square, but applied to a hexagonal grid instead of a square. The only known non-trivial normal magic hexagon features 19 cells, which is also a twin prime number. A normal magic hexagon contains consecutive numbers from $1$ to $3n^2-3n+1$, with $n$ representing the order of the hexagon.
However, these normal magic hexagons are incredibly difficult to find due to the constraints imposed by the hexagonal grid. Unlike magic squares, there is no known formulaic construction or deterministic algorithm for generating magic hexagons. Instead, researchers resort to searching through an immense search space of possible arrangements, which is computationally intensive.
To make the search for magic hexagons more manageable, researchers have explored various strategies. One approach involves restricting the numbers on the grid to a symmetric interval, such as $-K$ to $K$. By setting the center cell to 0 and ensuring that cells opposite each other under a 180-degree rotation contain opposite values, the problem becomes more tractable. This antisymmetry constraint can help reduce the search space.
Another intriguing strategy is to consider the concept of antisymmetric hexagons, where the sum of numbers along each line is zero. By adding a specific pattern of alternating values around each interior point and subtracting multiples of this pattern, every line sum can be maintained at zero. This method allows for the construction of zero-sum hexagons, but it does not guarantee that the visible values are distinct and consecutive.
Despite these advancements, finding a truly magic hexagon remains a challenging task. Researchers continue to explore innovative techniques and leverage tools like large language models (LLMs) to develop more efficient solvers for this problem. The potential for collaboration between human intuition and AI-driven approaches holds promise for unraveling the mysteries of magic hexagons in the future.
Written by urgent.news from Hacker News Best's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.
- There Are Magic Hexagons of Every Order gukov.dev