Count the Rings or Sear the Squid
In this article
- The idealisation, stated up front
- Two goals that sound like one goal
- Three rings can disagree, for the wrong reason
- The smallest disagreement that is really about rings
- Where the disagreement lives
- One condition, and the problem stops being interesting
- And then where you put things stops mattering
- Three rings, and then four
- The twins
- The constant that wasn’t
- What the edge looks like outside the frying pan
- What I take from this
Drop a handful of squid rings into a frying pan and you have already made a decision, whether or not you noticed making it.
You can lay them out so that as many rings as possible are in the pan. Or you can lay them out so that as much squid as possible is touching hot metal, which is the thing that actually cooks. Those sound like the same instruction phrased twice. They are not, and the gap between them is wide enough to prove theorems in.
What makes it a real problem rather than a word game is that a ring has a hole. A small enough ring drops inside the hole of a larger one and sits flat on the pan, touching metal exactly as much as it would have on its own. So the rings are not competing for area the way coins on a table compete: a big ring is an obstacle and a container at the same time.
The idealisation, stated up front
Real squid rings do something the model forbids: they ride up on each other. A ring resting partly on top of another is not gone — it still sears everywhere outside the overlap — and because the rings have thickness, that pose is not a measure-zero accident. It is what actually happens in a crowded pan.

The model in this article is the rigid one: siblings in a container must be packable as balls with disjoint interiors, so nothing ever rides on anything. That is a real idealisation and it is worth naming before the theorems rather than after, because every result below is a result about the rigid model.
The flexible version is a named open direction rather than an oversight. Let be the width of the lifted ramp a bent ring makes around each overlap. Then — contact area equals the annulus minus the overlapped region — defines a continuous relaxation in which partial placements trade contact for cardinality, and penalises overlaps by a dead band proportional to the overlap perimeter. Neither is solved here.
Stripped of the squid, the rigid problem is a selection-flavoured relative of the Recursive Circle Packing Problem, introduced by Pedroso, Cunha and Tavares (International Transactions in Operational Research, 2016) to model telescoping tubes in shipping containers and later solved exactly by Gleixner, Maher, Müller and Pedroso. That literature is algorithmic: it asks how to pack a fixed set of rings into as few containers as possible, and its methods are heuristics — procedures that propose placements without guaranteeing that the placement mattered. I wanted the structural questions instead. Which objective does the obvious greedy algorithm provably optimise? When is the choice of where to put each ring provably irrelevant? And which condition on the sizes decides the answer?
The preprint is Greedy Packing of Nested Rings; the code, figures and Lean certificates are open. This is the readable version of what is in it.
Two goals that sound like one goal
Fix a width — how thick the squid wall is — and say a ring of outer radius has a hole of radius . The area touching the pan is the annulus:
which for thin rings is close to . So sear — total contact area — behaves almost like the sum of the radii, minus a fixed penalty for every ring you use. Count is just the number of rings.
That penalty per ring is the seed of the whole disagreement. Adding a ring always adds to the count. It does not always add enough area to be worth the space it occupies, because the space it occupies might have gone to something bigger.
Say the two objectives diverge on an instance when the area-optimal arrangement uses strictly fewer rings than the count-optimal one. It turns out you need a surprising amount of structure before that can happen at all.
With two rings, never. If both fit together, take both: area strictly increases when you add a ring, so the full set wins on both counts. If they don’t fit together, every feasible arrangement has at most one ring, and the area optimum already achieves that count. Two rings cannot disagree with themselves.
Three rings can disagree, for the wrong reason
With three it can happen, but only in a degenerate way. Take a pan of radius with very thick rings, , and radii
The two small rings are exactly diametral — — so they fit side by side across the pan and nothing else fits with them. The big ring’s hole has radius , too small for either of them, so nothing nests. And the areas compare as

The single big ring sears more than both small ones together: count says two, area says one. But look at why. The rings are so thick that no hole can hold anything, and the problem has quietly collapsed into ordinary circle packing. The nesting — the thing that makes this squid and not coins — has been switched off.
The smallest disagreement that is really about rings
Turn the width back down so nesting is live again, and the disagreement almost disappears. Almost. The smallest instance where it survives with the holes doing work needs four rings: a pan of radius , width , and radii .
Play it both ways. If you want rings on the pan, take the three 4.2s: they fit side by side, , and they sear about . If you want squid cooked, take the 9.0 and drop one 4.2 into its hole: only , but about of contact area.

Three rings or more dinner. Not both.
The mechanism is worth naming, because it is narrow. It needs small rings that fit times in the pan but at most times in the big ring’s hole. If they fit times in the hole, the two objectives tie and there is nothing to argue about. That off-by-one is the entire divergence in the nesting regime, which is why the minimal instance has four rings and not three.
Where the disagreement lives
Once you know it exists, you can map it. Fix the width at and the pan at radius , take the family “one large ring of radius plus as many equal small rings of radius as you like”, and sweep.

