OFFSET
1,4
COMMENTS
Ordinal transform of A109395.
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
For n >= 1, a(2^n) = n, a(A003277(n)) = 1.
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; };
A109395(n) = n/gcd(n, eulerphi(n));
v331175 = ordinal_transform(vector(up_to, n, A109395(n)));
A331175(n) = v331175[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Jan 11 2020
STATUS
approved