

A104272


Ramanujan primes R_n: a(n) is the smallest number such that if x >= a(n), then pi(x)  pi(x/2) >= n, where pi(x) is the number of primes <= x.


138



2, 11, 17, 29, 41, 47, 59, 67, 71, 97, 101, 107, 127, 149, 151, 167, 179, 181, 227, 229, 233, 239, 241, 263, 269, 281, 307, 311, 347, 349, 367, 373, 401, 409, 419, 431, 433, 439, 461, 487, 491, 503, 569, 571, 587, 593, 599, 601, 607, 641, 643, 647, 653, 659
(list;
graph;
refs;
listen;
history;
text;
internal format)



OFFSET

1,1


COMMENTS

Referring to his proof of Bertrand's postulate, Ramanujan states a generalization: "From this we easily deduce that pi(x)  pi(x/2) >= 1, 2, 3, 4, 5, ..., if x >= 2, 11, 17, 29, 41, ..., respectively." Since the a(n) are prime (by their minimality), I call them "Ramanujan primes."
See the additional references and links mentioned in A143227.
2n log 2n < a(n) < 4n log 4n for n >= 1, and prime(2n) < a(n) < prime(4n) if n > 1. Also, a(n) ~ prime(2n) as n > infinity.
Shanta Laishram has proved that a(n) < prime(3n) for all n >= 1.
a(n)  3n log 3n is sometimes positive, but negative with increasing frequency as n grows since a(n) ~ 2n log 2n. There should be a constant m s.t. for n >= m we have a(n) < 3n log 3n.
A good approximation to a(n) = R_n for n in [1..1000] is A162996(n) = Round(kn * (ln(kn)+1)), with k = 2.216 determined empirically from the first 1000 Ramanujan primes, which approximates the {kn}_th prime number which in turn approximates the nth Ramanujan prime and where Abs(A162996(n)  R_n) < 2 * Sqrt(A162996(n)) for n in [1..1000]. Since R_n ~ prime(2n) ~ 2n * (ln(2n)+1) ~ 2n * ln(2n), while A162996(n) ~ prime(kn) ~ kn * (ln(kn)+1) ~ kn * ln(kn), A162996(n) / R_n ~ k/2 = 2.216/2 = 1.108 which implies an asymptotic overestimate of about 10% (a better approximation would need k to depend on n and be asymptotic to 2.)  Daniel Forgues, Jul 29 2009
Let p_n be the nth prime. If p_n>=3 is in the sequence, then all integers (p_n+1)/2, (p_n+3)/2, ..., (p_(n+1)1)/2 are composite numbers.  Vladimir Shevelev, Aug 12 2009
Denote by q(n) the prime which is the nearest from the right to a(n)/2. Then there exists a prime between a(n) and 2q(n). Converse, generally speaking, is not true, i.e., there exist primes outside the sequence, but possess such property (e.g., 109).  Vladimir Shevelev, Aug 14 2009
The Mathematica program FasterRamanujanPrimeList uses Laishram's result that a(n) < prime(3n).
See sequence A164952 for a generalization we call a Ramanujan kprime.  Vladimir Shevelev, Sep 01 2009
Contribution from Jonathan Sondow, May 22 2010: (Start)
About 46% of primes < 19000 are Ramanujan primes. About 78% of the lesser of twin primes < 19000 are Ramanujan primes.
About 15% of primes < 19000 are the lesser of twin primes. About 26% of Ramanujan primes < 19000 are the lesser of twin primes.
A reason for the jumps is in Section 7 of "Ramanujan primes and Bertrand's postulate" and in Section 4 of "Ramanujan Primes: Bounds, Runs, Twins, and Gaps".
See Shapiro 2008 for an exposition of Ramanujan's proof of his generalization of Bertrand's postulate. (End)
The 10^n_th R prime: 2, 97, 1439, 19403, 242057, 2916539, 34072993, 389433437,....  Robert G. Wilson v, May 07 2011 & updated Aug 02 2012
The number of R primes < 10^n: 1, 10, 72, 559, 4459, 36960, 316066, 2760321,….  Robert G. Wilson v, Aug 02 2012
a(n) = R_n = R_{0.5,n} in "Generalized Ramanujan Primes."
All Ramanujan primes are in A164368.  Vladimir Shevelev, Aug 30 2011
If n tends to infinity, then limsup(a(n)A080359(n1)) = infty; conjecture: also limsup(a(n)A080359(n)) = infty (cf. A182366).  Vladimir Shevelev, Apr 27 2012
Or the largest prime x such that the number of primes in (x/2,x] equals n. This equivalent definition underlines an important analogy between Ramanujan and Labos primes (cf. A080359).  Vladimir Shevelev, Apr 29 2012
Research questions on R_n  prime(2n) are at A233739, and on nRamanujan primes at A225907.  Jonathan Sondow, Dec 16 2013
The questions on R_n  prime(2n) in A233739 have been answered by Christian Axler in "On generalized Ramanujan primes".  Jonathan Sondow, Feb 13 2014
Srinivasan's Lemma (2014): prime(kn) < prime(k)/2 if R_n = prime(k) and n > 1. Proof: By the minimality of R_n, the interval (prime(k)/2,prime(k)] contains exactly n primes and so prime(kn) < prime(k)/2.  Jonathan Sondow, May 10 2014


