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.

A196669 The Chebyshev primes of index 3.

This page as a plain text file.
%I A196669 #34 Sep 08 2022 08:45:59
%S A196669 11,19,29,61,71,97,101,107,109,113,127,131,149,151,173,181,191,193,
%T A196669 197,199,211,223,227,229,233,257,269,281,307,311,313,317,347,349,359,
%U A196669 373,383,389,401,409,419,421,433,439,461,479,503,509,557,563,569,571,607
%N A196669 The Chebyshev primes of index 3.
%C A196669 The sequence consists of such odd prime numbers p that satisfy li[psi(p^3)]-li[psi(p^3-1)]<1/3, where li(x) is the logarithmic integral and psi(x) is the Chebyshev's psi function.
%H A196669 Dana Jacobsen, <a href="/A196669/b196669.txt">Table of n, a(n) for n = 1..314</a>
%H A196669 M. Planat and P. Solé, <a href="http://arxiv.org/abs/1109.6489">Efficient prime counting and the Chebyshev primes</a> arXiv:1109.6489 [math.NT], 2011.
%p A196669 # The function PlanatSole(n,r) is in A196667.
%p A196669 A196669 := n -> PlanatSole(n,3); # _Peter Luschny_, Oct 23 2011
%t A196669 ChebyshevPsi[n_] := Log[LCM @@ Range[n]];
%t A196669 Reap[Do[If[LogIntegral[ChebyshevPsi[p^3]] - LogIntegral[ChebyshevPsi[p^3 - 1]] < 1/3, Print[p]; Sow[p]], {p, Prime[Range[2, 120]]}]][[2, 1]] (* _Jean-François Alcover_, Jul 14 2018, updated Dec 06 2018 *)
%o A196669 (Magma) Mangoldt:=function(n);
%o A196669 if #Factorization(n) eq 1 then return Log(Factorization(n)[1][1]); else return 0; end if;
%o A196669 end function;
%o A196669 tcheb:=function(n);
%o A196669 x:=0;
%o A196669 for i in [1..n] do
%o A196669 x:=x+Mangoldt(i);
%o A196669 end for;
%o A196669 return(x);
%o A196669 end function;
%o A196669 jump3:=function(n);
%o A196669 x:=LogIntegral(tcheb(NthPrime(n)^3))-LogIntegral(tcheb(NthPrime(n)^3-1));
%o A196669 return x;
%o A196669 end function;
%o A196669 Set3:=[];
%o A196669 for i in [2..1000] do
%o A196669 if jump3(i)-1/3 lt 0 then Set3:=Append(Set3,NthPrime(i)); NthPrime(i); end if;
%o A196669 end for;
%o A196669 Set3;
%o A196669 (Sage)
%o A196669 def A196669(n) : return PlanatSole(n,3)
%o A196669 # The function PlanatSole(n,r) is in A196667.
%o A196669 # _Peter Luschny_, Oct 23 2011
%o A196669 (Perl) use ntheory ":all"; forprimes { say if 3 * (LogarithmicIntegral(chebyshev_psi($_**3)) - LogarithmicIntegral(chebyshev_psi($_**3-1))) < 1 } 3, 1000; # _Dana Jacobsen_, Dec 29 2015
%Y A196669 Cf. A196667, A196668, A196670.
%K A196669 nonn
%O A196669 1,1
%A A196669 _Michel Planat_, Oct 05 2011
%E A196669 Corrected and extended by _Dana Jacobsen_, Dec 29 2015