%I
%S 1,2,3,2,4,5,6,2,3,7,8,5,9,10,11,2,12,5,13,7,14,15,16,5,4,17,3,10,18,
%T 19,20,2,21,22,23,5,24,25,26,7,27,28,29,15,11,30,31,5,6,7,32,17,33,5,
%U 34,10,35,36,37,19,38,39,14,2,40,41,42,22,43,44,45,5,46,47,11,25,48,49,50,7,3,51,52,28,53,54,55,15,56,19,57,30,58,59,60,5,61,10,21,7,62,63,64,17
%N Lexicographically earliest such positive sequence a that a(i) = a(j) => A007947(i) = A007947(j) for all i, j.
%C Restricted growth sequence transform of A007947.
%H Antti Karttunen, <a href="/A322590/b322590.txt">Table of n, a(n) for n = 1..65537</a>
%F a(n) = 1 + A285329(n).
%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 A007947(n) = factorback(factorint(n)[, 1]);
%o v322590 = rgs_transform(vector(up_to, n, A007947(n)));
%o A322590(n) = v322590[n];
%Y Cf. A007947, A008479 (ordinal transform).
%Y One more than A285329.
%K nonn
%O 1,2
%A _Antti Karttunen_, Dec 17 2018
