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”).

A226208
Zeckendorf distance between n and n+1.
3
1, 1, 2, 3, 2, 4, 5, 2, 4, 6, 2, 7, 2, 4, 6, 2, 8, 2, 4, 9, 2, 4, 6, 2, 8, 2, 4, 10, 2, 4, 6, 2, 11, 2, 4, 6, 2, 8, 2, 4, 10, 2, 4, 6, 2, 12, 2, 4, 6, 2, 8, 2, 4, 13, 2, 4, 6, 2, 8, 2, 4, 10, 2, 4, 6, 2, 12, 2, 4, 6, 2, 8, 2, 4, 14, 2, 4, 6, 2, 8, 2, 4, 10
OFFSET
1,3
COMMENTS
Zeckendorf distance is defined at A226207.
LINKS
EXAMPLE
7 = 5 + 2 -> 3 + 1 -> 2, and 8 -> 5 -> 3 -> 2. The total number of Zeckendorf downshifts (i.e., arrows) is 5, so that a(7) = D(7,8) = 5.
MATHEMATICA
zeck[n_Integer] := Block[{k = Ceiling[Log[GoldenRatio, n*Sqrt[5]]], t = n, z = {}}, While[k > 1, If[t >= Fibonacci[k], AppendTo[z, 1]; t = t - Fibonacci[k], AppendTo[z, 0]]; k--]; If[n > 0 && z[[1]] == 0, Rest[z], z]]; d[n1_, n2_] := Module[{z1 = zeck[n1], z2 = zeck[n2]}, Length[z1] + Length[z2] - 2 (NestWhile[# + 1 &, 1, z1[[#]] == z2[[#]] &, 1, Min[{Length[z1], Length[z2]}]] - 1)]; lst = Map[d[#, # + 1] &, Range[100]] (* Peter J. C. Moses, May 30 2013 *)
CROSSREFS
Cf. A226080.
Sequence in context: A120499 A377485 A027749 * A304743 A214540 A214595
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, May 31 2013
STATUS
approved