Elementary number theory problem about finding a square number with digits with certain properties

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












Here's the problem I am working on:-




Find,showing your method, a six-digit integer n with the following properties:



$(1)$ $n$ is a perfect square



$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the first three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"




Here's my approach:



Consider the first $3$ digits of $n$ as $x$



Now, $n=1000x+(x+1)$



Because $n$ is a perfect square,



$$m^2=1001x+1$$



Using the difference of two squares identity:



$$(m+1)(m-1)=1001x$$



Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.



Hence, $x=999$



Now, here the problem arises.



If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:



$9991000$



However, this is a $7$ digit number, making the initial condition false.



Where did I go wrong?







share|cite|improve this question


















  • 1




    $1001$ is not prime.
    – Jaap Scherphuis
    Aug 21 at 14:22










  • just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
    – Ronald
    Aug 21 at 14:28















up vote
3
down vote

favorite












Here's the problem I am working on:-




Find,showing your method, a six-digit integer n with the following properties:



$(1)$ $n$ is a perfect square



$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the first three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"




Here's my approach:



Consider the first $3$ digits of $n$ as $x$



Now, $n=1000x+(x+1)$



Because $n$ is a perfect square,



$$m^2=1001x+1$$



Using the difference of two squares identity:



$$(m+1)(m-1)=1001x$$



Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.



Hence, $x=999$



Now, here the problem arises.



If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:



$9991000$



However, this is a $7$ digit number, making the initial condition false.



Where did I go wrong?







share|cite|improve this question


















  • 1




    $1001$ is not prime.
    – Jaap Scherphuis
    Aug 21 at 14:22










  • just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
    – Ronald
    Aug 21 at 14:28













up vote
3
down vote

favorite









up vote
3
down vote

favorite











Here's the problem I am working on:-




Find,showing your method, a six-digit integer n with the following properties:



$(1)$ $n$ is a perfect square



$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the first three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"




Here's my approach:



Consider the first $3$ digits of $n$ as $x$



Now, $n=1000x+(x+1)$



Because $n$ is a perfect square,



$$m^2=1001x+1$$



Using the difference of two squares identity:



$$(m+1)(m-1)=1001x$$



Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.



Hence, $x=999$



Now, here the problem arises.



If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:



$9991000$



However, this is a $7$ digit number, making the initial condition false.



Where did I go wrong?







share|cite|improve this question














Here's the problem I am working on:-




Find,showing your method, a six-digit integer n with the following properties:



$(1)$ $n$ is a perfect square



$(2)$ the number formed by the last three digits of $n$ is exactly one greater than the number formed by the first three digits of $n$. (Thus $n$ might look like $123124$; although, this is not a square.)"




Here's my approach:



Consider the first $3$ digits of $n$ as $x$



Now, $n=1000x+(x+1)$



Because $n$ is a perfect square,



$$m^2=1001x+1$$



Using the difference of two squares identity:



$$(m+1)(m-1)=1001x$$



Now $1001=m+1$ as if $1001$ is $m-1$, then $1003=m+1=x$, and this is not possible since $x$ is a $3$-digit number.



Hence, $x=999$



Now, here the problem arises.



If $x=999$,
then the last $3$ digits should be $999+1=1000$ making the number:



$9991000$



However, this is a $7$ digit number, making the initial condition false.



Where did I go wrong?









share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 21 at 14:19









Clayton

18.3k22883




18.3k22883










asked Aug 21 at 14:11









user16701

856




856







  • 1




    $1001$ is not prime.
    – Jaap Scherphuis
    Aug 21 at 14:22










  • just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
    – Ronald
    Aug 21 at 14:28













  • 1




    $1001$ is not prime.
    – Jaap Scherphuis
    Aug 21 at 14:22










  • just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
    – Ronald
    Aug 21 at 14:28








1




1




$1001$ is not prime.
– Jaap Scherphuis
Aug 21 at 14:22




$1001$ is not prime.
– Jaap Scherphuis
Aug 21 at 14:22












just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
– Ronald
Aug 21 at 14:28





