Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.
%I #10 Oct 06 2023 21:24:17
%S 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,
%T 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,
%U 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
%N Lexicographically earliest infinite sequence such that a(i) = a(j) => A366279(i) = A366279(j) for all i, j >= 0.
%C Restricted growth sequence transform of A366279.
%C For all i, j >= 0, a(i) = a(j) => A290251(i) = A290251(j).
%H Antti Karttunen, <a href="/A366280/b366280.txt">Table of n, a(n) for n = 0..65537</a>
%o (PARI)
%o up_to = 65537;
%o 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; };
%o A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); };
%o A030101(n) = if(n<1,0,subst(Polrev(binary(n)),x,2));
%o A057889(n) = if(!n,n,A030101(n/(2^valuation(n,2))) * (2^valuation(n, 2)));
%o 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));
%o A366275(n) = A163511(A057889(n));
%o A366279(n) = A046523(A366275(n));
%o v366280 = rgs_transform(vector(1+up_to,n,A366279(n-1)));
%o A366280(n) = v366280[1+n];
%Y Cf. A046523, A057889, A163511, A278531, A290251, A366275, A366279.
%Y Cf. also A286531, A286602, A366262.
%K nonn,look
%O 0,2
%A _Antti Karttunen_, Oct 06 2023