cp's OEIS Frontend

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.

A304528 Restricted growth sequence transform of A304526, which is Möbius transform of A064664, the inverse of EKG-sequence.

This page as a plain text file.
%I A304528 #5 May 18 2018 06:27:35
%S A304528 1,1,2,1,3,4,5,6,1,4,7,8,9,4,10,3,11,12,13,14,10,4,15,2,16,4,17,18,19,
%T A304528 20,21,16,10,4,8,20,22,4,10,23,24,25,26,27,9,4,28,29,13,25,10,7,30,29,
%U A304528 31,32,10,4,33,32,34,4,35,36,23,37,38,11,10,36,39,31,40,4,41,42,43,41,44,25,45,4,46,9,15,4,10,36,47,48,49,41,10,4,50,11,51
%N A304528 Restricted growth sequence transform of A304526, which is Möbius transform of A064664, the inverse of EKG-sequence.
%H A304528 Antti Karttunen, <a href="/A304528/b304528.txt">Table of n, a(n) for n = 1..32768</a>
%H A304528 <a href="/index/Ed#EKG">Index entries for sequences related to EKG sequence</a>
%o A304528 (PARI)
%o A304528 \\ Needs also code for A064664 and A304526:
%o A304528 write_to_bfile(start_offset,vec,bfilename) = { for(n=1, length(vec), write(bfilename, (n+start_offset)-1, " ", vec[n])); }
%o A304528 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 A304528 write_to_bfile(1,rgs_transform(vector(32768,n,A304526(n))),"b304528.txt");
%Y A304528 Cf. A064664, A304526.
%K A304528 nonn
%O A304528 1,3
%A A304528 _Antti Karttunen_, May 18 2018