OFFSET
0,4
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..10000
FORMULA
EXAMPLE
F(17) = 1597, s(n) = 4 - 1 = 3, a(17) = 7 - 9 + 5 - 1 = 2.
MATHEMATICA
a[n_]:=Sum[(-1)^(IntegerLength[Fibonacci[n]]-i) Part[IntegerDigits[Fibonacci[n]], i], {i, IntegerLength[Fibonacci[n]]}]; Array[a, 66, 0] (* Stefano Spezia, May 27 2023 *)
PROG
(PARI) a(n) = my(d=Vecrev(digits(fibonacci(n)))); sum(k=1, #d, (-1)^(k+1)*d[k]); \\ Michel Marcus, May 28 2023
CROSSREFS
KEYWORD
AUTHOR
Wolfdieter Lang, May 26 2023
STATUS
approved