login
Positions of 1 in A286063; complement of A286727.
3

%I #6 Jun 05 2017 17:33:22

%S 3,4,7,12,13,18,21,22,25,30,33,34,39,40,43,48,49,54,57,58,63,64,67,72,

%T 75,76,79,84,85,90,93,94,97,102,105,106,111,112,115,120,123,124,127,

%U 132,133,138,141,142,147,148,151,156,157,162,165,166,169,174,177

%N Positions of 1 in A286063; complement of A286727.

%C The number d(n) = n - a(n) is in {0, 2} for n >= 1.

%C Specifically, d(n) = 0 if n is in A025147; d(n) = 2 if n is in A181155.

%H Clark Kimberling, <a href="/A286728/b286728.txt">Table of n, a(n) for n = 1..10000</a>

%t s = {0, 0}; w[0] = StringJoin[Map[ToString, s]];

%t w[n_] := StringReplace[w[n - 1], {"00" -> "001", "1" -> "100"}]

%t Table[w[n], {n, 0, 8}]

%t st = ToCharacterCode[w[11]] - 48 (* A286063 *)

%t Flatten[Position[st, 0]] (* A286727 *)

%t Flatten[Position[st, 1]] (* A286728 *)

%Y Cf. A025147, A181155, A286063, A286727.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, Jun 05 2017