Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
meuk
· 7y ago · 0 comments
You should approximate it with an exponential function. Actually, the nth Fibonacci can be obtained exactly by rounding an exponential function:
https://en.wikipedia.org/wiki/Fibonacci_number#Computation_b...
Comments
[–]
kazinator
7y ago
I'm well aware of the closed form for Fibonacci since my undergrad days. This was produced as a kind of joke. I simply took the first several, plus 42 thrown in, and fit them to an N-th degree polynomial.