Puzzles · Math · Hard
The camel and the bananas
You have 3,000 bananas and a camel which can carry at most 1,000 bananas at a time. The camel eats one banana for every unit of distance it moves. You want to transport the bananas 1,000 units. What is the maximum number of uneaten bananas that you can deliver?
Posted on r/puzzle · Oct 29, 2026 · 265 upvotes · 560 comments
The answer
Give it a real try first. Tap the box when you're ready.
533 bananas.
Move the bananas forward in stages, leaving piles along the way.
Stage 1: with 3,000 bananas you need three loads, so moving the whole pile forward one unit takes 5 trips (3 forward, 2 back) and costs 5 bananas. After 200 units you have 2,000 bananas left.
Stage 2: with 2,000 bananas you need two loads, so it costs 3 bananas per unit. After another 333⅓ units you're down to 1,000.
Stage 3: carry the last 1,000 in one load for the remaining 466⅔ units. 1,000 − 466⅔ leaves 533 whole bananas at the end.
What Reddit said
The comments give the answer away, so this is hidden too.
- What are the rules? The top comment, from u/konigon1, asked whether the camel eats when it walks back empty. We confirmed it eats one banana per unit whatever it carries, and can't move without bananas.
- The depot idea. u/jacob643 explained why the stage lengths fall out naturally: you switch to fewer trips exactly when the pile drops by one full load.
- The leftover banana. u/Telinary noticed that rounding at the stage boundaries can leave you with 1,001 bananas instead of 1,000 at the start of stage 3, which is why the distances aren't whole numbers.
- Change one rule, change the answer. u/No_Cauliflower633 got 833 by assuming the camel can walk back without eating.
- The lateral answer. u/Fuzzy974 pointed out that nobody said you have to use the camel.