OFFSET
1,3
LINKS
MATHEMATICA
PROG
(PARI)
A006530(n) = if(n>1, vecmax(factor(n)[, 1]), 1);
ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om, invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om, invec[i], (1+pt))); outvec; };
v304734 = ordinal_transform(vector(65539, n, A304733(n)));
A304734(n) = v304734[n];
CROSSREFS
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, May 18 2018
STATUS
approved