login
Decimal equivalent of binary number in A215023.
9

%I #17 Oct 16 2019 01:48:39

%S 0,2,9,8,10,37,36,33,32,34,41,40,42,149,148,145,144,146,133,132,129,

%T 128,130,137,136,138,165,164,161,160,162,169,168,170,597,596,593,592,

%U 594,581,580,577,576,578,585,584,586,533,532,529,528,530,517,516,513,512

%N Decimal equivalent of binary number in A215023.

%H Amiram Eldar, <a href="/A215025/b215025.txt">Table of n, a(n) for n = 0..10000</a>

%t 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 += 2^(i - 1); k -= Fibonacci[-i]]; s]; Table[a[n], {n, 0, -100, -1}] (* _Amiram Eldar_, Oct 15 2019 *)

%Y Cf. A215022-A215025, A014417, A214248.

%K nonn

%O 0,2

%A _N. J. A. Sloane_, Aug 03 2012

%E More terms from _Amiram Eldar_, Oct 11 2019