login

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”).

Lexicographically earliest infinite sequence such that a(i) = a(j) => A328763(i) = A328763(j) for all i, j.
3

%I #7 Oct 28 2019 20:00:31

%S 1,2,3,4,5,6,3,7,5,8,9,10,11,12,9,13,14,15,16,17,18,19,18,20,21,17,18,

%T 22,23,24,11,7,5,25,16,26,16,12,9,27,18,28,29,17,18,30,18,31,32,17,23,

%U 33,23,34,35,36,23,37,38,39,29,12,9,40,14,41,32,17,18,42,18,43,44,45,23,46,23,47,48,36,23,49,50,51,52,53,54,55,50,56,44,17,18,40,23

%N Lexicographically earliest infinite sequence such that a(i) = a(j) => A328763(i) = A328763(j) for all i, j.

%C Restricted growth sequence transform of A328763.

%C For all i, j:

%C a(i) = a(j) => A328765(i) = A328765(j) => A328578(i) = A328578(j),

%C a(i) = a(j) => A328766(i) = A328766(j).

%H Antti Karttunen, <a href="/A328764/b328764.txt">Table of n, a(n) for n = 0..32768</a>

%H <a href="/index/Pri#primorialbase">Index entries for sequences related to primorial base</a>

%o (PARI)

%o up_to = 32768;

%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 A276086(n) = { my(m=1, p=2); while(n, m *= (p^(n%p)); n = n\p; p = nextprime(1+p)); (m); };

%o A328613(n) = { my(m=1, p=2); while(n, m *= p^valuation(n,p); n = n\p; p = nextprime(1+p)); (m*p); };

%o A328763(n) = A328613(A276086(n));

%o v328764 = rgs_transform(vector(1+up_to, n, A328763(n-1)));

%o A328764(n) = v328764[1+n];

%Y Cf. A276086, A328578, A328613, A328763, A328765, A328766.

%K nonn

%O 0,2

%A _Antti Karttunen_, Oct 28 2019