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.

Showing 1-3 of 3 results.

A197297 The Riemann primes of the theta type and index 1.

Original entry on oeis.org

2, 5, 7, 11, 17, 29, 37, 41, 53, 59, 97, 127, 137, 149, 191, 223, 307, 331, 337, 347, 419, 541, 557, 809, 967, 1009, 1213, 1277, 1399, 1409, 1423, 1973, 2203, 2237, 2591, 2609, 2617, 2633, 2647, 2657, 3163, 3299, 4861, 4871, 4889, 4903, 4931, 5381, 7411
Offset: 1

Views

Author

Michel Planat, Oct 13 2011

Keywords

Comments

The sequence consists of the prime numbers p that are champions (left to right maxima) of the function |theta(p)-p|, where theta(p) is the Chebyshev theta function.

Crossrefs

Equivalent sequences for other indices: A197298(2), A197299(3), A197300(4).

Programs

  • Perl
    use ntheory ":all"; my($max,$f)=(0); forprimes { $f=abs(chebyshev_theta($)-$); if ($f > $max) { say; $max=$f; } } 10000; # Dana Jacobsen, Dec 29 2015

A108310 Successive maxima of log(n#)/n where n# is the product of the primes less than n.

Original entry on oeis.org

2, 3, 5, 7, 13, 19, 43, 47, 73, 103, 107, 109, 113, 199, 283, 467, 661, 887, 1063, 1069, 1097, 1103, 1109, 1123, 1129, 1303, 1307, 1321, 1327, 1621, 1627, 2803, 3931, 3947, 4273, 4289, 4297, 5867, 5869, 5881, 6373, 6379, 9439, 9473, 9479, 9497, 9551, 9859
Offset: 1

Views

Author

David J. Rusin, Jun 29 2005

Keywords

Comments

Every entry must be a prime.
Note that log(n#)=theta(n) (the Chebyshev function) for which bounds are known (e.g. Rosser and Schoenfeld have an estimate |theta(n)-n| < n/(40 log n).) In particular, log(n#)/n tends to 1, which allows a proof of the Prime Number Theorem. I suspect log(n#) can be greater than n for some n, which would make the sequence finite, but I do not know an example of such an n. (When n=30337841, 0.9999 < log(n#)/n < 1.)
When n=3745619057, 0.99999312926590387432389345880435140945170798255514 < log(n#)/n < 1. - Robert G. Wilson v, Jul 01 2005
Computational experiments show that it may be true that n > log(n#) for all n. In fact, it appears that, for any k, n > log(n#) + k*log(n) except for a finite number of small primes. For k=1, only 5, 7 and 19 are the exceptional n. This inequality is still consistent with 1 being the limiting value of log(n#)/n. - T. D. Noe, Apr 17 2006
Apparently in the long run (n-theta(n))/(Li(n)-Pi(n)) goes to log(n), so if Li(n)Martin Raab, May 13 2008
Sequence is finite since psi(x) - x is greater than sqrt x * log log log x infinitely often, and hence theta(x) > x infinitely often [but theta(x) - x = o(x), see Rosser & Schoenfeld]. See Hardy & Littlewood section 5. - Charles R Greathouse IV, Aug 02 2012

Examples

			13 follows 7 because log(7#)/7 = log(210)/7 = 0.7638, while log(8#)/8 and so on are smaller but log(13#)/13= 0.7931 is larger. A larger entry is 3445943 since log(n#)<0.99978 n for smaller n but log(3445943#)=3445185.8713457=(0.999780284)(3445943).
		

Crossrefs

Programs

  • Maple
    A:=[]:b:=0:S:=0:n:=1: while true do n:=nextprime(n): S:=S+evalf(log(n)): if S>b*n then A:=[op(A),n]: b:= S/n: fi: od: #Program must be terminated manually! Array "A" is the sequence.
  • Mathematica
    lmt = slp = 0; lst = {}; Do[p = Prime[n]; slp = slp + N[Log[p], 12]; If[slp/p > lmt, lmt = slp/p; AppendTo[lst, p]], {n, 1224}]; lst (* Robert G. Wilson v, Jul 01 2005 *)
  • PARI
    r=th=0; forprime(p=2, 1e6, th+=log(p); t=th/p; if(t>r, r=t; print1(p", "))) \\ Charles R Greathouse IV, Dec 17 2014

Extensions

More terms from Robert G. Wilson v, Jul 01 2005

A252398 Successive n with minimal relative distance |1-theta(n)/n|, where theta(n) = log(A034386(n)) is Chebyshev's theta function.

Original entry on oeis.org

2, 3, 5, 7, 13, 19, 43, 47, 73, 103, 107, 109, 113, 199, 283, 467, 661, 887, 1063, 1069, 1097, 1103, 1109, 1123, 1129, 1303, 1307, 1321, 1327, 1621, 1627, 2803, 3931, 3947, 4273, 4289, 4297, 5867, 5869, 5881, 6373, 6379, 9439, 9473, 9479, 9497, 9551, 9859, 9931, 9949
Offset: 1

Views

Author

Jean-François Alcover, Dec 17 2014

Keywords

Comments

The first 10000 terms are the same as A108310 (see that sequence for comments). - Charles R Greathouse IV, Dec 18 2014
This sequence, unlike A108310, is presumably infinite; it is finite if and only if theta(n) = n for some number n.

Examples

			Given that 1 - theta(3)/3 = 1 - log(6)/3 = 0.40..., 1 - theta(4)/4 = 1 - log(6)/4 = 0.55... and 1 - theta(5)/5 = 1 - log(30)/5 = 0.31..., the next term after 3 is 5.
		

Crossrefs

Programs

  • Mathematica
    (* Adapted from PARI *) Reap[For[record = 2; theta = 0; p = 2, p < 2 * 10^8, p = NextPrime[p], theta = theta + Log[p] //N; d = Abs[1 - theta/p]; If[d < record, record = d; Print[p]; Sow[p]]]][[2, 1]]
  • PARI
    /* Note: This program may fail if you replace 1e6 with a number larger than 1e17, and will certainly fail at some point below 1e316. These large numbers are not remotely feasible at the moment. */
    r=th=0; forprime(p=2,1e6, th+=log(p); t=th/p; if(t>r, r=t; print1(p", "); if(t>1, warning("theta(n) > n, possible missed terms")))) \\ Charles R Greathouse IV, Dec 17 2014
Showing 1-3 of 3 results.