OFFSET
0,10
COMMENTS
LINKS
Karl-Heinz Hofmann, Table of n, a(n) for n = 0..1000
EXAMPLE
Strictly between Fibonacci(9) = 34 and Fibonacci(10) = 55 are the 2 squares 36 and 49. So a(9) = 2.
PROG
(Python)
from math import isqrt
from sympy import fibonacci as fi
print([0, 0] + [(isqrt(fi(k+1)-1) - isqrt(fi(k))) for k in range(2, 55)])
(Python)
from math import isqrt
from gmpy2 import fib2
def A350701(n): return 0 if n <= 1 else (lambda x:isqrt(x[0]-1)-isqrt(x[1]))(fib2(n+1)) # Chai Wah Wu, Jan 25 2022
(PARI) a(n)={if(n<=1, 0, sqrtint(fibonacci(n+1)-1) - sqrtint(fibonacci(n)))} \\ Andrew Howroyd, Jan 25 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Karl-Heinz Hofmann, Jan 24 2022
STATUS
approved