Получи случайную криптовалюту за регистрацию!

Test if a Number belongs to the Fibonacci Series A positive i | C# 1001 notes

Test if a Number belongs to the Fibonacci Series

A positive integer ω is a Fibonacci number if and only one of:

5ω^2 + 4 and

5ω^2 - 4

is a perfect square or a square number.

A square number is the result when a number has been multiplied by itself.