OFFSET
0,2
COMMENTS
LINKS
PROG
(PARI)
up_to = 65537;
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; };
A342002(n) = { my(s=0, m=1, p=2, e); while(n, e = (n%p); m *= p^(e>0); s += (e/p); n = n\p; p = nextprime(1+p)); (s*m); };
v342022 = rgs_transform(vector(1+up_to, n, A342002(n-1)));
A342022(n) = v342022[1+n];
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Mar 12 2021
STATUS
approved