At MathsJam, I was pointed at a puzzle from the New Scientist, which I’ll paraphrase as:

You have a long, thin cake of length 1. Two candles are places at random 1 points on the top of the cake, and the cake is cut (perpendicular to its edges) at a third random point. What is the probability that the two resulting pieces of cake each have a candle on?

In discussion, we came up with three ways, which I’ll present in reverse order of complexity. Spoilers below the line.


In three dimensions (my way)

Let the first candle be at position x and the second at position y. The probability of the cut dividing the candles is |xy|, which I think of as a height above the xy-plane.

The resulting 3D graph forms a pair of tetrahedra, each with a base of area 12 and height 1; the volume of each is therefore 16 and the probability is 13.

A single integral

Suppose the cut takes place at position x. The probability the candles lie on either side of the cut is 2x(1x), so the total probability is 012x2x2dx=[x223x3]01, which is again 13.

A simple and logical approach

Philipp pointed out that the three points are in an order from left to right, and the probability of any given one of them being in the middle is 13.


I love it when there’s an elegant solution! Did you tackle it a different way?

Footnotes:

1. Throughout, “random” means “at a point drawn from a uniform distribution on the cake’s length”.