Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #8 Jan 29 2022 22:31:44
%S 1,1,1,2,1,2,1,3,1,2,1,4,1,5,1,6,1,7,1,6,8,5,1,9,1,2,1,10,1,11,1,12,8,
%T 2,8,9,1,2,1,13,1,14,1,11,15,5,1,16,8,17,1,11,1,18,8,19,1,5,1,20,1,21,
%U 8,13,1,22,1,6,8,10,1,23,1,21,24,4,25,22,1,26,27,21,1,28,1,29,8,30,1,31,8,10,15,2,1
%N Lexicographically earliest infinite sequence such that a(i) = a(j) => A351032(i) = A351032(j), for all i, j >= 1.
%C Restricted growth sequence transform of A351032.
%H Antti Karttunen, <a href="/A351034/b351034.txt">Table of n, a(n) for n = 1..65537</a>
%H <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</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 A019565(n) = { my(m=1, p=1); while(n>0, p = nextprime(1+p); if(n%2, m *= p); n >>= 1); (m); };
%o A048673(n) = { my(f = factor(n)); for (i=1, #f~, f[i, 1] = nextprime(f[i, 1]+1)); (1+factorback(f))/2; };
%o A289814(n) = { my(d=digits(n, 3)); fromdigits(vector(#d, i, if (d[i]==2, 1, 0)), 2); } \\ From A289814
%o A291759(n) = A289814(A048673(n));
%o A351032(n) = { my(m=1); fordiv(n,d,if(d<n,m *= A019565(A291759(d)))); (m); };
%o v351034 = rgs_transform(vector(up_to, n, A351032(n)));
%o A351034(n) = v351034[n];
%Y Cf. A019565, A048673, A289814, A291759, A351030, A351032, A351033.
%Y Cf. also A293224.
%K nonn
%O 1,4
%A _Antti Karttunen_, Jan 29 2022