Check if a number is in the Fibonacci sequence