4pm: Decklin asked why 1024 is the lower bound in his perl solution to the coconuts problem. Basically, you multiply by 5/4 five times in your loop, giving you a denominator of 4^5=1024. Of course, there are all those extra +1's and int functions messing the precision of this statement up "$x=int($x*5/4+1)", but that's why pondering starting with four extra coconuts helps: it's exactly what is needed to remove them.