PlayNook

Puzzle · Dissection Puzzle

Play Ostomachion — Archimedes' Puzzle

One target shape and 536 different ways to reach it. The game is not solving the square — it is collecting the ways you have solved it.

Fourteen flat pieces, cut from a square. Put them back into a square.

That is the entire puzzle, and it has been the entire puzzle since the third century BC, when Archimedes wrote a treatise about it. Only fragments survive — the text was scraped off its parchment in the Middle Ages and written over with prayers, and what is left of it was read with X-rays in the 2000s.

What makes it worth playing is not the difficulty. It is the number.

How many ways can the Ostomachion be solved?

Twelve differently coloured tilings of the same square by the same fourteen Ostomachion pieces, labelled with their solution numbers from one to five hundred and twenty-eight.
Twelve of the 536, drawn from our own search. Same pieces, same square, and none of these is another one turned round.

536. Not one solution, not a handful — five hundred and thirty-six genuinely different ways to make the same square out of the same fourteen pieces.

That number is recent. Bill Cutler settled it by exhaustive computer search in 2003, more than two thousand years after the question was probably first asked. We ran the search again for this page rather than copy the figure, and got the same answer twice over — which is also how we know the pieces on this page are the right ones.

How to play the Ostomachion

Drag a piece onto the square; it snaps to the grid, so it is either on a legal spot or obviously not. Tap a piece to select it, then Turn rotates it by 90° and Flip turns it over. On a keyboard that is R and E to turn and F to flip. Nothing is timed and nothing can be lost.

Start with the awkward pieces, not the big ones

The instinct is to place the large piece first because it takes up the most room. It is the wrong instinct here. Two of the fourteen have area 3 and are long thin slivers, and a sliver fits almost nowhere — it needs a corner or a seam of exactly the right angle. Place those two early, while the square is still open, and the rest of the puzzle arranges itself around them. Leave them until last and you will almost always find that the only gaps left are the wrong shape.

The second habit worth having: work from the edges inwards. Ten of the fourteen have a flat side of length four or more that wants to lie against the border of the square — nine of length six, and one of a full twelve, which can only be the left or right edge. Committing those removes a great deal of the search before it starts.

What this game actually asks of you

Not to solve the square. To solve it again, differently.

Every time you complete it, the page works out which of the 536 you have built and whether you have had that one before, and keeps the list. One is an afternoon. A dozen is a habit. Nobody gets all 536, and the counter is honest about that.

Turning it round is not a new solution

This is the part that has to be right or the whole counter is theatre. Before your arrangement is compared with the list it is folded through the square's own eight symmetries — four rotations, each with its mirror — and through the swap of each pair of identical pieces. Only then is it looked up.

So a finished square you rotate is the same solution, and it says so.

Why 536 and not 17,152?

The arithmetic behind the count: 17,152 arrangements divided by eight symmetries and twice by two for the two pairs of identical pieces gives 536 genuinely different solutions.
Both figures turn up in the literature. They count different things, and the factor between them is exactly 32.

You will meet both numbers. They are both right.

17,152 counts every arrangement separately — each of the eight ways a solution can sit in the square, and each of the four ways the two pairs of identical pieces can be swapped. 536 folds all of that away. 536 × 8 × 2 × 2 = 17,152, and that factor of 32 is the whole difference.

Our search produced 4,288 arrangements with the identical pieces treated as interchangeable, which is 17,152 ÷ 4, and 536 after folding by symmetry. Getting both published numbers out of one run is what convinced us the piece set was correct.

The fourteen pieces

The fourteen Ostomachion pieces side by side at one scale, each labelled with its area, from two slivers of area three up to a large piece of area twenty-four.
Every corner sits on a twelve-by-twelve grid, and every area is a whole number. Two pairs among them are identical.

There is nothing decorative about the cut. Every corner of every piece sits on a 12 × 12 grid, which is why the areas come out as whole numbers: 3, 3, 6, 6, 6, 6, 9, 12, 12, 12, 12, 12, 21, 24 — adding to 144, the area of the square.

That grid is also what makes the game exact. Pieces turn in quarter turns and land on grid points, so there is no rounding anywhere and a finished square is either finished or not.

