OFFSET
1,2
LINKS
FORMULA
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; };
A061395(n) = if(1==n, 0, primepi(vecmax(factor(n)[, 1])));
Aux331297(n) = { my(a=bigomega(n), b=A061395(n)); [min(a, b), max(a, b)]; };
Aux331297(n) = Set([bigomega(n), A061395(n)]); \\ Alternatively.
v331297 = rgs_transform(vector(up_to, n, Aux331297(n)));
A331297(n) = v331297[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 18 2020
STATUS
approved