Test if a number is fibonacci
Posted
by VaioIsBorn
on Stack Overflow
See other posts from Stack Overflow
or by VaioIsBorn
Published on 2010-03-12T12:30:54Z
Indexed on
2010/03/12
12:37 UTC
Read the original article
Hit count: 473
I know how to make the list of the Fibonacci numbers, but i don't know how can i test if a given number belongs to the fibonacci list - one way that comes in mind is generate the list of fib. numbers up to that number and see if it belongs to the array, but there's got to be another, simpler and faster method.
Any ideas ?
© Stack Overflow or respective owner