The mathematical mystery of squares where every sum is identical

Magic Squares · 4:38 · Video: Gresham College · Watch at the source

In short: Magic squares are far more than simple puzzles; they represent a deep, historical challenge in combinatorics. While we can easily solve small grids, calculating the total number of possible magic squares for even a 6x6 grid remains an unsolved problem in modern mathematics.

The study of magic squares—grids where rows, columns, and diagonals sum to the same value—dates back as far as 1200 BC China. Throughout history, these structures have fascinated everyone from artists like Albrecht Dürer to polymaths like Benjamin Franklin, who mastered a massive 16x16 version. However, for centuries, they were considered a "backwater" of combinatorics, overshadowed by more "respectable" mathematical cousins like Latin squares.

The difficulty lies in the sheer scale of possibilities. Mathematicians currently do not know the total number of general n x n magic squares even for a 6x6 grid. To find order within this complexity, researchers look for "tractable subclasses." A breakthrough occurred in 1982 when Kathleen Ollerenshaw and Hermann Bondi began constructing these squares analytically, moving beyond the methods used by Leonhard Euler in 1779.

Ollerenshaw eventually focused on a specific class known as "most perfect" magic squares. These possess unique properties: every 2x2 subsquare (including those that wrap around the edges) sums to 2(n² − 1), and pairs of entries at distance n/2 on any diagonal sum to n² − 1. These constraints are so powerful they force the grid size n to be a multiple of 4.

Ollerenshaw’s "heroic attack" on this problem resulted in a complete enumeration published in 1998, nearly twenty years after her initial work began. While there are only 48 most perfect squares for a 4x4 grid, the numbers explode as the size increases: there are 368,640 for an 8x8 grid, and over 22 billion for a 12x12 grid.

Opens the Intellect+ feed with this card first. Swipe up for the next one.

Sources

To cite this card, link to https://intellectplus.co.uk/app/ideas-magic-squares.

How we source, check and correct cards: Editorial standards.

General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.

Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?

Related

Finding something worth knowing…