OFFSET
0,3
COMMENTS
Restricted growth sequence transform of A368698.
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..16384
PROG
(PARI)
\\ Needs also code or data from A368698.
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; };
v368693 = rgs_transform(vector(1+up_to, n, A368698(n-1)));
A368693(n) = v368693[1+n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 12 2024
STATUS
approved