**From New Scientist #3236, 29th June 2019** [link] [link]

Lady Frederica von Battenberg has baked a long, thin rectangular cake for her daughter Victoria. She has picked two random points on top of the cake on which she has placed two candles.

She hands the cake knife to Victoria, who now proceeds to pick a random point along the length of the cake, and cuts across the cake at that point.

Now that the cake has been cut in two, what is the chance that both pieces of cake have a candle on them?

[puzzle#09]

### Like this:

Like Loading...

We select three points,

a, b, xalong the cake (we don’t need to worry about where they are across the cake). The chance of any two of the points coinciding is zero, so we can order them such that one is in the middle.The probability that any particular point is in the middle is 1/3.

If

aandbrepresent the points where the candles are placed, andxrepresents the point the cake is cut, then the probability that each half of the cut cake has a candle, is the same as the probability thatxis betweenaandb, i.e. 1/3.Here is a program that does a million random trials and reaches the same conclusion.

Run:[ @repl.it ]Solution:The probability that both pieces of cut cake have a candle is 1/3.