OFFSET
0,2
COMMENTS
Restricted growth sequence transform of A331166. See comments in that sequence.
LINKS
PROG
(PARI)
up_to = 100000;
rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };
A030101(n) = if(n<1, 0, subst(Polrev(binary(n)), x, 2));
v331300 = rgs_transform(vector(1+up_to, n, A331166(n-1)));
A331300(n) = v331300[1+n];
for(n=0, up_to, write("b331300.txt", n, " ", A331300(n)));
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Jan 18 2020
STATUS
approved