login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Positions of 0 in A287418.
5

%I #6 Jun 21 2022 15:31:54

%S 1,6,8,12,14,16,21,22,26,30,32,34,39,40,44,46,51,53,57,59,61,64,69,71,

%T 75,76,80,84,86,88,93,94,98,100,105,107,111,113,115,118,123,125,129,

%U 130,134,136,141,143,147,149,151,156,157,161,165,167,169,174,175

%N Positions of 0 in A287418.

%C a(n) - a(n-1) is in {1,2,3,4,5} for n >= 1; also, 3n - a(n) is in {0, 1, 2} for n >= 1. The first 20 numbers 3n - a(n) are 2, 0, 1, 0, 1, 2, 0, 2, 1, 0, 1, 2, 0, 2, 1, 2, 0, 1, 0, 1, with 0 in positions given by A287420.

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

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

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

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

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

%t Position[SubstitutionSystem[{0->{0,1,2},1->{1,2,0},2->{1,0,2}},{0},{5}][[1]],0]// Flatten (* _Harvey P. Dale_, Jun 21 2022 *)

%Y Cf. A287418, A287420, A287421.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 25 2017