The divergence region is a staircase, and the steps are not arbitrary — each one sits at a proved optimal threshold for packing equal circles in a disk, results that go back to Pirl and Melissen. The band’s upper edge is exactly the three-circle threshold, . Above that, small rings are big enough that three of them no longer fit and the arithmetic stops working.
One honest note, in the same breath as the claim: for the thick-ring family of the previous section, the onset of three-ring divergence sits near . That number is swept, not proved. I sampled it; I did not establish it. The paper says so at that sentence rather than in a footnote, because “I swept a grid and this is where it turned” and “I proved this is where it turns” are not the same currency, and a reader who cannot tell them apart will lean on the wrong one.
One condition, and the problem stops being interesting
Now the other half, which surprised me more than the divergence did.
Call the radii superincreasing when every ring is bigger than all the smaller ones put together: for all . It is a strong condition — the sizes have to fall away fast, each one dominating the entire tail — but it is not exotic. It is the same condition that makes greedy work for coin systems, and the one-dimensional ancestor of this result is a 1987 theorem of Coffman, Garey and Johnson: for bin packing with divisible item sizes, First Fit Decreasing is optimal.
Under superincreasing radii, the descending greedy — take the biggest ring, place it, move on — produces the lexicographically maximal feasible set. And that has a consequence bigger than it first looks: lex-max means it simultaneously maximises
for every positive, strictly increasing, superadditive . Contact area is one such . So is the sum of radii, and the sum of perimeters. All of them at once, by the same arrangement. In this regime the disagreement I spent the first half of this article building is simply gone.
Count itself is not rescued, and the reason is precise: cardinality is , which is not superadditive, so the dominance argument does not apply to it at all.

The counterexample is a pan of radius , width , radii . The greedy takes : two rings, optimal area, and no step even offers a choice of container, so every placement rule agrees. Meanwhile packs in a row in the pan for three. The frontier is exactly superadditivity, and cardinality sits on the wrong side of it.
And then where you put things stops mattering
This is the part I did not expect when I started.
Under the same condition, you do not merely have an optimal greedy. Every descending greedy is optimal, with an arbitrary rule for choosing which container to drop each ring into. Best fit — the tightest container that will take it. Worst fit — the roomiest. Random. Adversarial. They all place exactly the same lex-max set.
The intuition worth holding onto is not “the algorithm is clever”. It is that under superincreasing radii the decision you agonise over has no downstream consequence: whatever you do with the current ring, the rings still to come are collectively smaller than it, and the exchange argument can always rearrange them around your choice.
And because that argument only ever looks inside the ball vacated by a moved ring, it never mentions what the pan looks like. The theorem is stated and proved for an arbitrary compact container , with rings read as spherical shells. A round pan, a rectangular griddle, tubes and spherical shells nested in three dimensions — the original shipping-container setting — are all covered verbatim, not by extension. I do not know of a comparable placement-independence guarantee elsewhere in the circle-packing literature.
The computational corroboration is the kind I like, because it is a genuine attempt to break the claim: 100 random superincreasing instances, run under best fit, worst fit and random placement. All three produced optimal — and therefore identical — outcomes, without exception.
Three rings, and then four
A theorem is only as interesting as its edge, so: how much of this survives without the condition?
With arbitrary radii and no superincreasing hypothesis at all, every descending greedy on at most three rings still lands on the lex-max set. Three rings are simply not enough room to make a bad choice.
Four are.

Pan of radius , width , radii . All four rings fit, and the arrangement that achieves it is tight in both places at once: the 10 and the 5 are exactly tangent in the pan (), and the 4.9 and 4.8 exactly fill the hole of the 10 (, the hole radius).
Now run best fit. Facing the 5, it prefers the snug container — the hole of the 10 — and nests it. That single reasonable-looking decision forces the 4.9 out into the pan, and once the 4.9 is in the pan, the 4.8 has nowhere left. Best fit gets three rings. Worst fit gets four.
So placement obliviousness is sharp. It holds unconditionally at three and fails at four.
The twins
You might reasonably conclude that the fix is a better rule. Best fit is naive; write a smarter one.
You can’t, and the reason is the sharpest result in the paper.
Take a pan of radius , a 10 and a 5, width — so the hole of the 10 has radius — and these two instances:
In the two small rings sum to , which fits in the hole. So the 5 belongs in the pan, and worst fit gets it right while best fit fails. In they sum to , which does not fit in the hole. So the 5 belongs in the hole, and now best fit gets it right while worst fit fails.

