OFFSET
1,6
COMMENTS
Also the ordinal transform of A353277.
LINKS
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; };
A007814(n) = valuation(n, 2);
A007949(n) = valuation(n, 3);
A156552(n) = { my(f = factor(n), p, p2 = 1, res = 0); for(i = 1, #f~, p = 1 << (primepi(f[i, 1]) - 1); res += (p * p2 * (2^(f[i, 2]) - 1)); p2 <<= f[i, 2]); res };
v353278 = ordinal_transform(vector(up_to, n, Aux353278(n)));
A353278(n) = v353278[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Apr 10 2022
STATUS
approved