Asymptotic expression for the $n$th prime number












2














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 '18 at 3:24
















2














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 '18 at 3:24














2












2








2


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 '18 at 13:55









Klangen

1,66711334




1,66711334










asked May 9 '18 at 3:17









Lone LearnerLone Learner

249416




249416












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


















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
















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




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










2 Answers
2






active

oldest

votes


















1














$$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





























    0














    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',
      autoActivateHeartbeat: false,
      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









      1














      $$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


























        1














        $$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
























          1












          1








          1






          $$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 '18 at 3:25









          Lord Shark the UnknownLord Shark the Unknown

          102k959132




          102k959132























              0














              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


























                0














                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
























                  0












                  0








                  0






                  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 '18 at 4:18









                  Nilotpal Kanti SinhaNilotpal Kanti Sinha

                  4,07221437




                  4,07221437






























                      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.




                      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

                      Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                      ComboBox Display Member on multiple fields

                      Is it possible to collect Nectar points via Trainline?