1
$\begingroup$

p[i] is the i-th prime. $\pi(x)$ is prime counting function.

Firstly, I think that this Prime gap inequality holds true,

$ p[i+1] - p[i] <= i $

Prove:for any i>0, we can always find distinct prime factors for {p[i], p[i]+1,...,p[i+1]}. For example, i=11, p[11]=31, p[12]=37, {31,32,33,34,35,36,37} have distinct prime factors {31,2,11,17,5,3,37}. Pigeonhole principle shows this simple inequality!

My question is the title,

Conjecture(Prime counting inequality) :

if $ i\lt j $, then $\pi(p[i]+i)-i<=\pi(p[j]+j)-j+1$

Edit: sorry, this conjecture is false! But another question is arising: if $ i\lt j $, what is the max value of $g(i,j) = (\pi(p[i]+i)-i) - (\pi(p[j]+j)-j) /; i\lt j$

I find g(i,j) may be 12. g(150065,150090)=12.

and more, what is the max value of h(i,j)=j-i /; $(\pi(p[i]+i)-i) > (\pi(p[j]+j)-j) $

$\endgroup$
1
  • 1
    $\begingroup$ Concerning your other conjecture, there will be places where primes collect and places where they are sparse. Based on your single data point, I am guessing g(i,j) can be potentially as large as log(j) times possibly an iterated log of j. I am having trouble reading your definition of h(i,j), so will not comment further on it. Gerhard "Ask Me About System Design" Paseman, 2011.08.04 $\endgroup$ Commented Aug 5, 2011 at 5:56

1 Answer 1

4
$\begingroup$

I believe your inequality $p(i+1) \leq p(i) + i$ is true, but that there is no short and elementary proof. It follows from inspection and some known results on the length of gaps between primes, cf. Dusart or Harman.

Your titled inequality I believe fails for some $i$ with $j=i+2$. I don't have a specific value for $i$, but I suspect that there is a sequence such that your arguments to $\pi$ could fall into a large gap, especially when $p(i+2)= p(i)+6$. That is where I would start looking for counterexamples.

Gerhard "But It Looks Quite Plausible" Paseman, 2011.07.30

$\endgroup$
4
  • $\begingroup$ you are right! Mathematica code: Table[pi[p[n] + n] - n, {n, 1, 100}] {1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 2, 3, 3, 2, 3, 3, 4, 4, 4, 4, 3, 4, 4, \ 6, 5, 5, 4, 4, 4, 4, 6, 6, 6, 6, 7, 6, 7, 8, 7, 7, 6, 6,... my conjecture is false. $\endgroup$
    – user8140
    Commented Jul 30, 2011 at 7:08
  • 2
    $\begingroup$ Happens to the best of us. Fermat primes is one example. Don't let that stop you, let it guide you. Gerhard "Ask Me About System Design" Paseman, 2011.07.30 $\endgroup$ Commented Jul 30, 2011 at 7:14
  • 1
    $\begingroup$ Playing primes is just like playing chess with Zeus. $\endgroup$
    – user8140
    Commented Jul 30, 2011 at 7:22
  • $\begingroup$ t = Table[pi[p[n] + n] - n, {n, 1, 10000}]; ListPlot[{t}] $\endgroup$
    – user8140
    Commented Jul 30, 2011 at 8:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .