r/funny • • Jun 09 '12

Pidgonacci Sequence

Post image

[deleted] — view deleted post

1.5k Upvotes

22k comments sorted by

View all comments

Show parent comment

1

u/day_cq Jun 10 '12

hey, I put fib.py here:

https://gist.github.com/2905324#file_fib.py

i think macs come with Python.. Just copy past fib.py to fib.py and run

 python  fib.py 3 1 1

in your terminal. keep pressing enter until you reach the 3000 or something.. or just start with nth by typing

python fib.py n n-2fib n-1fib

Ctrl+C will quit the program.