OFFSET
0,2
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..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; };
A002110(n) = prod(i=1, n, prime(i));
A030308(n, k) = bittest(n, k);
A276150(n) = { my(s=0, m); forprime(p=2, , if(!n, return(s)); m = n%p; s += m; n = (n-m)/p); };
A324344aux(n) = [hammingweight(n), A324342(n)];
v324344 = rgs_transform(vector(1+up_to, n, A324344aux(n-1)));
A324344(n) = v324344[1+n];
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Feb 24 2019
STATUS
approved