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.

A331187 a(n) is n divided by the highest power of prime(A067004(n)) which divides it, where A067004 is the ordinal transform of number of divisors of n (A000005).

This page as a plain text file.
%I A331187 #9 Dec 21 2021 12:04:01
%S A331187 1,1,1,1,1,3,1,8,1,2,1,3,1,2,15,1,1,2,1,4,21,22,1,3,1,26,27,4,1,10,1,
%T A331187 32,33,34,35,9,1,38,39,8,1,6,1,44,45,46,1,3,1,50,51,52,1,54,55,56,57,
%U A331187 58,1,15,1,62,63,1,65,66,1,68,69,70,1,8,1,74,75,76,77,78,1,80,1,82,1,84,85,86,87,88,1,90
%N A331187 a(n) is n divided by the highest power of prime(A067004(n)) which divides it, where A067004 is the ordinal transform of number of divisors of n (A000005).
%H A331187 Antti Karttunen, <a href="/A331187/b331187.txt">Table of n, a(n) for n = 1..10000</a>
%H A331187 Antti Karttunen, <a href="/A331187/a331187.txt">Data supplement: n, a(n) computed for n = 1..65537</a>
%F A331187 a(n) = n / (A000040(A067004(n))^A331186(n)).
%t A331187 b[_] = 0;
%t A331187 A067004[n_] := A067004[n] = With[{t = DivisorSigma[0, n]}, b[t] = b[t]+1];
%t A331187 A331186[n_] := IntegerExponent[n, Prime[A067004[n]]];
%t A331187 a[n_] := n/(Prime[A067004[n]]^A331186[n]);
%t A331187 Array[a, 105] (* _Jean-François Alcover_, Dec 21 2021 *)
%o A331187 (PARI)
%o A331187 up_to = 65537;
%o A331187 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 A331187 v067004 = ordinal_transform(vector(up_to,n,numdiv(n)));
%o A331187 A067004(n) = v067004[n];
%o A331187 A331187(n) = { my(p=prime(A067004(n))); n/(p^valuation(n,p)); };
%Y A331187 Cf. A000040, A067004, A331186.
%Y A331187 Cf. also A331185.
%K A331187 nonn
%O A331187 1,6
%A A331187 _Antti Karttunen_, Jan 12 2020