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..9In reply to Re^3: Golfing a fibonacci number generator
by jdalbec
in thread Golfing a fibonacci number generator
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |