# Brain Teasers/Cut a cake into 8 equal pieces with 3 cuts

From Software Engineers Wiki

You have a birthday cake and have exactly 3 cuts to cut it into 8 equal pieces. How do you do it?

## Answer

This is similar to folding a paper half each time. Each time we fold a paper, it makes folding marks of 2^n of same size of paper. For the cake, we can cut it into 4 pieces with 2 cuts. For third cut, stack these 4 pieces then cut the all together.