r/funny •

Pidgonacci Sequence

[deleted] — view deleted post

0 Upvotes

22k comments sorted by

View all comments

Show parent comment

2

u/0x24a537r9 Jun 10 '12

If anyone else wants to play, use my fib.py:

a = 983596501957170863636436804965858881371515533193099965549469835883966880040384038329119567823640199314246244146282473572957257254318756001984777891448344257925791401174143546511244313811567881750865492906124875788226375268699904420828121422532903191307708278479078495723913428427149
b = 1591492571382204927216803267574094118952575270592838826774050912010629706840177747574549344756367813678825914026859052173767774552355859834411579498277645366952096711778223285002884915517977913653661334898657296602122142314412748001209247586606258295878868057719696342103524280268949

use_a = True

while (True):
  if (use_a):
    a += b
    print a
  else:
    b += a
    print b

  use_a = not use_a
  raw_input('Press Enter to continue...')