login
A366280
Lexicographically earliest infinite sequence such that a(i) = a(j) => A366279(i) = A366279(j) for all i, j >= 0.
3
1, 2, 3, 2, 4, 3, 5, 2, 6, 4, 7, 5, 7, 3, 5, 2, 8, 6, 9, 7, 10, 7, 11, 5, 9, 4, 7, 5, 7, 3, 5, 2, 12, 8, 13, 9, 14, 10, 15, 7, 14, 9, 15, 11, 15, 7, 11, 5, 13, 6, 9, 7, 10, 7, 11, 5, 9, 4, 7, 5, 7, 3, 5, 2, 16, 12, 17, 13, 18, 14, 19, 9, 20, 14, 21, 15, 21, 10, 15, 7, 18, 13, 19, 15, 21, 15, 22, 11, 19, 9, 15, 11, 15
OFFSET
0,2
COMMENTS
Restricted growth sequence transform of A366279.
For all i, j >= 0, a(i) = a(j) => A290251(i) = A290251(j).
LINKS
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; };
A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); };
A030101(n) = if(n<1, 0, subst(Polrev(binary(n)), x, 2));
A057889(n) = if(!n, n, A030101(n/(2^valuation(n, 2))) * (2^valuation(n, 2)));
A163511(n) = if(!n, 1, my(p=2, t=1); while(n>1, if(!(n%2), (t*=p), p=nextprime(1+p)); n >>= 1); (t*p));
v366280 = rgs_transform(vector(1+up_to, n, A366279(n-1)));
A366280(n) = v366280[1+n];
KEYWORD
nonn,look
AUTHOR
Antti Karttunen, Oct 06 2023
STATUS
approved