Asymptotic expression for the $n$th prime number











up vote
2
down vote

favorite
1












Quoting from the Wikipedia article:




As a consequence of the prime number theorem, one gets an asymptotic expression for the $ n $th prime number, denoted by $ p_n $:
$$ p_n sim n log n.$$




Can you explain how we get this approximate expression? I understand the number of prime numbers less than or equal to an integer $ N $, denoted as $ pi(N) $ is approximately:
$$
pi(N) sim frac{N}{log N}.
$$



If the $ n $ prime number is approximately $ n log n $, it implies that there are approximately $ n $ prime numbers less than or equal to $ n log n $, i.e.,
$$
pi(n log n) sim n.
$$

But substituting $ N $ with $ n log n $ in the formula of $pi(N)$ we get
$$
pi(N) sim frac{N}{log N} = frac{n log n}{log (n log n)} notsim n.
$$

What am I doing wrong? How can I show that the statement quoted from Wikipedia is correct?










share|cite|improve this question
























  • log(n log n) is very close to log(n).
    – Jalex Stark
    May 9 at 3:24















up vote
2
down vote

favorite
1












Quoting from the Wikipedia article:




As a consequence of the prime number theorem, one gets an asymptotic expression for the $ n $th prime number, denoted by $ p_n $:
$$ p_n sim n log n.$$




Can you explain how we get this approximate expression? I understand the number of prime numbers less than or equal to an integer $ N $, denoted as $ pi(N) $ is approximately:
$$
pi(N) sim frac{N}{log N}.
$$



If the $ n $ prime number is approximately $ n log n $, it implies that there are approximately $ n $ prime numbers less than or equal to $ n log n $, i.e.,
$$
pi(n log n) sim n.
$$

But substituting $ N $ with $ n log n $ in the formula of $pi(N)$ we get
$$
pi(N) sim frac{N}{log N} = frac{n log n}{log (n log n)} notsim n.
$$

What am I doing wrong? How can I show that the statement quoted from Wikipedia is correct?










share|cite|improve this question
























  • log(n log n) is very close to log(n).
    – Jalex Stark
    May 9 at 3:24













up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





Quoting from the Wikipedia article:




As a consequence of the prime number theorem, one gets an asymptotic expression for the $ n $th prime number, denoted by $ p_n $:
$$ p_n sim n log n.$$




Can you explain how we get this approximate expression? I understand the number of prime numbers less than or equal to an integer $ N $, denoted as $ pi(N) $ is approximately:
$$
pi(N) sim frac{N}{log N}.
$$



If the $ n $ prime number is approximately $ n log n $, it implies that there are approximately $ n $ prime numbers less than or equal to $ n log n $, i.e.,
$$
pi(n log n) sim n.
$$

But substituting $ N $ with $ n log n $ in the formula of $pi(N)$ we get
$$
pi(N) sim frac{N}{log N} = frac{n log n}{log (n log n)} notsim n.
$$

What am I doing wrong? How can I show that the statement quoted from Wikipedia is correct?










share|cite|improve this question















Quoting from the Wikipedia article:




As a consequence of the prime number theorem, one gets an asymptotic expression for the $ n $th prime number, denoted by $ p_n $:
$$ p_n sim n log n.$$




Can you explain how we get this approximate expression? I understand the number of prime numbers less than or equal to an integer $ N $, denoted as $ pi(N) $ is approximately:
$$
pi(N) sim frac{N}{log N}.
$$



If the $ n $ prime number is approximately $ n log n $, it implies that there are approximately $ n $ prime numbers less than or equal to $ n log n $, i.e.,
$$
pi(n log n) sim n.
$$

But substituting $ N $ with $ n log n $ in the formula of $pi(N)$ we get
$$
pi(N) sim frac{N}{log N} = frac{n log n}{log (n log n)} notsim n.
$$

What am I doing wrong? How can I show that the statement quoted from Wikipedia is correct?







prime-numbers






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 23 at 13:55









Klangen

1,29311129




1,29311129










asked May 9 at 3:17









Lone Learner

249416




249416












  • log(n log n) is very close to log(n).
    – Jalex Stark
    May 9 at 3:24


















  • log(n log n) is very close to log(n).
    – Jalex Stark
    May 9 at 3:24
















log(n log n) is very close to log(n).
– Jalex Stark
May 9 at 3:24




log(n log n) is very close to log(n).
– Jalex Stark
May 9 at 3:24










2 Answers
2






active

oldest

votes

















up vote
1
down vote













$$log(nlog n)=log n+loglog n=(1+o(1))log n$$
therefore
$$frac{nlog n}{log(nlog n)}=frac{nlog n}{(1+o(1))log n}
=frac{n}{(1+o(1))}sim n.$$






