in reply to Fibo Golf challenge on 3 monkeys
die map{int(((1+($^=5**.5))/2)**$_/$^+.5).$/}0..9
This uses a shortened version of the formula used to calculate the next number using Phi, as opposed to just adding the last two together. I'm pretty sure this can be shortened, I'm just not sure how at the moment... :) Good luck!
|
---|