The Lab · a puzzle since the 1960s

Circles in a Square

Fit n equal circles into a square and make them as big as you can. For small n the best arrangement is known for certain. Past 30, the records are just the best anyone has found, and they've been improving for sixty years.

Try this

Start with 5: four in the corners and one in the middle, obviously. Now try 7, then 13, and press Show the record. The best arrangements aren't tidy. One circle often sits loose, touching nothing (drawn hollow): a rattler. With 10 circles there's no obvious arrangement at all, and proving the record best took until 1990.

Press Jostle and watch the computer work. The circles start small and grow, shoving each other apart. When they jam, the most crowded one jumps to the biggest gap and they try again. For 20 circles it usually gets within a percent or two of the record in a few seconds, and sometimes finds it. Or build an arrangement by hand first and let it tighten yours: the amber lines show which circles are holding the packing rigid.

Then try 36: a 6 × 6 grid, and proven best. Now 37: fitting one more means the whole pattern has to shear into something new. And 49 is a surprise. You'd think a 7 × 7 grid must be best, but the record squeezes them in 0.4% bigger, and nobody has proved anything about it.

Where it came from

Nobody knows who first asked the question, but mathematicians were proving answers by 1965, when Jonathan Schaer and Amram Meir settled 8 and 9 circles. Ronald Graham and Boris Lubachevsky brought computers to it in the 1990s, simulating circles as billiard balls that slowly swell while they bounce, and found many of the records that still stand. Kari Nurmela and Patric Östergård proved the best packings up to 27 circles in 1999, and Mihály Markót and Tibor Csendes pushed the proofs to 30 in 2005. There the proofs stop.

Eckard Specht has kept the record book, Packomania, since 1999, for thousands of circles. The radii, the record arrangements and the credits in this toy all come from it. Between 31 and 100 circles, most records were set by Graham and Lubachevsky's billiards in 1996, by Specht with Péter Szabó in 2007, and by Bernardetta Addis, Marco Locatelli and Fabio Schoen in 2005. A few still fell to lone searchers like David Cantrell as late as 2010, and in 2022 Xiangjing Lai and colleagues improved more than a hundred records in the low hundreds of circles at once.

The ceiling is the honeycomb: no arrangement of equal circles can fill more than about 90.7% of the plane. In a square the walls get in the way, and the fight between the honeycomb and the square's corners is what makes the records so strange.

Links