OFFSET
1,1
COMMENTS
LINKS
N. J. A. Sloane, Table of n, a(n) for n = 1..19513
MAPLE
with(ListTools);
T:=proc(S) Flatten(subs( {0=[0, 1], 1=[2, 0], 2=[0]}, S)); end;
S:=[0];
for n from 1 to 14 do S:=T(S); od:
S; # A277735
p0:=[]: p1:=[]: p2:=[]:
for i from 1 to nops(S) do
j:=S[i];
if j=0 then p0:=[op(p0), i];
elif j=1 then p1:=[op(p1), i];
else p2:=[op(p2), i]; fi: od:
p0; # A277736
p1; # A277737
p2: # A277738
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Nov 07 2016
STATUS
approved