# Applied circle packing Twelve circular muffins fit nicely on a circular plate.

Yes, I know they’re not quite uniform in size. What do you want? My sous-chef is two years old. Also she was not helping but rather running around under the dining room table.

Anyway, this apparently is not the optimal packing – that is, the one that maximizes the ratio (muffin radius)/(plate radius), although it is a piece of the optimal packing in the infinite plane. You could fit slightly larger muffins if you packed them like this:

Image from the Wikipedia article Circle packing in a circle. The proof is due to Ferenc Fodor, The Densest Packing of 12 Congruent Circles in a Circle, Beiträge zur Algebra und Geometrie, Contributions to Algebra and Geometry 41 (2000) ?, 401–409. The radius of the plate is 4.029… times the radius of the muffin. (This is ${2 \over \sqrt{3} x_0} + 1$ where $x_0$ is the smallest positive root of $9x^5 - 15x^4 + 7x^3 - 3x + 1$.)

As it turns out, the packing I discovered isn’t all that far off from this constant. Let the radius of the muffin be 1, and draw triangles as below.

The center of the plate is at the center of the packing, which is the center of the red equilateral triangle. If this triangle has side 2, then the distance from its center to any of its vertices is $2/\sqrt{3}$. This is the length of the shortest side of the blue triangle.

The blue triangle therefore has sides of length $2/\sqrt{3}$ and $2$, with an angle of 150 degrees between them. The long side of the blue triangle, by the law of cosines, is given by $\sqrt{(2/\sqrt{3})^2 + 2^2 - 2 (2/\sqrt{3}) (2) \cos 5\pi/6} = \sqrt{4/3 + 4 - (8/\sqrt{3}) (-\sqrt{3}/2)} = \sqrt{4/3 + 4 + 4} = \sqrt{28/3}.$

The distance from the center to the edge of the plate is then $latex\sqrt{28/3} + 1$, the length of the long side of the blue triangle plus the green line segment which is a single muffin radius. If you’re working this out in your head while watching the aforementioned sous-chef run around at the park, though, you wonder about the numerical value of this constant and think maybe you shouldn’t pull out your phone-calculator. Fortunately it’s easy to work out approximately: $\sqrt{28/3} = 3 \sqrt{1 + 1/27}$, and remembering $\sqrt{1+x} \approx 1 + x/2$ for small $x$ this is very close to $3 (1 + 1/54) = 3 + 1/18 \approx 3.055$. So the radius of the (idealized) plate is about $4.055$ times the radius of the (idealized) muffin, not all that far off from the $4.029\cdots$ due to Fodor.

# Merry Christmas, y’all

My love, skimming through her hometown newspaper yesterday: “Babe, can you check the math on this Christmas fact I found here?”

Me: “Let me guess. The answer’s 364.”

And it was.  Merry Christmas.

This is a post from an old folder of drafts; I’m not sure what year’s Christmas it was actually written on.

# 44 candles

Hanukkah candles can be bought in sets of 44. My older daughter came home from preschool with a box, which is how I came to know this.

That number surprised me at first – but on each of the eight nights of Hanukkah you light one candle (the shamash) and then use it to light the number of candles corresponding to the night. So you need 2 + 3 + … + 9 candles; summing the series gives 11 x 8 / 2 = 44.

It does seem like they should give you a few extras in the box, though, in case something goes wrong.

# Difference of cubes

My partner and I tried to have “When I’m Sixty-Four” played at our wedding, but we didn’t because I couldn’t find the sheet music.

It’s my birthday. When I’m sixty-four our second child, who will arrive in a few days, will also have an age which is a cube.

We’ll never be prime at the same time, though.