icon

Sharing cakes

Share this page

We'd like to thank Syed Abbas, Associate Professor and Chairperson SBS, IIT Mandi, India, for sending in this puzzle. Reportedly, a version of it was put to Ali ibn Abi Talib in the seventh century AD. Another version appears in Fibonacci's famous Liber Abaci.


Cake

Two people on a long walk sit down for a well-deserved break. Person A has brought along 3 cakes to eat and person B has brought along 5 cakes.

As they are just about to tuck in person C arrives and asks to share their meal. A and B agree. They cut each cake into three equal pieces and each person eats one piece of each cake.

After the meal person C pays 8 coins for the cake. Person A gives 5 of these coins to person B and keeps 3 for himself. But person B complains. She demands to be given 7 of the coins with only 1 remaining for A.

Who is right and why?

Can you generalise the solution for an initial $k$ people having $n_1, n_2, ...,n_ k$ cakes respectively, who are then joined by another $m$ people who pay $n_1+n_2+n_3+...+n_ k$ coins each?

Permalink
Comment

I think that person A is correct as each coin should contribute to a cake

Permalink In reply to by Maths guy (not verified)
Comment

I think person A in corect as each coin should be worth a cake.

Permalink In reply to by Maths guy (not verified)
Comment

Person A is right because each coin should equal 1 slice.

Permalink
Comment

Person c paid 8 coins meaning for 8/3 proportion of cake equals 8 coins.
Therefore, if we count what person A contributes it comes to 1/3 portion after subtracting his share for food. It means he should get 1 coin.
Person B is final score comes at 7/3 meaning she should get 7 coins.

  • Want facts and want them fast? Our Maths in a minute series explores key mathematical concepts in just a few words.

  • What do chocolate and mayonnaise have in common? It's maths! Find out how in this podcast featuring engineer Valerie Pinfield.

  • Is it possible to write unique music with the limited quantity of notes and chords available? We ask musician Oli Freke!

  • How can maths help to understand the Southern Ocean, a vital component of the Earth's climate system?

  • Was the mathematical modelling projecting the course of the pandemic too pessimistic, or were the projections justified? Matt Keeling tells our colleagues from SBIDER about the COVID models that fed into public policy.

  • PhD student Daniel Kreuter tells us about his work on the BloodCounts! project, which uses maths to make optimal use of the billions of blood tests performed every year around the globe.