OFFSET
1,2
COMMENTS
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..65537
FORMULA
a(2^n) = 2 for all n >= 1.
EXAMPLE
For n=39, we have A033879(39) = 2*39 - A000203(39) = 22, and A083254(39) = 2*A000010(39)-39 = 9. For n=63 the results are same, with A033879(63) = 22 and A083254(63) = 9, thus a(39) and a(63) are allotted the same number by the restricted growth sequence transform, which in this case is 35, thus a(39) = a(63) = 35.
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; };
A033879(n) = (2*n-sigma(n));
A083254(n) = (2*eulerphi(n)-n);
v323904 = rgs_transform(vector(up_to, n, A323904aux(n)));
A323904(n) = v323904[n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 10 2019
STATUS
approved