in reply to Re^2: Golfing a fibonacci number generator
in thread Golfing a fibonacci number generator
Since the (-phi)^(-n) term goes to zero quickly, it's enough to round (phi^n)/sqrt(5)to the nearest integer.
49 characters: die map{int(((1+($^=5**.5))/2)**$_/$^+.5).$/}0..9
|
|---|