login
Positions of 0 in A053838.
4

%I #15 Feb 11 2018 16:36:56

%S 1,6,8,12,14,16,20,22,27,30,32,34,38,40,45,46,51,53,56,58,63,64,69,71,

%T 75,77,79,84,86,88,92,94,99,100,105,107,110,112,117,118,123,125,129,

%U 131,133,136,141,143,147,149,151,155,157,162,164,166,171,172,177

%N Positions of 0 in A053838.

%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, 1, 2, 0, 0, 1, 2, 1, 2, 0, 2, 0, 1, 1, 2, with 0 in positions given by A287436, 1 is in positions given by A287437, and 2 in positions given by A287435.

%C Does this differ from A026601? - _R. J. Mathar_, Jun 14 2017

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

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

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

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

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

%Y Cf. A053838, A287436, A287437.

%K nonn,easy

%O 1,2

%A _Clark Kimberling_, May 26 2017

%E The definition refers to a different offset in A053838. - _R. J. Mathar_, May 30 2017