Christmas is almost here, and Santa Claus shall make all kids in the world happy with sweets. To reach the civilized world from the North Pole, he must first cross a 1,500 miles long passage full of ice and snow. Because it is so exhausting for his fleet of reindeers, they have to be fed with one ton of sweets after each mile they go (apparently, the size of the fleet in detail doesn't matter). As soon as the passage is traversed, the reindeers can take off and fly everywhere all the way withou needing any more sweets or other food, and once the gift-giving is done, they can even fly the way back to the north pole.
Now, stupidly, Santa's sleigh can only carry 1,500 tons of sweets at most! Does this mean that Christmas must be cancelled? Luckily not, because although the passage is so damn exhausting, it's still not so forbidding that you couldn't drop and store any sweets on mid-path, and knowing in advance, Santa has produced 4,500 tons of sweets at the North pole. So, his strategy must be to travel a certain fraction of the passage, store some sweets, go back, relade the sleigh etc. until he must traverse the passage (the reindeers are cooperative of course). What is his optimal strategy and how many tons of sweets will be left for the children?
Spoiler: show