Opposite decisions. And here is the point: at the moment of decision, the two instances are indistinguishable. The containers are the same, their capacities are the same, the occupants are the same, the incoming ring is the same, and are the same. Every quantity a placement rule could look at, reading the state in front of it, is identical — and the correct move is different.
The consequence is not “best fit is bad”. It is that no deterministic rule which is a function of the observable state can be optimal on all instances, and every randomised rule fails some instance with probability at least . The information required to decide is not in the state. It is in the rings you have not looked at yet.
The constant that wasn’t
There is one more thread, and it ends in the nicest wrong guess I have had in a while.
If superincreasing radii give you all of this and violating them costs you all of it, there should be a threshold in between. Measure the violation by how badly the worst ring is beaten by its own tail:
so is exactly the superincreasing condition. In the additive relaxation — where siblings are feasible precisely when their radii sum to at most the capacity, geometry stripped out — the threshold is exactly . Clean, universal, and the reason the additive model is the right place to isolate the combinatorial half of the difficulty.
The geometric model is where it gets interesting. The rigid four-ring family of counterexamples has an infimum, and that infimum is exactly the Tribonacci constant — the analogue of the golden ratio for the recurrence that sums the previous three terms. It is proved, with no tangency idealisation smuggled in. Given that three-term structure and a problem about rings inside rings inside rings, the natural conjecture writes itself: is the global threshold.
It isn’t. There is an explicit family — pan of radius , radii — that breaks placement obliviousness at , for every small . Since , that proves the geometric threshold satisfies
and the Tribonacci conjecture is dead. The golden ratio gets there first.
For a while that was only half a result: was proved, and the matching lower bound only for pair profiles and outside an explicit heavy region. It is now closed. For disks the global threshold is exactly — no failure at all at , for every finite inventory, and even when each ring is allowed its own independent hole radius. Tribonacci is demoted from “the threshold” to “the exact floor of a rigid subfamily”: still a sharp constant, just not the one I expected it to be.
What closes it is the nicest theorem in the paper, and it is the kind of statement you can carry around:
Order the rings , and suppose every tail is bounded by times its radius. Then the whole list fits in a disk if and only if the three largest fit.
Everything after the third ring comes along for free. Not “usually fits”, not “fits with high probability”: the question about rings collapses, exactly, to a question about three. That is what supplies the uniform exchange the threshold proof needs, and it meets the four-ring golden counterexamples coming down from above — beyond the golden bound the collapse fails, below it there is no failure left to find.
What the edge looks like outside the frying pan
Everything above about the edge — the failure at four, the twins, the floors — was originally a statement about a round pan in the plane. The positive half never needed the shape; the sharp half had only been measured there. So I went and asked which of the two the boundary really belongs to.
In balls of any dimension, nothing moves. The three-ring guarantee holds for an arbitrary compact container in any dimension, and the failure at four survives with the same instance , and so do the twins, and so does the Tribonacci floor. The reason is a reduction lemma worth stating on its own: balls of radii fit as siblings inside a ball of radius in if and only if they fit in . Sibling queries of three or fewer rings therefore have identical answers in every dimension , and every result whose proof only asks such questions comes along for free. A separate argument pushes the golden threshold itself up to five rings in those dimensions. The first query that can tell dimension 2 from dimension 3 needs four pieces, and there is an explicit one: radii in a ball of radius , which fits in 3D with centres at the four even-sign points , , and does not fit in the plane.
Square pans are where the constant genuinely changes. Placement irrelevance fails at four there too, twin instances kill state-based rules in a square as well, and the bound has been pushed down to
where is the positive root of . So the disk and the square do not share a threshold: against something near . The corner is what changes it. Whether is optimal is open.
And the rings no longer have to share a width. Let each ring carry its own hole radius — equivalently, its own thickness — and the selection result survives untouched: at every descending greedy still produces the lex-max set, in any compact container and any dimension. What does not survive is area optimality, and it fails in a way you can put a number on. Fix ; then
and that constant is the best possible. Below the guarantee is — the greedy set is the only area optimum, and the divergence this article opened with cannot happen. Above it, the guarantee decays, and two rings in a round pan are already enough to show the constant cannot be improved.
What is still open: the global threshold in dimension three and above — the reduction to a plane covers queries of three siblings, not counterexamples built from four or more — and whether is the true square constant.
What I take from this
Two things, and neither is about squid.
The first is that “what am I actually maximising?” is not a philosophical warm-up question. It is the question that decides the answer. Count and sear look interchangeable until you write them down, and then they pull apart in a region you can draw. If a system optimises the proxy you gave it rather than the thing you wanted, the failure is often not that the optimiser is bad — it is that you handed it the wrong , and the two only coincide outside the band you happen to be in.
The second is more cheerful. There exist regimes where the hard part evaporates: where every objective in a broad class agrees, where the obvious algorithm is provably right, and where the decision you would have spent your time on has no consequence at all. Knowing whether you are inside one is worth more than any amount of cleverness spent on the decision itself. Here the test fits on one line — is every ring bigger than the sum of the rest? — and the reward for passing it is that you get to stop thinking.
This is a long way from the algebra I spent my doctorate on, and it started, genuinely, in a frying pan. The preprint has the proofs; the repository has the code, the figures and the Lean certificates for the exact identities.