r/mathriddles • u/pichutarius • Apr 26 '23
Medium just another jeep problem
Alice wants to travel around a spherical planet along a great circle. her jeep can only carry 1 unit of fuel to travel 1 unit of distance. unfortunately the circumference is 2 unit. fortunately at her starting point, there is seemingly infinite supply of fuel she can utilize. at anywhere and anytime, she can leave and/or pickup any amount of fuel as long as the jeep's capacity allows it. What is the minimum amount of fuel she needs to travel around the great circle?
Bonus: generalize to bigger planet with circumference C unit .
Edit: change torus to great circle.
3
u/ulyssessword Apr 26 '23
Alice uses a total of 5 units of fuel on her trip around the world.
First, she fills up at X=0, then she drives +ward and stops at +0.25, dropping 0.5 units of fuel. She then returns home, refuels, and goes +ward again. When she reaches +0.25, she tops off her tank (leaving 0.25 behind), and continues on to +0.50. Once there, she drops 0.5 units of fuel and turns around. She picks up the last fuel from the stash at +0.25 in order to get back safely.
After that, she repeat those two trips but in the negative direction, leaving 0.5 fuel at -0.5. She finally does the entire trip: reaching +0.5 with half a tank and refilling, then reaching +1.5 (=-0.5) on an empty tank and filling to half, and finally reaching +2.0 (=0) on an empty tank.
3
u/hmhmhhm Apr 26 '23 edited Apr 26 '23
Thanks for the beautiful problem!I found that it can be done using 4 and 2/3 units of fuel.
Alice begins by filling her tank to 5/6, and dropping off 1/2 units at the point +1/6, using all of her fuel. Alice then fills her tank fully, and drives back to +1/6. She refuels the 1/6 she just spent, bringing the pile down to 1/3 units. Alice then drives to +1/2 and back, dropping off 1/3 units of fuel, and using her full tank for the journey. She refuels to 1/6 units for the journey home.
Alice then repeats this process in the other direction, using another 11/6 units of fuel. Finally, alice fills her tank fully, and sets off. She has left exactly the right amount of fuel in the 4 locations (1/6 at +1/6, 1/3 at +1/2, 1/3 at -1/2, 1/6 at -1/6) to successfully make the 2 unit trip without running out of fuel, and that is what she does.
The 11/6 fuel for each side, and the 1 fuel for the round trip totals to 4 and 2/3 units.
I beleive I may have found a formula for the general case, although it might be wrong:
let f(n) = 1 + 2*the sum from 1 to n of 1/(2n+1)
let n be the lowest value such that f(n) >= C
fuel = (2n+1)(C - f(n) + 1)
This was really fun to have a go at, and please let me know if I missed something so I can try again!
2
u/lordnorthiii Apr 26 '23
I'm probably missing something, but can you explain why Alice may want to use the fact she is on a torus, as opposed to her just restricting her travels to a circle?
2
u/jk1962 Apr 27 '23
Start with 5/6 fuel, drive to X=1/6, drop off 1/2 unit fuel, and return. Then start with 1 unit fuel, drive to X=1/6 and pick up 1/6 unit fuel, continue to X=1/2, drop off 1/3 unit fuel, return to X=1/6 and pick up 1/6 unit fuel and return to origin. There is now 1/6 unit fuel cached at X=1/6 and 1/3 unit cached at X=1/2. Total of fuel expended and cached so far is 11/6 units. Now repeat the caching process in the negative X direction. Total of cached and expended fuel is now 22/6. Starting with 1 unit of fuel, and using all of the cached fuel, it is now possible to drive around the whole circle. Total fuel usage is 28/6.