OFFSET
1,2
COMMENTS
Restricted growth sequence transform of the sequence f(n) = 0 if mu(n) = -1, and f(n) = n for mu(n) >= 0.
For all i, j:
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
PROG
(PARI)
up_to = 65537;
rgs_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(om, invec[i]), my(pp = mapget(om, invec[i])); outvec[i] = outvec[pp] , mapput(om, invec[i], i); outvec[i] = u; u++ )); outvec; };
Aux346488(n) = if(moebius(n)<0, 0, n);
v346488 = rgs_transform(vector(up_to, n, Aux346488(n)));
A346488(n) = v346488[n];
(PARI)
A070549(n) = sum(k=1, n, (-1==moebius(k)));
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 20 2021
STATUS
approved