ArticleslgStudy

science

Magic hexagon

Magic hexagon is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Magic hexagon rather than just read about it. In short: A magic hexagon of order n is an arrangement of numbers in a centered hexagonal pattern with n cells on each edge, in such a way that the numbers in each row, in all three directions, sum to the same magic constant M. A normal magic hexagon contains the consecutive integers from 1 to 3n2 − 3n + 1.

Magic hexagon — main illustration
Magic hexagon — illustration

Key takeaways

  • Magic hexagon belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Magic hexagon to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Magic hexagon from memory before moving on to harder problems.

Reference excerpt

A magic hexagon of order n is an arrangement of numbers in a centered hexagonal pattern with n cells on each edge, in such a way that the numbers in each row, in all three directions, sum to the same magic constant M. A normal magic hexagon contains the consecutive integers from 1 to 3n2 − 3n + 1. Normal magic hexagons exist only for n = 1 (which is trivial, as it is composed of only 1 cell) and n = 3. Moreover, the solution of order 3 is unique up to reflections and rotations. Meng gives a less intricate constructive proof. The order-3 magic hexagon with numbers 1 through 19 and magic sum 38 has been published many times as a 'new' discovery. An early reference, and possibly the first discoverer, is Ernst von Haselberg (1887).

Proof of normal magic hexagons The numbers in the hexagon are consecutive, and run from 1 to 3n2−3n+1. Hence their sum is a triangular number, namely

s=12(3n2−3n+1)(3n2−3n+2)=9n4−18n3+18n2−9n+22 There are r = 2n − 1 rows running along any given direction (E-W, NE-SW, or NW-SE). Each of these rows sums up to the same number M. Therefore:

M=sr=9n4−18n3+18n2−9n+22(2n−1) This can be rewritten as

M=(9n34−27n28+45n16−2732)+532(2n−1) Multiplying throughout by 32 gives

32M=72n3−108n2+90n−27+52n−1 which shows that 52n−1 must be an integer, hence 2n − 1 must be a factor of 5, namely 2n − 1 = ±1 or 2n − 1 = ±5. The only n≥1 that meet this condition are n=1 and n=3, proving that there are no normal magic hexagons except those of order 1 and 3.

Abnormal magic hexagons Although there are no normal magical hexagons with order greater than 3, certain abnormal ones do exist. In this case, abnormal means starting the sequence of numbers other than with 1. Here is an order 3 hexagon starting from -9 and summing to 0:

Arsen Zahray discovered these order 4 and 5 hexagons:

The order 4 hexagon starts with 3 and ends with 39, its rows summing to 111. The order 5 hexagon starts with 6 and ends with 66 and sums to 244. An order 5 hexagon starting with 15, ending with 75 and summing to 305 is this:

A higher sum than 305 for order 5 hexagons is not possible. Order 5 hexagons, where the "X" are placeholders for order 3 hexagons, which complete the number sequence. The left one contains the hexagon with the sum 38 (numbers 1 to 19) and the right one, one of the 26 hexagons with the sum 0 (numbers −9 to 9). For more information visit the German Wikipedia article.

An order 6 hexagon can be seen below. It was created by Louis Hoelbling, October 11, 2004:

It starts with 21, ends with 111, and its sum is 546. This magic hexagon of order 7 was discovered using simulated annealing by Arsen Zahray on 22 March 2006:

It starts with 2, ends with 128 and its sum is 635. An order 8 magic hexagon was generated by Louis K. Hoelbling on February 5, 2006:

It starts with −84 and ends with 84, and its sum is 0. An order 9 magic hexagon was found by Klaus Meffert on September 10, 2024 with help of an AI:

It starts with -108 and ends with 108, and its sum is 0. The solution was found by a python program that was created by the author, utilizing an AI for critical parts of the code. An order 10 magic hexagon was generated by Louis K. Hoelbling on September 28th, 2026.

It starts with 36, ends with 306 and adds to 2439.

Magic T-hexagons Hexagons can also be constructed with triangles, as the following diagrams show.

This type of configuration can be called a T-hexagon and it has many more properties than the hexagon of hexagons. As with the above, the rows of triangles run in three directions and there are 24 triangles in a T-hexagon of order 2. In general, a T-hexagon of order n has 6n2 triangles. The sum of all these numbers is given by:

S=3n2(6n2+1) If we try to construct a magic T-hexagon of side n, we have to choose n to be even, because there are r = 2n rows so the sum in each row must be

M=SR=3n2(6n2+1)2n For this to be an integer, n has to be even. To date, magic T-hexagons of order 2, 4, 6 and 8 have been discovered. The first was a magic T-hexagon of order 2, discovered by John Baker on 13 September 2003. Since that time, John has been collaborating with David King, who discovered that there are 59,674,527 non-congruent magic T-hexagons of order 2. Magic T-hexagons have a number of properties in common with magic squares, but they also have their own special features. The most surprising of these is that the sum of the numbers in the triangles that point upwards is the same as the sum of those in triangles that point downwards (no matter how large the T-hexagon). In the above example,

17 + 20 + 22 + 21 + 2 + 6 + 10 + 14 + 3 + 16 + 12 + 7 = 5 + 11 + 19 + 9 + 8 + 13 + 4 + 1 + 24 + 15 + 23 + 18 = 150

Notes

References Baker. J. E. and King, D. R. (2004) "The use of visual schema to find properties of a hexagon" Visual Mathematics, Volume 5, Number 3 Baker, J. E. and Baker, A. J. (2004) "The hexagon, nature's choice" Archimedes, Volume 4

See also Hexagonal tortoise problem Magic hexagram

Illustrations

Magic hexagon illustration
Magic hexagon illustration
Magic hexagon illustration
Magic hexagon illustration
Magic hexagon illustration

Worked examples

Example 1 — a first encounter with Magic hexagon

Start with the simplest possible case. Write down what Magic hexagon claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Magic hexagon before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Magic hexagon ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Magic hexagon

In research
Magic hexagon appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Magic hexagon in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Magic hexagon is common in secondary-school and first-year university syllabi. It links to neighbouring topics Magic figures, so understanding it makes those chapters shorter.
In everyday life
Look for Magic hexagon outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Magic hexagon” →

How to study Magic hexagon in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Magic hexagon means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Magic hexagon out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Magic hexagon in simple terms?

A magic hexagon of order n is an arrangement of numbers in a centered hexagonal pattern with n cells on each edge, in such a way that the numbers in each row, in all three directions, sum to the same magic constant M. A normal magic hexagon contains the consecutive integers from 1 to 3n2 − 3n + 1.

Why does Magic hexagon matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Magic hexagon?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Magic hexagon.

Tags

  • Magic figures

Keep exploring