http://qs1969.pair.com?node_id=617662


in reply to Re: Fibonacci Generator
in thread Fibonacci Generator

could try this out - if (n==1 || n == 2) { return 1;} else { return (fib(n-1) + fib(n-2)); }

Replies are listed 'Best First'.
Re^3: Fibonacci Generator
by blazar (Canon) on May 26, 2007 at 13:05 UTC
    could try this out - if (n==1 || n == 2) { return 1;} else { return (fib(n-1) + fib(n-2)); }

    Whoa! What algorithm is that? It must be something absolutely new and ingenious: has anybody seen anything similar before?!? But... what language is that?