just for your information: Answer 1: $n = 184$, $m = 183$, $i = 428$, $q = 183184$ Answer 2: $n = 329$, $m = 328$, $i = 573$, $q = 328329$ Answer 3: $n = 529$, $m = 528$, $i = 727$, $q = 528529$ Answer 4: $n = 716$, $m = 715$, $i = 846$, $q = 715716$ is what I've found with a tiny python script. Because I don't provide a mathematical answer, it's just a comment ($q = i^2$, $i$ runs from 300 to 999).
– Ronald
Aug 21 at 14:28











3 Answers
3






active

oldest

votes

















up vote
3
down vote













Everything is fine upto



(m+1)(m-1)=1001x


After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$



This is not true, for instance:



11*9=99=33*3, yet, we don't have 33=11 nor 9=3






share|cite|improve this answer



























    up vote
    1
    down vote













    Try looking at it this way



    $m^2-1 = 1001x$ if and only if
    $m equiv pm 1 pmod7$ ,
    $m equiv pm 1 pmod11$, and
    $m equiv pm 1 pmod13$



    beginarrayr
    n & mod 7 & mod11 & mod13 \
    hline
    11cdot 13 = 143 & 3 & 0 & 0 \
    7 cdot 13 =91 & 0 & 3 & 0 \
    7 cdot 11=77 & 0 & 0 & 12 \
    hline
    -2 cdot 143 = -286 & 1 & 0 & 0 \
    4 cdot 91 = 364 & 0 & 1 & 0 \
    -1 cdot 77 = -77 & 0 & 0 & 1 \
    hline
    endarray



    So $m equiv pm 286 pm 364 pm 77 pmod1001$



    beginarrayr
    m & m pmod1001 & m^2 \
    hline
    286 + 364 + 77 & 727 & 528529 \
    286 + 364 - 77 & 573 & 328329 \
    286 - 364 + 77 & 0 & 0 \
    286 - 364 - 77 & 846 & 715716 \
    -286 + 364 + 77 & 155 & 24025 \
    -286 + 364 - 77 & 1 & 1 \
    -286 - 364 + 77 & 428 & 183184 \
    -286 - 364 - 77 & 274 & 75076 \
    hline
    endarray






    share|cite|improve this answer



























      up vote
      0
      down vote













      Solve using Chinese remainder theorem



      as $1001=13cdot7cdot11, $



      $$mequivpm1pmod13$$



      $mequivpm1pmod7$



      $mequivpm1pmod11$



      But $mnotequivpm1pmod1001$






      share|cite|improve this answer






















      • @Fabio, Thanks for the observation
        – lab bhattacharjee
        Aug 21 at 15:23










      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: false,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      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%2f2889917%2felementary-number-theory-problem-about-finding-a-square-number-with-digits-with%23new-answer', 'question_page');

      );

      Post as a guest






























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      3
      down vote













      Everything is fine upto



      (m+1)(m-1)=1001x


      After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$



      This is not true, for instance:



      11*9=99=33*3, yet, we don't have 33=11 nor 9=3






      share|cite|improve this answer
























        up vote
        3
        down vote













        Everything is fine upto



        (m+1)(m-1)=1001x


        After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$



        This is not true, for instance:



        11*9=99=33*3, yet, we don't have 33=11 nor 9=3






        share|cite|improve this answer






















          up vote
          3
          down vote










          up vote
          3
          down vote









          Everything is fine upto



          (m+1)(m-1)=1001x


          After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$



          This is not true, for instance:



          11*9=99=33*3, yet, we don't have 33=11 nor 9=3






          share|cite|improve this answer












          Everything is fine upto



          (m+1)(m-1)=1001x


          After that, you asume that it implies $$(m+1=1001 land m-1 = x) lor (m+1=x land m-1=1001)$$



          This is not true, for instance:



          11*9=99=33*3, yet, we don't have 33=11 nor 9=3







          share|cite|improve this answer












          share|cite|improve this answer



          share|cite|improve this answer










          answered Aug 21 at 14:20









          F.Carette

          4288




          4288




















              up vote
              1
              down vote













              Try looking at it this way



              $m^2-1 = 1001x$ if and only if
              $m equiv pm 1 pmod7$ ,
              $m equiv pm 1 pmod11$, and
              $m equiv pm 1 pmod13$



              beginarrayr
              n & mod 7 & mod11 & mod13 \
              hline
              11cdot 13 = 143 & 3 & 0 & 0 \
              7 cdot 13 =91 & 0 & 3 & 0 \
              7 cdot 11=77 & 0 & 0 & 12 \
              hline
              -2 cdot 143 = -286 & 1 & 0 & 0 \
              4 cdot 91 = 364 & 0 & 1 & 0 \
              -1 cdot 77 = -77 & 0 & 0 & 1 \
              hline
              endarray



              So $m equiv pm 286 pm 364 pm 77 pmod1001$



              beginarrayr
              m & m pmod1001 & m^2 \
              hline
              286 + 364 + 77 & 727 & 528529 \
              286 + 364 - 77 & 573 & 328329 \
              286 - 364 + 77 & 0 & 0 \
              286 - 364 - 77 & 846 & 715716 \
              -286 + 364 + 77 & 155 & 24025 \
              -286 + 364 - 77 & 1 & 1 \
              -286 - 364 + 77 & 428 & 183184 \
              -286 - 364 - 77 & 274 & 75076 \
              hline
              endarray






              share|cite|improve this answer
























                up vote
                1
                down vote













                Try looking at it this way



                $m^2-1 = 1001x$ if and only if
                $m equiv pm 1 pmod7$ ,
                $m equiv pm 1 pmod11$, and
                $m equiv pm 1 pmod13$



                beginarrayr
                n & mod 7 & mod11 & mod13 \
                hline
                11cdot 13 = 143 & 3 & 0 & 0 \
                7 cdot 13 =91 & 0 & 3 & 0 \
                7 cdot 11=77 & 0 & 0 & 12 \
                hline
                -2 cdot 143 = -286 & 1 & 0 & 0 \
                4 cdot 91 = 364 & 0 & 1 & 0 \
                -1 cdot 77 = -77 & 0 & 0 & 1 \
                hline
                endarray



                So $m equiv pm 286 pm 364 pm 77 pmod1001$



                beginarrayr
                m & m pmod1001 & m^2 \
                hline
                286 + 364 + 77 & 727 & 528529 \
                286 + 364 - 77 & 573 & 328329 \
                286 - 364 + 77 & 0 & 0 \
                286 - 364 - 77 & 846 & 715716 \
                -286 + 364 + 77 & 155 & 24025 \
                -286 + 364 - 77 & 1 & 1 \
                -286 - 364 + 77 & 428 & 183184 \
                -286 - 364 - 77 & 274 & 75076 \
                hline
                endarray






                share|cite|improve this answer






















                  up vote
                  1
                  down vote










                  up vote
                  1
                  down vote









                  Try looking at it this way



                  $m^2-1 = 1001x$ if and only if
                  $m equiv pm 1 pmod7$ ,
                  $m equiv pm 1 pmod11$, and
                  $m equiv pm 1 pmod13$



                  beginarrayr
                  n & mod 7 & mod11 & mod13 \
                  hline
                  11cdot 13 = 143 & 3 & 0 & 0 \
                  7 cdot 13 =91 & 0 & 3 & 0 \
                  7 cdot 11=77 & 0 & 0 & 12 \
                  hline
                  -2 cdot 143 = -286 & 1 & 0 & 0 \
                  4 cdot 91 = 364 & 0 & 1 & 0 \
                  -1 cdot 77 = -77 & 0 & 0 & 1 \
                  hline
                  endarray



                  So $m equiv pm 286 pm 364 pm 77 pmod1001$



                  beginarrayr
                  m & m pmod1001 & m^2 \
                  hline
                  286 + 364 + 77 & 727 & 528529 \
                  286 + 364 - 77 & 573 & 328329 \
                  286 - 364 + 77 & 0 & 0 \
                  286 - 364 - 77 & 846 & 715716 \
                  -286 + 364 + 77 & 155 & 24025 \
                  -286 + 364 - 77 & 1 & 1 \
                  -286 - 364 + 77 & 428 & 183184 \
                  -286 - 364 - 77 & 274 & 75076 \
                  hline
                  endarray






                  share|cite|improve this answer












                  Try looking at it this way



                  $m^2-1 = 1001x$ if and only if
                  $m equiv pm 1 pmod7$ ,
                  $m equiv pm 1 pmod11$, and
                  $m equiv pm 1 pmod13$



                  beginarrayr
                  n & mod 7 & mod11 & mod13 \
                  hline
                  11cdot 13 = 143 & 3 & 0 & 0 \
                  7 cdot 13 =91 & 0 & 3 & 0 \
                  7 cdot 11=77 & 0 & 0 & 12 \
                  hline
                  -2 cdot 143 = -286 & 1 & 0 & 0 \
                  4 cdot 91 = 364 & 0 & 1 & 0 \
                  -1 cdot 77 = -77 & 0 & 0 & 1 \
                  hline
                  endarray



                  So $m equiv pm 286 pm 364 pm 77 pmod1001$



                  beginarrayr
                  m & m pmod1001 & m^2 \
                  hline
                  286 + 364 + 77 & 727 & 528529 \
                  286 + 364 - 77 & 573 & 328329 \
                  286 - 364 + 77 & 0 & 0 \
                  286 - 364 - 77 & 846 & 715716 \
                  -286 + 364 + 77 & 155 & 24025 \
                  -286 + 364 - 77 & 1 & 1 \
                  -286 - 364 + 77 & 428 & 183184 \
                  -286 - 364 - 77 & 274 & 75076 \
                  hline
                  endarray







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Aug 21 at 15:23









                  steven gregory

                  16.7k22155




                  16.7k22155




















                      up vote
                      0
                      down vote













                      Solve using Chinese remainder theorem



                      as $1001=13cdot7cdot11, $



                      $$mequivpm1pmod13$$



                      $mequivpm1pmod7$



                      $mequivpm1pmod11$



                      But $mnotequivpm1pmod1001$






                      share|cite|improve this answer






















                      • @Fabio, Thanks for the observation
                        – lab bhattacharjee
                        Aug 21 at 15:23














                      up vote
                      0
                      down vote













                      Solve using Chinese remainder theorem



                      as $1001=13cdot7cdot11, $



                      $$mequivpm1pmod13$$



                      $mequivpm1pmod7$



                      $mequivpm1pmod11$



                      But $mnotequivpm1pmod1001$






                      share|cite|improve this answer






















                      • @Fabio, Thanks for the observation
                        – lab bhattacharjee
                        Aug 21 at 15:23












                      up vote
                      0
                      down vote










                      up vote
                      0
                      down vote









                      Solve using Chinese remainder theorem



                      as $1001=13cdot7cdot11, $



                      $$mequivpm1pmod13$$



                      $mequivpm1pmod7$



                      $mequivpm1pmod11$



                      But $mnotequivpm1pmod1001$






                      share|cite|improve this answer














                      Solve using Chinese remainder theorem



                      as $1001=13cdot7cdot11, $



                      $$mequivpm1pmod13$$



                      $mequivpm1pmod7$



                      $mequivpm1pmod11$



                      But $mnotequivpm1pmod1001$







                      share|cite|improve this answer














                      share|cite|improve this answer



                      share|cite|improve this answer








                      edited Aug 21 at 15:23

























                      answered Aug 21 at 15:02









                      lab bhattacharjee

                      216k14152264




                      216k14152264











                      • @Fabio, Thanks for the observation
                        – lab bhattacharjee
                        Aug 21 at 15:23
















                      • @Fabio, Thanks for the observation
                        – lab bhattacharjee
                        Aug 21 at 15:23















                      @Fabio, Thanks for the observation
                      – lab bhattacharjee
                      Aug 21 at 15:23




                      @Fabio, Thanks for the observation
                      – lab bhattacharjee
                      Aug 21 at 15:23












                       

                      draft saved


                      draft discarded


























                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2889917%2felementary-number-theory-problem-about-finding-a-square-number-with-digits-with%23new-answer', 'question_page');

                      );

                      Post as a guest













































































                      這個網誌中的熱門文章

                      How to combine Bézier curves to a surface?

                      Mutual Information Always Non-negative

                      Why am i infinitely getting the same tweet with the Twitter Search API?