OFFSET
0,4
FORMULA
a(n) = fib(x) - n^2 if fib(x) => n^2 and fib(x-1) < n^2; a(n)=0 for n=1, 12.
EXAMPLE
a(6) = 19 since 6^2 + 19 = 55 = fib(10) while fib(9) = 34 < 36.
MATHEMATICA
k = 0; Table[While[n^2 > Fibonacci[k], k++]; Fibonacci[k] - n^2, {n, 0, 100}] (* T. D. Noe, Mar 13 2013 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Carmine Suriano, Mar 13 2013
STATUS
approved