Magic Zero Hexagons

Initializing live version
Download to Desktop

Requires a Wolfram Notebook System

Interact on desktop, mobile and cloud with the free Wolfram Player or other Wolfram Language products.

The numbers to 9 can be arranged in a hexagon so that all lines of hexes have a sum of zero. There seem to be 19 distinct ways to do this. By comparison, the numbers 1 to 19 can be arranged for a magic sum of 38 in a unique way; select arrangement 20 to see it.


The triangular numbers are . This Demonstration shows that to make magic zero hexagons. Can to make a magic hexagon for all ?


Contributed by: Ed Pegg Jr (January 2021)
Open content licensed under CC BY-NC-SA




[1] Wikipedia. "Magic Hexagon." (Dec 4, 2020)

Feedback (field required)
Email (field required) Name
Occupation Organization
Note: Your message & contact information may be shared with the author of any specific Demonstration for which you give feedback.