# the difference between $n$-th prime number and $li^{-1} (n)$ (inverse logarithmic integral function)?

I asked this question before and got the desired answer in a comment, but now i want to generalize the question asked before.

given that $\pi(x) = \sum \limits_{p \leq x} 1$ is the prime counting function and $li(x) = \int \limits_{2}^{x} \frac{1}{\ln(t)}dt$ is the log integral function and $p_n$ is the $n$-th prime number and $li^{-1}(x)$ is the inverse logarithmic integral function.

assume that $|\pi(x)-li(x)| \leq \epsilon(x)$ where $\lim \limits_{x->\infty} \frac{\epsilon(x)}{li(x)} = 0$ then what is $|p_x - li^{-1}(x)| \leq ?(x)$

what is $?(x)$

** Hint ** in previous answer $|\pi(x)-li(x)| \leq x e^{-0.3 \sqrt{\ln(x)}}$ then a good bound for $|p_x - li^{-1}(x)| \leq x \ln^2(x) e^{-0.3 \sqrt{\ln(x)}}$

Note : i need the best bound without R.H.

• Any tight bound is doomed to depend on the shape of the zero-free region for the Riemann $\zeta$ function, hence we need to know if you are willing to assume RH or not. – Jack D'Aurizio Mar 19 '17 at 17:25
• @ Jack D'Aurizio without R.H – Ahmad Mar 19 '17 at 17:42
• In such a case your last line essentially provides the best possible bound, through Littlewood's or Korobov-Vinogradov's estimates for the zero-free region. – Jack D'Aurizio Mar 19 '17 at 17:48
• @Jack D'Aurizio so you say that the best is $\ln^2(x) \epsilon(x)$ ? (that is what i understood from your comment!) – Ahmad Mar 19 '17 at 17:52

Without RH it is possibile to prove that $$p_{n}=\textrm{Li}^{-1}\left(n\right)+O\left(n\exp\left(-c\sqrt{\log\left(n\right)}\right)\right)$$ where $c>0$, see here equation $(65)$ and the refereces $$ and $$. In the same paper we can see, if RH holds, that $$\left|p_{n}-\textrm{Li}^{-1}\left(n\right)\right|\leq\frac{1}{\pi}\sqrt{n}\log^{5/2}\left(n\right),\,n\geq 11.$$