a thoughtful web.
Good ideas and conversation. No ads, no tracking.   Login or Take a Tour!
bhrgunatha  ·  2529 days ago  ·  link  ·    ·  parent  ·  post: A nice problem from SICP

    O(1) would be possible with a closed-form formula.

That's way beyond my maths ability. Do you think you could find such a formula?

I know there's Binet's formula for Fibonacci, but it's impractical for larger numbers as the floating point errors start to affec tthe results (on most machines anyway.)