Fibonacci, fast
Write fib(n) that returns the n-th Fibonacci number, with
fib(0) = 0 and fib(1) = 1, for n up to a few thousand.
fib(10) -> 55
fib(90) -> 2880067194370816120
The point is to practise replacing an exponential recursion with
memoisation or a table. The checks go to n = 3000; the plain recursive
version from the recursion page would never finish.
def fib(n):
...