Given a number and we have to check whether it is a Fibonacci number or not in Python?
给定一个数字,我们必须检查Python中是否为斐波那契数字 ?
检查斐波那契数 (Checking Fibonacci number)
Consider the given Fibonacci series with a first few terms: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, and so on...
考虑给定斐波那契数列的前几个术语: 0、1、1、2、3、5、8、13、21、34、55、89、144,依此类推...
There is a popular formula to check whether a given number is a Fibonacci number or not? (5*n2 + 4) or (5*n2 – 4)
有一个流行的公式可以检查给定的数字是否为斐波那契数 ? (5 * n 2 + 4)或(5 * n 2 – 4)
If the result of this formula is a perfect square then the numbe