login
Positions of 0 in A284912; complement of A284914.
3

%I #6 Apr 18 2017 15:24:19

%S 1,4,6,8,10,11,14,16,17,20,22,23,26,28,29,31,34,36,38,40,41,44,46,47,

%T 49,52,54,56,58,59,62,64,65,67,70,72,74,76,77,80,82,83,85,88,90,91,94,

%U 96,98,100,101,104,106,107,110,112,113,116,118,119,121,124

%N Positions of 0 in A284912; complement of A284914.

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

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

%e As a word, A284912 = 011010101..., in which 0 is in positions 1,4,6,8,...

%t s = Nest[Flatten[# /. {0 -> {0, 1}, 1 -> {1, 0, 1, 0}}] &, {0}, 6] (* A284912 *)

%t Flatten[Position[s, 0]] (* A284913 *)

%t Flatten[Position[s, 1]] (* A284914 *)

%Y Cf. A284912, A284914.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, Apr 17 2017