The Universe of Discourse


Thu, 01 May 2025

A puzzle about balancing test tubes in a centrifuge

Suppose a centrifuge has !!n!! slots, arranged in a circle around the center, and we have !!k!! test tubes we wish to place into the slots. If the tubes are not arranged symmetrically around the center, the centrifuge will explode. Let's consider the example of !!n=12!!. Clearly we can arrange !!2!!, !!3!!, !!4!!, or !!6!! tubes symmetrically:

twelve small circles arranged around a central point, like a
  clock; circles 5 and 11 are filled in cirles 1, 5, and 9 are filled in circles 0, 3, 6, and 9 are filled circles 1, 3, 5, 7, 9, and 11 are filled

Equally clearly we can't arrange only !!1!!. Also it's easy to see we can do !!k!! tubes if and only if we can also do !!n-k!! tubes, which rules out !!n=12, k=11!!.

It's perhaps a little surprising that when !!n=12!!, we can do !!k=7!!. If you just ask this to someone out of nowhere they might have a happy inspiration: “Oh, I'll just combine the solutions for !!k=3!! and !!k=4!!, easy.” But that doesn't work because two groups of the form !!3i+j!! and !!4i+j!! always overlap.

For example, if your group of !!4!! is the slots !!0, 3, 6, 9!! then you can't also have your group of !!3!! be !!1, 5, 9!!, because slot !!9!! already has a tube in it.

The k=3 and k=4 diagrams from before, superimposed; there is a
  small explosion symbol at 9 o'clock where they interfere

The other balanced groups of !!3!! are blocked in the same way. You cannot solve the puzzle with !!7=3+4!!; you have to do !!7=3+2+2!! as below left. The best way to approach this is to do !!k=5!! tubes, as below right. This is easy, since the triangle only blocks three of the six symmetric pairs. Then you replace the holes with tubes and the tubes with holes to turn !!k=5!! into !!k=12-5=7!!.

a triangle filling slots 1, 5, and 9, plus a pair at 0, 6 and
  another pair at 2, 8 the opposite of the previous diagram, consisting of a triangle
  filling slots 3, 7, 11 and a pair at 4, 10

Given !!n!! and !!k!!, how can we decide whether the centrifuge can be safely packed?

Clearly you can when !!n!! is a multiple of !!k>1!!, but the example of !!n=12, k=5!! (or !!k=7!!) shows this isn't a necessary condition.

It can always be done if !!\gcd(n,k) = g > 1!! since you can easily balance !!g!! tubes at positions !!0, \frac ng, \frac{2n}g, \dots, \frac {(g-1)n}g!!, then do another !!g!! tubes one position over, and so on. For example, to do !!n=12, k=8!! you just put first four tubes in slots !!0, 3, 6, 9!! and the next four one position over, in slots !!1, 4, 7, 10!!.

Two squares this time, as described in the previous paragraph

An interesting counterexample is that the strategy for !!n=12, k=7!!, where we did !!7=3+2+2!!, cannot be extended to !!n=14, k=9!!. One would want to do !!k=7+2!!, but there is no way to arrange the tubes so that the group of !!2!! doesn't conflict with the group of !!7!!, which blocks one slot from every pair.

But we can see that this must be true without even considering the geometry. !!n=14, k=9!! is the reverse of !!n=14, k=14-9=5!!, which impossible: the only nontrivial divisors of !!n=14!! are !!2!! and !!7!!, so !!k!! must be a sum of !!2!!s and !!7!!s, and !!5!! is not.

You can't fit !!k=3+5=8!! tubes when !!n=15!!, but again the reason is a bit tricky. When I looked at !!8!! directly, I did a case analysis to make sure that the !!3!!-group and the !!5!!-group would always conflict. But again there was an easier was to see this: !!8=15-7!! and !!7!! clearly won't work, as !!7!! is not a sum of !!3!!s and !!5!!s. I wonder if there's an example where both !!k!! and !!n-k!! are not obvious?

For !!n=20!!, every !!k!! works except the always-impossible !!k=1,19!!.

What's the answer in general? I don't know.

Addendum

Now I am amusing myself thinking about the perversity of a centrifuge with a prime number of slots, say !!13!!. If you use it at all, you must fill every slot. I hope you like explosions!

While I did not explode any centrifuges in university chemistry, I did once explode an expensive Liebig condenser.

A chemistry lab
apparatus.  In the middle thje the Liebig condenser, a pair of long
concentric glass tubes, one inside the other, supported by a metal
ring stand.  At left a heater heats a flash whose top is connected to
the upper end of the inner tube of the condenser.  The condensate
collects in a flask at right.  Two rubber tubes connect to the top and
bottom of the outer tube, carrying water through it.

Condenser setup by Mario Link from an original image by Arlen on Flickr. Licensed cc-by-2.0, provided via Wikimedia Commons.


[Other articles in category /math] permanent link