OFFSET
1,4
COMMENTS
Ordinal transform of A263297.
LINKS
MATHEMATICA
A263297[n_] := If[n == 1, 0, With[{f = FactorInteger[n]}, Max[PrimePi[Max[f[[All, 1]]]], Total[f[[All, 2]]]]]];
b[_] = 0;
a[n_] := With[{t = A263297[n]}, b[t] = b[t] + 1];
Array[a, 105] (* Jean-François Alcover, Jan 10 2022 *)
PROG
(PARI)
up_to = 65537;
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; };
v331296 = ordinal_transform(vector(up_to, n, A263297(n)));
A331296(n) = v331296[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 18 2020
STATUS
approved