login
Positions of 2 in A287368.
4

%I #4 May 25 2017 13:14:24

%S 1,3,8,10,12,17,22,27,30,33,35,37,42,44,46,51,53,55,60,65,70,73,76,78,

%T 80,85,90,95,98,101,103,105,110,115,120,123,126,128,130,135,138,141,

%U 143,145,150,153,156,158,160,165,167,169,174,176,178,183,188,193

%N Positions of 2 in A287368.

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

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

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

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

%t Flatten[Position[s, 2]] (* A287371 *)

%Y Cf. A287368, A287369, A287370.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 25 2017