This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A323079 #6 Jan 04 2019 17:37:45 %S A323079 1,2,3,4,3,5,3,6,7,8,3,7,3,9,10,11,3,12,3,10,13,14,3,15,16,17,18,13,3, %T A323079 19,3,20,21,22,23,18,3,24,25,16,3,26,3,21,27,28,3,29,30,31,32,25,3,33, %U A323079 34,23,35,36,3,27,3,37,30,38,39,40,3,32,41,42,3,43,3,44,45,35,46,47,3,48,49,50,3,30,51,52,53,34,3,54,55,41,56,57,58,59,3,60,46,45,3,61,3,39 %N A323079 Lexicographically earliest such sequence a that a(i) = a(j) => f(i) = f(j) for all i, j, where f(n) = -1 if n is an odd prime, and f(n) = A060681(n) for all other numbers. %C A323079 For all i, j: %C A323079 a(i) = a(j) => A323076(i) = A323076(j), %C A323079 a(i) = a(j) => A323077(i) = A323077(j). %H A323079 Antti Karttunen, <a href="/A323079/b323079.txt">Table of n, a(n) for n = 1..65537</a> %o A323079 (PARI) %o A323079 up_to = 65537; %o A323079 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 A323079 A060681(n) = (n-if(1==n,n,n/vecmin(factor(n)[,1]))); %o A323079 A323079aux(n) = if((n>2)&&isprime(n),-1,A060681(n)); %o A323079 v323079 = rgs_transform(vector(up_to,n,A323079aux(n))); %o A323079 A323079(n) = v323079[n]; %Y A323079 Cf. A060681, A323076, A323077. %K A323079 nonn %O A323079 1,2 %A A323079 _Antti Karttunen_, Jan 04 2019