Suppose a car's fuel tank can carry at most 500 unit fuel, but it need to travel from A to B where the distance between them is 1000 km. Suppose that the fuel consumption rate is 1 unit/km, and between A and B, the car can store any amount of fuel at any point. The question is, what is the minimum unit of fuel needed at the starting point A?
To make the problem clearer, consider a simple problem of traveling 5 km, with the car's max fuel 4 unit. Of course, if you just take 4 unit fuel at the starting point, it cannot finish 5km. So you can pick a position, say 1 km from the start, when your full fueled car reach here, you have 3 unit left, so you store 1 unit here and then go back to start with 4 unit again. This time, when you reach this point, you have 3 unit left because you traveled 1km, but you can take 1 unit from your previous storage to make your fuel tank full again. And now you have 4 unit fuel with your distance to destination 4km, so you can finish your journey smoothly.
For the original problem, assume that I can only store the fuel at integral km distance from the start, I obtain the solution that I need 3848 unit at the start, and I will store the fuel at 24 km, 62 km, 107 km, 163 km, 234 km, 334 km and 500 km such that when I reach 500 km, I can guarantee that I have 500 unit for the rest of the journey. But in the original problem, there is no such limit which means that you can store at, for example, 24.675 km if only it can reduce the total fuel needed. So how can we obtain the optimal solution for this?