share|cite|improve this answer




























    up vote
    0
    down vote













    It seems you are very new to prime number theory hence I am not sure if you understand the little $o$ notations. Hence I present @Lord Shark's answer in layman's terms.



    $$
    log (nlog n) = log n + loglog n
    $$



    But $loglog n$ is exponentially smaller compared to $log n$ i.e. it can be ignore compared to $log n$. Hence as an approximation, we have



    $$
    log (nlog n) sim log n
    $$



    With this approximation



    $$
    pi (nlog n) sim frac{nlog n}{log (nlog n)} sim frac{nlog n}{log n} sim n
    $$



    The smallest values of $x$ for which $pi(x) = n$ is $x = p_n$ hence we have



    $$
    pi (p_n) = n sim pi(nlog n)
    $$



    or $p_n sim nlog n$.






    share|cite|improve this answer





















      Your Answer





      StackExchange.ifUsing("editor", function () {
      return StackExchange.using("mathjaxEditing", function () {
      StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
      StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
      });
      });
      }, "mathjax-editing");

      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "69"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      noCode: true, onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2773138%2fasymptotic-expression-for-the-nth-prime-number%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      1
      down vote













      $$log(nlog n)=log n+loglog n=(1+o(1))log n$$
      therefore
      $$frac{nlog n}{log(nlog n)}=frac{nlog n}{(1+o(1))log n}
      =frac{n}{(1+o(1))}sim n.$$






      share|cite|improve this answer

























        up vote
        1
        down vote













        $$log(nlog n)=log n+loglog n=(1+o(1))log n$$
        therefore
        $$frac{nlog n}{log(nlog n)}=frac{nlog n}{(1+o(1))log n}
        =frac{n}{(1+o(1))}sim n.$$






        share|cite|improve this answer























          up vote
          1
          down vote










          up vote
          1
          down vote









          $$log(nlog n)=log n+loglog n=(1+o(1))log n$$
          therefore
          $$frac{nlog n}{log(nlog n)}=frac{nlog n}{(1+o(1))log n}
          =frac{n}{(1+o(1))}sim n.$$






          share|cite|improve this answer












          $$log(nlog n)=log n+loglog n=(1+o(1))log n$$
          therefore
          $$frac{nlog n}{log(nlog n)}=frac{nlog n}{(1+o(1))log n}
          =frac{n}{(1+o(1))}sim n.$$







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered May 9 at 3:25









          Lord Shark the Unknown

          98k958130




          98k958130






















              up vote
              0
              down vote













              It seems you are very new to prime number theory hence I am not sure if you understand the little $o$ notations. Hence I present @Lord Shark's answer in layman's terms.



              $$
              log (nlog n) = log n + loglog n
              $$



              But $loglog n$ is exponentially smaller compared to $log n$ i.e. it can be ignore compared to $log n$. Hence as an approximation, we have



              $$
              log (nlog n) sim log n
              $$



              With this approximation



              $$
              pi (nlog n) sim frac{nlog n}{log (nlog n)} sim frac{nlog n}{log n} sim n
              $$



              The smallest values of $x$ for which $pi(x) = n$ is $x = p_n$ hence we have



              $$
              pi (p_n) = n sim pi(nlog n)
              $$



              or $p_n sim nlog n$.






              share|cite|improve this answer

























                up vote
                0
                down vote













                It seems you are very new to prime number theory hence I am not sure if you understand the little $o$ notations. Hence I present @Lord Shark's answer in layman's terms.



                $$
                log (nlog n) = log n + loglog n
                $$



                But $loglog n$ is exponentially smaller compared to $log n$ i.e. it can be ignore compared to $log n$. Hence as an approximation, we have



                $$
                log (nlog n) sim log n
                $$



                With this approximation



                $$
                pi (nlog n) sim frac{nlog n}{log (nlog n)} sim frac{nlog n}{log n} sim n
                $$



                The smallest values of $x$ for which $pi(x) = n$ is $x = p_n$ hence we have



                $$
                pi (p_n) = n sim pi(nlog n)
                $$



                or $p_n sim nlog n$.






                share|cite|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  It seems you are very new to prime number theory hence I am not sure if you understand the little $o$ notations. Hence I present @Lord Shark's answer in layman's terms.



                  $$
                  log (nlog n) = log n + loglog n
                  $$



                  But $loglog n$ is exponentially smaller compared to $log n$ i.e. it can be ignore compared to $log n$. Hence as an approximation, we have



                  $$
                  log (nlog n) sim log n
                  $$



                  With this approximation



                  $$
                  pi (nlog n) sim frac{nlog n}{log (nlog n)} sim frac{nlog n}{log n} sim n
                  $$



                  The smallest values of $x$ for which $pi(x) = n$ is $x = p_n$ hence we have



                  $$
                  pi (p_n) = n sim pi(nlog n)
                  $$



                  or $p_n sim nlog n$.






                  share|cite|improve this answer












                  It seems you are very new to prime number theory hence I am not sure if you understand the little $o$ notations. Hence I present @Lord Shark's answer in layman's terms.



                  $$
                  log (nlog n) = log n + loglog n
                  $$



                  But $loglog n$ is exponentially smaller compared to $log n$ i.e. it can be ignore compared to $log n$. Hence as an approximation, we have



                  $$
                  log (nlog n) sim log n
                  $$



                  With this approximation



                  $$
                  pi (nlog n) sim frac{nlog n}{log (nlog n)} sim frac{nlog n}{log n} sim n
                  $$



                  The smallest values of $x$ for which $pi(x) = n$ is $x = p_n$ hence we have



                  $$
                  pi (p_n) = n sim pi(nlog n)
                  $$



                  or $p_n sim nlog n$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered May 9 at 4:18









                  Nilotpal Kanti Sinha

                  3,98221437




                  3,98221437






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Mathematics Stack Exchange!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      Use MathJax to format equations. MathJax reference.


                      To learn more, see our tips on writing great answers.





                      Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                      Please pay close attention to the following guidance:


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2773138%2fasymptotic-expression-for-the-nth-prime-number%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Different font size/position of beamer's navigation symbols template's content depending on regular/plain...

                      Berounka

                      I want to find a topological embedding $f : X rightarrow Y$ and $g: Y rightarrow X$, yet $X$ is not...