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.

A303755 Ordinal transform of A289625.

This page as a plain text file.
%I A303755 #8 May 01 2018 21:29:09
%S A303755 1,2,1,2,1,3,1,1,2,2,1,2,1,3,1,2,1,4,1,3,1,2,1,1,1,2,2,2,1,4,1,1,1,2,
%T A303755 1,3,1,3,2,1,1,4,1,2,3,2,1,2,2,2,1,4,1,4,1,1,1,2,1,3,1,2,1,2,1,3,1,3,
%U A303755 1,5,1,2,1,2,2,2,1,6,1,1,1,2,1,3,1,3,1,1,1,7,1,2,2,2,1,1,1,4,3,3,1,4,1,1,2
%N A303755 Ordinal transform of A289625.
%C A303755 Equally, ordinal transform of A289626.
%H A303755 Antti Karttunen, <a href="/A303755/b303755.txt">Table of n, a(n) for n = 1..65537</a>
%o A303755 (PARI)
%o A303755 up_to = 65537;
%o A303755 ordinal_transform(invec) = { my(om = Map(), outvec = vector(length(invec)), pt); for(i=1, length(invec), if(mapisdefined(om,invec[i]), pt = mapget(om, invec[i]), pt = 0); outvec[i] = (1+pt); mapput(om,invec[i],(1+pt))); outvec; };
%o A303755 A289625(n) = { my(m=1,p=2,v=znstar(n)[2]); for(i=1,length(v),m *= p^v[i]; p = nextprime(p+1)); (m); };
%o A303755 v303755 = ordinal_transform(vector(up_to,n,A289625(n)));
%o A303755 A303755(n) = v303755[n];
%Y A303755 Cf. A289625, A289626.
%Y A303755 Cf. also A081373, A303756.
%K A303755 nonn
%O A303755 1,2
%A A303755 _Antti Karttunen_, Apr 30 2018