Two of the fourteen are duplicates of two others. It is a small detail with a large consequence: it is the reason the honest count is 536 rather than 2,144.

Is it harder than tangram?

Harder to finish, and much easier to finish by accident.

Fourteen pieces against tangram's seven is a far bigger search, and several of the Ostomachion pieces are thin slivers with only one or two places they can go. But there is only one target shape and 536 routes into it. In tangram most silhouettes have a handful of solutions, and some have none at all — a hopeful arrangement there usually fails, and here it quite often works.

Where the puzzle comes from

The name is Greek and roughly means bone-fight — the pieces were ivory or bone. The Latin name, Loculus Archimedius, just means Archimedes' little box.

What survives of the treatise is a few sentences in the Archimedes Palimpsest, a prayer book written over a scraped-clean copy of his work. Read under X-ray fluorescence at Stanford in the 2000s, the fragments read as though the question being asked was how many arrangements exist — not whether one does. If that reading is right, this is the oldest known problem in combinatorics, and the answer took twenty-three centuries.

If you like this one

Tangram is the same idea with seven pieces and endless target shapes rather than one, and it has its own countable fact — exactly thirteen convex figures. Crates and the 15 puzzle are the other puzzles here, and the rest sit in puzzle games.

The 536, and how they were counted

Archimedes and the number 536 walks through the whole computation: the 4,288 tilings the search finds, how symmetry and the swap of two identical pieces fold them down to the 536 that Cutler published in 2003, and one thing that does not seem to be written down anywhere — how strongly each individual piece is pinned, which turns out to have nothing to do with its area.

The search runs on integer coordinates only, so every test is exact: 7,072 candidate placements, 1,640,374 nodes, 135 seconds. All 536 tilings are published as ostomachion-536.json if you would rather check the arithmetic than take our word for it.

Frequently asked questions

+ What is the Ostomachion?

A square cut into fourteen flat pieces, which you put back together into a square. Archimedes wrote a treatise about it in the third century BC — only fragments survive, in a palimpsest that was scraped clean in the Middle Ages and written over with prayers. It is also called the Stomachion or the Loculus of Archimedes, and it is very probably the oldest puzzle for which we have a written record.

+ How many solutions does the Ostomachion have?

536, counting arrangements that differ only by turning or mirroring the whole square as the same. Bill Cutler established that by exhaustive computer search in 2003. Count every rotation and reflection separately, and also count the two pairs of identical pieces as swappable, and you get 17,152 — which is 536 × 8 × 2 × 2. Both numbers appear in the literature and both are right; they count different things.

+ Did Archimedes know how many there were?

Nobody knows, and it is the most interesting open question about the puzzle. The surviving fragments read as though the question he was asking was how many arrangements exist rather than whether one does — which would make this the oldest known problem in combinatorics by roughly two thousand years. What he concluded, if anything, is lost with the rest of the text.

+ How is this game scored?

It is not. Every time you complete the square, the page works out which of the 536 you have made and whether you already had it, and keeps the list. The counter is the point of the game: one solution is an afternoon, a dozen is a habit, and nobody is expected to get all 536.

+ Does turning my finished square round count as a new solution?

No, and that is the part worth getting right. A finished arrangement is folded through the square's eight symmetries — four rotations, each with its mirror — and through the swap of each pair of identical pieces, before it is compared with the list. That is exactly how Cutler's 536 is counted, so the number on screen means the same thing his does.

+ Is the Ostomachion harder than tangram?

Harder to finish, easier to finish accidentally. Fourteen pieces against seven is a much bigger search, and several of the pieces are thin slivers that only fit one or two ways. But there is only one target shape and 536 ways into it, so a hopeful arrangement is far more likely to come out right than it is in tangram, where most silhouettes have a handful of solutions or none.

+ Why is it called Ostomachion?

From Greek roughly meaning bone-fight or belly-fight — the pieces were made of ivory or bone, and the name has the flavour of a scrap. Stomachion is the other spelling in the sources. The Latin name, Loculus Archimedius, just means Archimedes' little box.

+ Can I see a solution?

Yes — Show me a new one lays out a complete square you have not found yet. It counts towards your total, which is deliberate: seeing one finished is a fair way to learn what you are aiming at, and there are 535 others left.

More games like this