The honeycomb puzzle now has an answer for every size. The author found the proof with the help of AI and it was machine-checked by the proof assistant Lean; an independent review is still pending. Here it is explained without jargon.
A magic hexagon is a number puzzle played on honeycomb cells. The proof that such hexagons exist in every size was found with the help of AI and machine-checked by Lean. The automated proof search took a few hours of computing time. What is meant here is explicitly the mathematical puzzle and not the identically named term from economic policy.
This article first explains what the puzzle demands and traces the path from the first hexagon to the proof. The proof idea then follows in five building blocks, each with a figure. The end deals with the question of why a computer-checked proof can be trusted, what a human still has to check, and which numbers and facts stand behind the result.
Magic hexagon: what the number puzzle demands
The playing field is a honeycomb figure shaped like a regular hexagon. Its size is called order n and states how many cells lie on one side. A hexagon of order n consists of 3n(n−1)+1 cells. For n = 3 that is 19 cells, for n = 10 already 271.
Integers are written into the cells so that every straight row has the same sum. Rows are counted in all three directions of the honeycomb figure. In each direction there are 2n−1 rows. The shortest ones at the edge have n cells, the middle one has 2n−1 cells.
The most famous magic hexagon carries the numbers 1 to 19 and has order 3. Every row sums to 38. It is the classic hexagon, and for the numbers starting at 1 it is the only size in which the puzzle works out. A simple divisibility argument shows that the required row sum is a whole number only for n = 1 and n = 3. For all other orders, the classic variant therefore fails right from the start.

That is why the new work revolves around a related variant. Instead of starting at 1, the integers from −K to K are used, each exactly once. Here K = 3n(n−1)/2. For n = 3 these are the numbers −9 to 9, for n = 10 the numbers −135 to 135. Every row sums to 0, and the 0 sits in the centre.

The puzzle sounds harmless but is hard. The number of possible fillings grows so fast with n that trying them out on a computer does not get far. What was needed was therefore a blueprint that works for every size, and a proof that this blueprint really always works out.
From the puzzle of 1887 to the largest known hexagon: the story
The original problem comes from Ernst von Haselberg and is usually dated to 1887. Some sources give 1888; the primary source was not consulted. Later, by his own account, Adams rediscovered the classic hexagon in 1957 and made it known through Martin Gardner's column. That this solution is the only one up to rotation and reflection was proven by Charles W. Trigg, published in 1964. A collection on this is kept by Bielefeld University, and an overview is offered by Wolfram MathWorld.

The variant with consecutive integers and sum 0 came into view later. Between 2004 and 2006, orders 4 to 8 were found, order 6 in October 2004, orders 7 and 8 in 2006. Until 2006, only order 8 was known as the largest solution. Smaller orders had already been solved by then. An overview with sources is provided by the German Wikipedia, whose dates are partly without citation.
In 2024, Dr. DSGVO, the author of this blog, found a solution of order 9 with AI. At the time, that was the largest known solution.
On 2 August 2026, Konstantin Gukov then published a pattern on his page New magic hexagons. He searched for solutions up to order 21 and recognized that a construction rule for arbitrarily large hexagons can probably be derived from them. Gukov described an algorithm and a proof sketch that was supposed to take effect from order 114 onwards. He points out himself that this sketch is not formalized in Lean and not independently checked. The proof was therefore still missing.
For this gap, a proof for all orders from 3 is now available. It was produced with AI and is documented in a description dated 21 October 2026. It is machine-checked by Lean, an independent review is still pending, and the Lean files are not yet publicly linked. More on that later.
About 140 years lie between the first hexagon and the proof for all sizes.
Magic hexagons for all sizes: what is proven
What is proven: for every order n from 3 there is a magic hexagon with the numbers from −K to K in which every row in all three directions has sum 0. The strengthened version, in which the 0 additionally sits in the centre, is also proven. There is no upper limit. Gukov's sketch only takes effect from order 114; the orders before that remained open without the last building block.
Are there magic hexagons for every size?
My name is Klaus Meffert. I have a doctorate in computer science and have been working professionally and practically with information technology for over 30 years. I also work as an expert in IT & data protection. I achieve my results by looking at technology and law. This seems absolutely essential to me when it comes to digital data protection. My company, IT Logic GmbH, also offers consulting and development of optimized and secure AI solutions.




