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 A335424 #7 Jun 13 2020 22:10:04 %S A335424 1,2,2,1,2,3,2,2,1,4,2,2,2,4,3,1,2,2,2,2,4,4,2,3,1,4,2,2,2,5,2,2,4,4, %T A335424 3,1,2,4,4,4,2,6,2,2,2,4,2,2,1,2,4,2,2,3,4,4,4,4,2,3,2,4,2,1,4,6,2,2, %U A335424 4,6,2,2,2,4,2,2,3,6,2,2,1,4,2,4,4,4,4,4,2,4,4,2,4,4,4,3,2,2,2,1,2,6,2,4,5 %N A335424 Lexicographically earliest infinite sequence such that a(i) = a(j) => A046523(A335423(i)) = A046523(A335423(j)) for all i, j >= 1. %C A335424 For all i, j: A305800(i) = A305800(j) => a(i) = a(j) => A162642(i) = A162642(j). %H A335424 Antti Karttunen, <a href="/A335424/b335424.txt">Table of n, a(n) for n = 1..65537</a> %o A335424 (PARI) %o A335424 up_to = 65537; %o A335424 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 A335424 A048675(n) = { my(f = factor(n)); sum(k=1, #f~, f[k, 2]*2^primepi(f[k, 1]))/2; }; %o A335424 A248663(n) = A048675(core(n)); %o A335424 A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t }; %o A335424 A335423(n) = A005940(1+A248663(n)); %o A335424 A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; %o A335424 v335424 = rgs_transform(vector(up_to,n,A046523(A335423(n)))); %o A335424 A335424(n) = v335424[n]; %Y A335424 Cf. A046523, A162642, A248663, A335423, A335425. %Y A335424 Cf. also A286622, A305800. %K A335424 nonn %O A335424 1,2 %A A335424 _Antti Karttunen_, Jun 13 2020