login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A190993
Square excess of Fibonacci numbers.
3
0, 0, 0, 1, 2, 1, 4, 4, 5, 9, 6, 8, 0, 8, 16, 34, 26, 76, 84, 85, 41, 130, 22, 96, 143, 496, 289, 169, 842, 140, 296, 669, 2684, 1449, 343, 4096, 7583, 592, 665, 11682, 699, 20452, 2872, 22037, 6477, 21826, 17999, 93009, 46080, 31240, 121681, 8638, 317523
OFFSET
0,5
LINKS
MAPLE
a:= n-> (f-> f-floor(sqrt(f))^2)((<<0|1>, <1|1>>^n)[1, 2]):
seq(a(n), n=0..52); # Alois P. Heinz, Oct 26 2022
MATHEMATICA
A000045=Fibonacci[Range[0, 100]]; Table[A000045[[n]]-Floor[Sqrt[A000045[[n]]]]^2, {n, Length[A000045]}]
PROG
(PARI) a(n) = my(f=fibonacci(n)); f - sqrtint(f)^2; \\ Michel Marcus, Nov 11 2015
(Magma) [Fibonacci(n) - Floor(Sqrt(Fibonacci(n)))^2: n in [0..100]]; // G. C. Greubel, Oct 26 2022
(SageMath) [fibonacci(n) - isqrt(fibonacci(n))^2 for n in range(101)] # G. C. Greubel, Oct 26 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
a(0) prepended by Alois P. Heinz, Nov 11 2015
STATUS
approved