REFERENCES

P. Erdős, A theorem of Sylvester and Schur, J. London Math. Soc., 9 (1934), 282288.
Shanta Laishram, On a conjecture on Ramanujan primes, Int. J. Number Theory, 6 (2010), 18691873.
Jaban Meher and M. Ram Murty, Ramanujan’s proof of Bertrand’s postulate, Amer. Math. Monthly, 120 (2013), 650653.
S. Ramanujan, Collected Papers of Srinivasa Ramanujan (Ed. G. H. Hardy, S. Aiyar, P. Venkatesvara and B. M. Wilson), Amer. Math. Soc., Providence, 2000, pp. 208209.
H. N. Shapiro, Ramanujan's idea, Section 9.3B in Introduction to the Theory of Numbers, Dover, 2008.
J. Sondow, Ramanujan primes and Bertrand's postulate, Amer. Math. Monthly, 116 (2009), 630635.


LINKS

T. D. Noe, Table of n, a(n) for n = 1..10000
Sequences related to Ramanujan primes
N. Amersi, O. Beckwith, S. J. Miller, R. Ronan, J. Sondow, Generalized Ramanujan primes, arXiv 2011.
N. Amersi, O. Beckwith, S. J. Miller, R. Ronan, J. Sondow, Generalized Ramanujan primes, Combinatorial and Additive Number Theory, Springer Proc. in Math. & Stat., CANT 2011 and 2012, Vol. 101 (2014), 113
Christian Axler, Über die PrimzahlZählfunktion, die nte Primzahl und verallgemeinerte RamanujanPrimzahlen, Ph.D. thesis 2013, in German, English summary.
Christian Axler, On generalized Ramanujan primes, arXiv:1401.7179 [math.NT], 2014.
Peter Hegarty, Why should one expect to find long runs of (non)Ramanujan primes?, arXiv 2012.
Shanta Laishram, On a conjecture on Ramanujan primes, 2010.
M. B. Paksoy, Derived Ramanujan primes: R'_n, arXiv 2012.
PlanetMath, Ramanujan prime
S. Ramanujan, A proof of Bertrand's postulate, J. Indian Math. Soc., 11 (1919), 181182.
V. Shevelev, On critical small intervals containing primes
V. Shevelev, Ramanujan and Labos primes, their generalizations and classifications of primes, arXiv 2009.
V. Shevelev, Ramanujan and Labos primes, their generalizations, and classifications of primes, J. Integer Seq. 15 (2012) Article 12.5.4
Vladimir Shevelev, Charles R. Greathouse IV, Peter J. C. Moses, On intervals (kn, (k+1)n) containing a prime for all n>1, Journal of Integer Sequences, Vol. 16 (2013), Article 13.7.3. arXiv:1212.2785
J. Sondow, Ramanujan primes and Bertrand's postulate, arXiv 2009.
J. Sondow, J. W. Nicholson, and T. D. Noe, Ramanujan Primes: Bounds, Runs, Twins, and Gaps, J. Integer Seq. 14 (2011) Article 11.6.2
J. Sondow, Ramanujan Prime, Eric Weisstein's MathWorld.
J. Sondow and E. Weisstein, Bertrand's Postulate, MathWorld.
Anitha Srinivasan, An upper bound for Ramanujan primes, Integers, 19 (2014), #A19.
Wikipedia, Bertrand's postulate
Wikipedia, Ramanujan prime


