login
Positions of 2 in A287174.
4

%I #4 May 22 2017 20:03:55

%S 1,8,14,21,28,34,41,45,52,58,65,71,78,82,89,95,102,109,115,122,126,

%T 133,139,146,153,159,166,170,177,183,190,196,203,207,214,220,227,234,

%U 240,247,251,258,264,271,275,282,288,295,302,308,315,319,326,332,339

%N Positions of 2 in A287174.

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

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

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

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

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

%Y Cf. A287174, A287175, A287176.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 22 2017