Last Updated: 19 Apr, 2017

Fibonacci Member

Easy
Asked in companies
MicrosoftAmazonSamsung

Problem statement

Create a function that determines whether a given number N belongs to the Fibonacci sequence. If N is found in the Fibonacci sequence, the function should return true; otherwise, it should return false.


Input Format :
Integer N
Output Format :
true or false
Constraints :
0 <= n <= 10^4