login

Reminder: The OEIS is hiring a new managing editor, and the application deadline is January 26.

Lexicographically earliest sequence such that a(i) = a(j) => A324291(i) = A324291(j) for all i, j >= 1.
2

%I #7 Feb 24 2019 01:59:12

%S 1,2,2,2,2,3,2,2,2,3,2,3,2,3,4,2,2,3,2,5,4,3,2,3,2,3,2,5,2,6,2,2,4,3,

%T 7,3,2,3,4,5,2,8,2,5,9,3,2,3,2,3,4,5,2,3,7,3,4,3,2,10,2,3,4,2,11,8,2,

%U 5,4,10,2,3,2,3,4,5,12,8,2,5,2,3,2,8,11,3,4,13,2,6,14,5,4,3,7,3,2,3,15,5,2,8,2,13,16

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

%C Restricted growth sequence transform of A324291.

%C For all i, j:

%C a(i) = a(j) => A001221(i) = A001221(j),

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

%H Antti Karttunen, <a href="/A324292/b324292.txt">Table of n, a(n) for n = 1..16384</a>

%H Antti Karttunen, <a href="/A324292/a324292.txt">Data supplement: n, a(n) computed for n = 1..101101</a>

%o (PARI)

%o up_to = 101101; \\ = A002997(17).

%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 A324291(n) = if(1==n, 1, my(f=factor(n), m=1); for(i=1, #f[, 1], m *= prime(1+((n-1)%(f[i, 1]-1)))); (m));

%o v324292 = rgs_transform(vector(up_to, n, A324291(n)));

%o A324292(n) = v324292[n];

%Y Cf. A001221, A324290, A324291.

%K nonn

%O 1,2

%A _Antti Karttunen_, Feb 23 2019