Archive:
Subtopics:
Comments disabled |
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: 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 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!!. 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!!. 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. AddendumNow 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. 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 |