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.

A339876 a(n) = A336466(A122111(n)).

This page as a plain text file.
%I A339876 #10 Dec 25 2020 19:31:23
%S A339876 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,5,1,1,
%T A339876 1,3,1,1,1,3,1,1,1,1,1,1,1,5,1,1,1,1,1,3,1,3,1,1,1,3,1,1,1,3,1,1,1,1,
%U A339876 1,1,1,5,1,1,1,1,1,1,1,5,9,1,1,3,1,1,1,3,1,3,1,1,1,1,1,3,1,1,1,3,1,1,1,3,1
%N A339876 a(n) = A336466(A122111(n)).
%H A339876 Antti Karttunen, <a href="/A339876/b339876.txt">Table of n, a(n) for n = 1..65537</a>
%H A339876 <a href="/index/Pri#prime_indices">Index entries for sequences computed from indices in prime factorization</a>
%F A339876 a(1) = 1, for n > 1, a(n) = A000265(A105560(n)-1) * a(A064989(n)).
%F A339876 a(n) = A336466(A122111(n)).
%o A339876 (PARI)
%o A339876 A000265(n) = (n>>valuation(n,2));
%o A339876 A122111(n) = if(1==n,n,my(f=factor(n), es=Vecrev(f[,2]),is=concat(apply(primepi,Vecrev(f[,1])),[0]),pri=0,m=1); for(i=1, #es, pri += es[i]; m *= prime(pri)^(is[i]-is[1+i])); (m));
%o A339876 A336466(n) = { my(f=factor(n)); prod(k=1,#f~,if(2==f[k,1],1,(A000265(f[k,1]-1))^f[k,2])); };
%o A339876 A339876(n) = A336466(A122111(n));
%o A339876 (PARI)
%o A339876 A064989(n) = {my(f); f = factor(n); if((n>1 && f[1,1]==2), f[1,2] = 0); for (i=1, #f~, f[i,1] = precprime(f[i,1]-1)); factorback(f)};
%o A339876 A105560(n) = if(1==n,n,prime(bigomega(n)));
%o A339876 A339876(n) = if(1==n,n,A000265(A105560(n)-1) * A339876(A064989(n)));
%Y A339876 Cf. A000265, A064989, A105560, A122111, A336466.
%Y A339876 Cf. also A334107, A339877.
%K A339876 nonn
%O A339876 1,16
%A A339876 _Antti Karttunen_, Dec 25 2020