FORMULA

a(n) = 1 + max{k: pi(k)  pi(k/2) = n  1}.
a(n) = A080360(n1) + 1 for n > 1.
a(n) >= A080359(n).  Vladimir Shevelev, Aug 20 2009
A193761(n) <= a(n) <= A193880(n).
a(n) = 2*A084140(n)  1, for n > 1.  Jonathan Sondow, Dec 21 2012
a(n) = prime(2n) + A233739(n) = (A233822(n) + a(n+1))/2.  Jonathan Sondow, Dec 16 2013


EXAMPLE

a(1) = 2 is Bertrand's postulate: pi(x)  pi(x/2) >= 1 for all x >= 2.
a(2) = 11 because a(2) < 8 log 8 < 17 and pi(n)  pi(n/2) > 1 for n = 16, 15, ..., 11 but pi(10)  pi(5) = 1.
Consider a(9)=71. Then the nearest prime > 71/2 is 37, and between a(9) and 2*37, that is, between 71 and 74, there exists a prime (73). [Vladimir Shevelev, Aug 14 2009]  corrected by Jonathan Sondow, Jun 17 2013


MATHEMATICA

(RamanujanPrimeList[n_] := With[{T=Table[{k, PrimePi[k]PrimePi[k/2]}, {k, Ceiling[N[4*n*Log[4*n]]]}]}, Table[1+First[Last[Select[T, Last[ # ]==i1&]]], {i, 1, n}]]; RamanujanPrimeList[54]) (* Jonathan Sondow, Aug 15 2009 *)
(FasterRamanujanPrimeList[n_] := With[{T=Table[{k, PrimePi[k]PrimePi[k/2]}, {k, Prime[3*n]}]}, Table[1+First[Last[Select[T, Last[ # ]==i1&]]], {i, 1, n}]]; FasterRamanujanPrimeList[54])
nn=1000; R=Table[0, {nn}]; s=0; Do[If[PrimeQ[k], s++]; If[PrimeQ[k/2], s]; If[s<nn, R[[s+1]]=k], {k, Prime[3*nn]}]; R=R+1 (* T. D. Noe, Nov 15 2010 *)


CROSSREFS

Cf. A006992 Bertrand primes, A056171 pi(n)  pi(n/2).
Cf. A000720, A014085, A060715, A084139, A084140, A143223, A143224, A143225, A143226, A143227, A080360, A080359, A164368, A164288, A164554, A164333, A164294, A164371.
Cf. A162996 Round(kn * (ln(kn)+1)), with k = 2.216 as an approximation of R_n = nth Ramanujan Prime.
Cf. A163160 Round(kn * (ln(kn)+1))  R_n, where k = 2.216 and R_n = nth Ramanujan prime.
Cf. A178127 Lesser of twin Ramanujan primes, A178128 Lesser of twin primes if it is a Ramanujan prime.
Cf. A181671 (number of Ramanujan primes less than 10^n).
Cf. A174635 (nonRamanujan primes), A174602, A174641 (runs of Ramanujan and nonRamanujan primes).
Cf. A189993, A189994 (lengths of longest runs of Ramanujan and nonRamanujan primes < 10^n).
Cf. A190124 (constant of summation: 1/a(n)^2).
Cf. A192820 (2 or derived Ramanujan primes R'_n), A192821, A192822, A192823, A192824, A225907.
Cf. A193761 (0.25Ramanujan primes), A193880 (0.75Ramanujan primes).
Cf. A212493, A212541, A233739, A233822.
Sequence in context: A019364 A164368 A194658 * A214934 A233866 A117155
Adjacent sequences: A104269 A104270 A104271 * A104273 A104274 A104275


KEYWORD

nonn,nice


AUTHOR

Jonathan Sondow, Feb 27 2005


STATUS

approved



