Information

The shipment of 1000 oranges

The shipment of 1000 oranges

Alberto and Benito run a greengrocer for years. Today a shipment of 1000 oranges has arrived in 10 boxes. Benito who is not very hardworking and loves wit games proposes the following to his partner:

What are you not able to distribute the oranges in the boxes so that when you enter the first customer and ask for any number of oranges, you can give them one or more boxes but without changing any site orange?

Solution

We can get it keeping in each box 1, 2, 4, 8, 16, 32, 64, 128, 256 and the remaining 489 oranges in the last box. It is about the different powers of 2 that, combined, allow us to generate any number between 1 and the total of oranges.