The Cake Icing Puzzle

Take a cake with icing on the top and no icing on the bottom. Pick an angle , cut a piece out of the cake in the usual way with center angle , turn the piece upside down, and replace it in the gap in the cake. Then do it again, with a piece that borders the initial piece. Keep doing this, moving in the same direction, thus forming cut lines at , , , , and so on.

1. Will it ever happen, after the first inverting operation, that the cake is in its initial position, with all of the icing on the top?
2. Will it ever happen that all the icing is on the bottom?

Of course, if is a right angle, for example, then the answers are clearly YES and YES after eight and four cuts, respectively. But what if is not a rational multiple of , say radian?


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


This puzzle first appeared in the 31st Moscow Mathematical Olympiad. The complete solution can be found in the book by P. Winkler, Mathematical Mind-Benders, Natick, MA: AK Peters, 2007. If is the smallest integer greater than or equal to , then the icing covers the top of the cake after iterations (unless , in which case it takes iterations). The icing will never all be on the bottom of the cake (unless , in which case this happens after iterations). Snapshot 3 shows the situation after 83 cuts for the case , , and ; one more operation restores all the icing.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2018 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+