OFFSET
1,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
PROG
(PARI)
up_to = 65537;
rgs_transform(invec) = { my(occurrences = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(occurrences, invec[i]), my(pp = mapget(occurrences, invec[i])); outvec[i] = outvec[pp] , mapput(occurrences, invec[i], i); outvec[i] = u; u++ )); outvec; };
Aux304751(n) = { my(p=0, f=vecsort((factor(Pol(binary(n)))[, 2]), , 4)); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }
v304751 = rgs_transform(vector(up_to, n, Aux304751(n)));
A304751(n) = v304751[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jun 08 2018
STATUS
approved