OFFSET
1,2
COMMENTS
Restricted growth sequence transform of the function f given in the definition.
For all i, j > 1:
a(i) = a(j) => b(i) = b(j), where b can be (but is not limited to) any of the sequences listed at the crossrefs-section, under "some of the matched sequences".
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..100000
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; };
A007949(n) = valuation(n, 3);
A373591(n) = sum(i=1, #n=factor(n)~, (1==n[1, i]%3)*n[2, i]);
A373592(n) = sum(i=1, #n=factor(n)~, (2==n[1, i]%3)*n[2, i]);
v373595 = rgs_transform(vector(up_to, n, Aux373595(n)));
A373595(n) = v373595[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 13 2024
STATUS
approved