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 1 in A287407.
5

%I #4 May 25 2017 17:54:37

%S 2,5,9,12,14,17,21,23,26,30,32,35,39,41,44,47,50,54,57,59,62,65,68,72,

%T 75,77,80,84,86,89,92,95,99,102,104,107,111,113,116,120,122,125,128,

%U 131,135,137,140,144,147,149,152,156,158,161,165,167,170,173,176

%N Positions of 1 in A287407.

%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 1, 1, 0, 0, 1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 1, 1, 1, 0, 0, 1, with 0 in positions given by A287410.

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

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

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

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

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

%Y Cf. A287407, A287408, A287410.

%K nonn,easy

%O 1,1

%A _Clark Kimberling_, May 25 2017