OFFSET
1,3
COMMENTS
The Fibonacci numbers F(2*n) are the indices of records of this sequence.
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
EXAMPLE
The negaFibonacci representation of 3 is A215022(3) = 101, thus a(3) = 1 + 0 + 1 = 2.
MATHEMATICA
ind[n_] := Floor[Log[Abs[n]*Sqrt[5] + 1/2]/Log[GoldenRatio]]; f[1] = 1; f[n_] := If[n > 0, i = ind[n - 1]; If[EvenQ[i], i++]; i, i = ind[-n]; If[OddQ[i], i++]; i]; a[n_] := Module[{k = n, s = 0}, While[k != 0, i = f[k]; s += 1; k -= Fibonacci[-i]]; s]; Array[a, 100]
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Amiram Eldar, Jan 08 2020
STATUS
approved