OFFSET
1,6
COMMENTS
Ordinal transform of A330691.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
MATHEMATICA
A309639[n_] := For[k = 1, True, k++, If[Divisible[Denominator[ HarmonicNumber[k]], n], Return[k]]];
Module[{b}, b[_] = 0;
a[n_] := With[{t = A330691[n]}, b[t] = b[t] + 1]];
Array[a, 105] (* Jean-François Alcover, Jan 11 2022 *)
PROG
(PARI)
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; };
v330754 = ordinal_transform(vector(up_to, n, A330691(n)));
A330754(n) = v330754[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Dec 30 2019
STATUS
approved