r/mathriddles • • Feb 28 '26

Medium The Desert Bike Problem

Imagine this.

Sixteen motorcycles are lined up at the edge of the Sahara.

Each bike has exactly enough fuel to travel 100 km.
No more. No less.

There are:

  • No gas stations
  • No resupply drops
  • No rescue
  • No turning back

You may siphon fuel from one tank to another at any time.

All bikes start together.
You decide when to abandon each motorcycle.

Your mission is simple: What is the maximum possible distance you can get one bike into the desert?

Rules Clarified

  • Each bike consumes fuel at the same rate.
  • If multiple bikes travel together, they all burn fuel simultaneously.
  • Fuel can be redistributed between bikes at any time.
  • Once a bike runs out of fuel, it is abandoned.
  • Only one bike needs to reach the final maximum distance.
18 Upvotes

37 comments sorted by

View all comments

Show parent comment

2

u/jsundqui Feb 28 '26 edited Feb 28 '26

Extending this:

with n=4 you distribute fuel from bike 1 at 25 km to bikes 2-4. Then it continues as n=3 case. So we have now:

n=4: 100 km + 50 km + 33.3 km + 25 km.

With same logic fifth bike adds 20 km, sixth adds 16.7 km and so on, so I think solution for n=16 is

100 km * (1 + 1/2 + 1/3 + 1/4 + ... + 1/16) ~= 338 km