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 A304088 #5 May 12 2018 14:45:02 %S A304088 1,2,3,2,4,3,2,5,6,4,3,2,7,5,7,5,8,6,4,3,2,9,7,5,10,7,5,9,7,5,11,12,7, %T A304088 13,9,4,3,2,8,6,7,5,14,9,7,5,13,10,7,5,10,7,14,9,7,5,15,11,15,11,16, %U A304088 15,11,9,7,12,8,6,4,3,2,17,14,9,7,5,18,14,9,7,5,19,13,9,7,5,20,15,11,18,13,10,7,5,21,15,11,21,15,11,17,14,9,7,5 %N A304088 Restricted growth sequence transform of A278222(A304083(n)). %H A304088 Antti Karttunen, <a href="/A304088/b304088.txt">Table of n, a(n) for n = 0..65537</a> %F A304088 For all i, j: a(i) = a(j) => A304089(i) = A304089(j). %o A304088 (PARI) %o A304088 \\ Needs also code from A304083: %o A304088 rgs_transform(invec) = { my(occurrences = Map(), outvec = vector(length(invec)), u=1); for(i=1, length(invec), if(mapisdefined(occurrences,invec[i]), my(pp = mapget(occurrences, invec[i])); outvec[i] = outvec[pp] , mapput(occurrences,invec[i],i); outvec[i] = u; u++ )); outvec; }; %o A304088 write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); } %o A304088 A005940(n) = { my(p=2, t=1); n--; until(!n\=2, if((n%2), (t*=p), p=nextprime(p+1))); t }; %o A304088 A046523(n) = { my(f=vecsort(factor(n)[, 2], , 4), p); prod(i=1, #f, (p=nextprime(p+1))^f[i]); }; \\ From A046523 %o A304088 A278222(n) = A046523(A005940(1+n)); %o A304088 write_to_bfile(0,rgs_transform(vector(65538,n,A278222(A304083(n-1)))),"b304088.txt"); %Y A304088 Cf. A278222, A304083, A304089. %Y A304088 Cf. also A303779. %K A304088 nonn %O A304088 0,2 %A A304088 _Antti Karttunen_, May 06 2018