Consecutive integers divisible by prime powers The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Let $m$ be the least positive integer divisible by $17$ whose digits sum to $17$. Find $m$.let $n,k in mathbbN$. Show that there exist n consecutive natural numbers which are all divisible by a k-th powerNumber Theory Homework: Find 3 consecutive integers…Show that there exist 1999 consecutive numbers, each of which is divisible by the cube of an integerProve that there exist $n$ consecutive positive integers with the $i$th integer divisible by the $i$th primeThere are $n$ consecutive integers such that they are not prime powersHow can I find a prime that satisfies these two congruences?Chinese Remainder Theorem Confusionodd integers that are divisible by a perfect cubeSequence of consecutive integers

What information about me do stores get via my credit card?

Can undead you have reanimated wait inside a portable hole?

How do I add random spotting to the same face in cycles?

Problems with Ubuntu mount /tmp

If the empty set is a subset of every set, why write ... ∪ ∅?

Why not take a picture of a closer black hole?

What is special about square numbers here?

ELI5: Why do they say that Israel would have been the fourth country to land a spacecraft on the Moon and why do they call it low cost?

How does ice melt when immersed in water

Python - Fishing Simulator

The variadic template constructor of my class cannot modify my class members, why is that so?

Single author papers against my advisor's will?

Can a novice safely splice in wire to lengthen 5V charging cable?

How can I protect witches in combat who wear limited clothing?

Do working physicists consider Newtonian mechanics to be "falsified"?

Take groceries in checked luggage

What was the last x86 CPU that did not have the x87 floating-point unit built in?

Can a 1st-level character have an ability score above 18?

Hopping to infinity along a string of digits

He got a vote 80% that of Emmanuel Macron’s

Create an outline of font

Are my PIs rude or am I just being too sensitive?

I could not break this equation. Please help me

How did passengers keep warm on sail ships?



Consecutive integers divisible by prime powers



The 2019 Stack Overflow Developer Survey Results Are In
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Let $m$ be the least positive integer divisible by $17$ whose digits sum to $17$. Find $m$.let $n,k in mathbbN$. Show that there exist n consecutive natural numbers which are all divisible by a k-th powerNumber Theory Homework: Find 3 consecutive integers…Show that there exist 1999 consecutive numbers, each of which is divisible by the cube of an integerProve that there exist $n$ consecutive positive integers with the $i$th integer divisible by the $i$th primeThere are $n$ consecutive integers such that they are not prime powersHow can I find a prime that satisfies these two congruences?Chinese Remainder Theorem Confusionodd integers that are divisible by a perfect cubeSequence of consecutive integers










3












$begingroup$


There's a similar question on here already but I don't think the answers are applicable in this case.



Question: Find the smallest three consecutive integers for which the first integer is divisible by the square of a prime; the second integer by the cube of a prime; and the third integer by the fourth power of a prime.



My attempt: Let the three consecutive integers be a, b and c. Then



$aequiv 0pmodd^2$



$a+1equiv 0pmode^3$



$a+2equiv 0pmodf^4$



where $d,e,f$ are prime. This is equivalent to



$aequiv 0pmodd^2$



$aequiv -1pmode^3$



$aequiv -2pmodf^4$



Then after applying the Chinese Remainder Theorem,



$e^3f^4aequiv 1pmodd^2$



$d^2f^4aequiv 1pmode^3$



$d^2e^3aequiv 1pmodf^4$



I don't think this is getting me anywhere. Is this sort of general approach going to work or am I wasting my time?










share|cite|improve this question









$endgroup$
















    3












    $begingroup$


    There's a similar question on here already but I don't think the answers are applicable in this case.



    Question: Find the smallest three consecutive integers for which the first integer is divisible by the square of a prime; the second integer by the cube of a prime; and the third integer by the fourth power of a prime.



    My attempt: Let the three consecutive integers be a, b and c. Then



    $aequiv 0pmodd^2$



    $a+1equiv 0pmode^3$



    $a+2equiv 0pmodf^4$



    where $d,e,f$ are prime. This is equivalent to



    $aequiv 0pmodd^2$



    $aequiv -1pmode^3$



    $aequiv -2pmodf^4$



    Then after applying the Chinese Remainder Theorem,



    $e^3f^4aequiv 1pmodd^2$



    $d^2f^4aequiv 1pmode^3$



    $d^2e^3aequiv 1pmodf^4$



    I don't think this is getting me anywhere. Is this sort of general approach going to work or am I wasting my time?










    share|cite|improve this question









    $endgroup$














      3












      3








      3





      $begingroup$


      There's a similar question on here already but I don't think the answers are applicable in this case.



      Question: Find the smallest three consecutive integers for which the first integer is divisible by the square of a prime; the second integer by the cube of a prime; and the third integer by the fourth power of a prime.



      My attempt: Let the three consecutive integers be a, b and c. Then



      $aequiv 0pmodd^2$



      $a+1equiv 0pmode^3$



      $a+2equiv 0pmodf^4$



      where $d,e,f$ are prime. This is equivalent to



      $aequiv 0pmodd^2$



      $aequiv -1pmode^3$



      $aequiv -2pmodf^4$



      Then after applying the Chinese Remainder Theorem,



      $e^3f^4aequiv 1pmodd^2$



      $d^2f^4aequiv 1pmode^3$



      $d^2e^3aequiv 1pmodf^4$



      I don't think this is getting me anywhere. Is this sort of general approach going to work or am I wasting my time?










      share|cite|improve this question









      $endgroup$




      There's a similar question on here already but I don't think the answers are applicable in this case.



      Question: Find the smallest three consecutive integers for which the first integer is divisible by the square of a prime; the second integer by the cube of a prime; and the third integer by the fourth power of a prime.



      My attempt: Let the three consecutive integers be a, b and c. Then



      $aequiv 0pmodd^2$



      $a+1equiv 0pmode^3$



      $a+2equiv 0pmodf^4$



      where $d,e,f$ are prime. This is equivalent to



      $aequiv 0pmodd^2$



      $aequiv -1pmode^3$



      $aequiv -2pmodf^4$



      Then after applying the Chinese Remainder Theorem,



      $e^3f^4aequiv 1pmodd^2$



      $d^2f^4aequiv 1pmode^3$



      $d^2e^3aequiv 1pmodf^4$



      I don't think this is getting me anywhere. Is this sort of general approach going to work or am I wasting my time?







      number-theory elementary-number-theory modular-arithmetic






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Mar 25 at 6:07









      SonjovSonjov

      1328




      1328




















          3 Answers
          3






          active

          oldest

          votes


















          3












          $begingroup$

          Hint: It's a good idea to think about which primes these primes could be. For example, since you're looking for small numbers, you probably want to see what happens if you stipulate that the prime $p$ so $p^4$ divides your largest number is $2$ -- then try for $3$, $5$, etc. until you find that your result ends up being too big. I'll show you a worked example for the simpler problem of finding two consecutive numbers the first of which has a perfect square of a prime as a factor and the second of which has the perfect cube of a prime as a factor:



          Let our integers be $a$ and $a+1$. We know that either $8|a+1$ (so $2$ is our prime) or $a+1geq 27$. Let's first try the case $8|a+1$. Then we want to find a number that the perfect square of a prime divides in the sequence



          $$7, 15, 23, 31, 39, 47, 55, 63, 71...$$



          and we find that the first one occurs at $63$, so ($63,64$) is a solution. Now let's try when $27|a+1$. We get that $a$ is in



          $$26, 53, 80...$$



          and then everything above $53$ is too big, since we've already found the example $(63,64)$. Now, if our prime is any bigger than $3$, we get that $a+1geq 125$, which is going to give us something much larger than $(63,64)$, and thus $(63,64)$ is our answer.






          share|cite|improve this answer









          $endgroup$




















            1












            $begingroup$

            Hmm...



            Well, by CRT $n equiv 1 pmod p^2$



            $n equiv 0 pmod q^3$



            $n equiv-1 pmod r^4$ will have unique solutions for any the primes $p, q, r$.



            If I blanketly choose $r=2; q=3;p=5$ I will get.



            $nequiv 1 pmod 25$ and $nequiv 0 pmod 27$. $n= 27j = 1 + 25k = 1-2k + 27k$. If $k=14$ we have $j= 13$. This gives us $nequiv 351 pmod 675$.



            $n equiv 351 pmod675$ and $nequiv -1 pmod 16$ gives us



            $351+ 675mequiv -1 + 3m equiv -1 pmod16$.



            so $n = 351$ gives us $n-1 = 14*5^2; n = 13*3^2; n+1 =44*2^4$.



            Is that the least possible?



            Well $3^4< 352 <5^4$ so $r=2,3$ if we are to find any lower.



            And $7^3< 351 < 11^3$ so $q=3,5,7$ if we are to find any lower.



            And $17^2 < 351 < 19^2$ so $p = 7,11,13,17$ if we are to find any lower.



            If worse comes to worse we can solve them all.... Or we could write a program to check all numbers less than $351$.



            I doubt there is any lower but I'm not betting anything valuable on it.






            share|cite|improve this answer









            $endgroup$




















              0












              $begingroup$

              I wrote a Python code to try to find these $3$ consecutive numbers, and I searched up to $100$ million or $10^8$, and couldn't find them. So if they exist, they're definitely larger than $10^8$.



              If you want to continue the search, here is my code (it's for Python 3.7, to be exact, but it should work for Python 3.0+):



              import math

              lookup_range = 100000000

              def isPrime(a):

              if(a <= 1):
              return False

              for i in range(2,a-1):
              if a % i == 0:
              return False
              return True

              R = int(math.sqrt(lookup_range+1))+1

              primelist = [a for a in range(R) if isPrime(a)]

              for a in range(1,lookup_range+1):

              if(a % 1000000 == 0):
              print('Looked up to ' + str(a) + ', ' + str(round(100*a/lookup_range,2)) + '%')

              passedTestOne = False
              passedTestTwo = False
              passedTestThree = False

              p1 = 0
              p2 = 0
              p3 = 0

              for i in primelist:
              if(a % pow(i,2) == 0):
              passedTestOne = True
              p1 = i
              else:
              break

              for i in primelist:
              if((a+1) % pow(i,3) == 0):
              passedTestTwo = True
              p2 = i
              else:
              break

              for i in primelist:
              if((a+2) % pow(i,4) == 0):
              passedTestThree = True
              p3 = i
              else:
              break

              if(passedTestOne and passedTestTwo and passedTestThree):

              print(str(a) + ' = ' + str(p1) + '^2')
              print(str(a+1) + ' = ' + str(p2) + '^3')
              print(str(a+2) + ' = ' + str(p3) + '^4')
              break





              share|cite|improve this answer











              $endgroup$












              • $begingroup$
                An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                $endgroup$
                – Ross Millikan
                Mar 25 at 19:34











              • $begingroup$
                Why is that? I'm genuenly curious, and I want to fix my code then.
                $endgroup$
                – Daniel P
                Mar 25 at 19:35






              • 1




                $begingroup$
                By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                $endgroup$
                – Ross Millikan
                Mar 25 at 19:36











              • $begingroup$
                Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                $endgroup$
                – Daniel P
                Mar 25 at 19:42






              • 1




                $begingroup$
                I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                $endgroup$
                – Ross Millikan
                Mar 25 at 19:44











              Your Answer








              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%2f3161442%2fconsecutive-integers-divisible-by-prime-powers%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3












              $begingroup$

              Hint: It's a good idea to think about which primes these primes could be. For example, since you're looking for small numbers, you probably want to see what happens if you stipulate that the prime $p$ so $p^4$ divides your largest number is $2$ -- then try for $3$, $5$, etc. until you find that your result ends up being too big. I'll show you a worked example for the simpler problem of finding two consecutive numbers the first of which has a perfect square of a prime as a factor and the second of which has the perfect cube of a prime as a factor:



              Let our integers be $a$ and $a+1$. We know that either $8|a+1$ (so $2$ is our prime) or $a+1geq 27$. Let's first try the case $8|a+1$. Then we want to find a number that the perfect square of a prime divides in the sequence



              $$7, 15, 23, 31, 39, 47, 55, 63, 71...$$



              and we find that the first one occurs at $63$, so ($63,64$) is a solution. Now let's try when $27|a+1$. We get that $a$ is in



              $$26, 53, 80...$$



              and then everything above $53$ is too big, since we've already found the example $(63,64)$. Now, if our prime is any bigger than $3$, we get that $a+1geq 125$, which is going to give us something much larger than $(63,64)$, and thus $(63,64)$ is our answer.






              share|cite|improve this answer









              $endgroup$

















                3












                $begingroup$

                Hint: It's a good idea to think about which primes these primes could be. For example, since you're looking for small numbers, you probably want to see what happens if you stipulate that the prime $p$ so $p^4$ divides your largest number is $2$ -- then try for $3$, $5$, etc. until you find that your result ends up being too big. I'll show you a worked example for the simpler problem of finding two consecutive numbers the first of which has a perfect square of a prime as a factor and the second of which has the perfect cube of a prime as a factor:



                Let our integers be $a$ and $a+1$. We know that either $8|a+1$ (so $2$ is our prime) or $a+1geq 27$. Let's first try the case $8|a+1$. Then we want to find a number that the perfect square of a prime divides in the sequence



                $$7, 15, 23, 31, 39, 47, 55, 63, 71...$$



                and we find that the first one occurs at $63$, so ($63,64$) is a solution. Now let's try when $27|a+1$. We get that $a$ is in



                $$26, 53, 80...$$



                and then everything above $53$ is too big, since we've already found the example $(63,64)$. Now, if our prime is any bigger than $3$, we get that $a+1geq 125$, which is going to give us something much larger than $(63,64)$, and thus $(63,64)$ is our answer.






                share|cite|improve this answer









                $endgroup$















                  3












                  3








                  3





                  $begingroup$

                  Hint: It's a good idea to think about which primes these primes could be. For example, since you're looking for small numbers, you probably want to see what happens if you stipulate that the prime $p$ so $p^4$ divides your largest number is $2$ -- then try for $3$, $5$, etc. until you find that your result ends up being too big. I'll show you a worked example for the simpler problem of finding two consecutive numbers the first of which has a perfect square of a prime as a factor and the second of which has the perfect cube of a prime as a factor:



                  Let our integers be $a$ and $a+1$. We know that either $8|a+1$ (so $2$ is our prime) or $a+1geq 27$. Let's first try the case $8|a+1$. Then we want to find a number that the perfect square of a prime divides in the sequence



                  $$7, 15, 23, 31, 39, 47, 55, 63, 71...$$



                  and we find that the first one occurs at $63$, so ($63,64$) is a solution. Now let's try when $27|a+1$. We get that $a$ is in



                  $$26, 53, 80...$$



                  and then everything above $53$ is too big, since we've already found the example $(63,64)$. Now, if our prime is any bigger than $3$, we get that $a+1geq 125$, which is going to give us something much larger than $(63,64)$, and thus $(63,64)$ is our answer.






                  share|cite|improve this answer









                  $endgroup$



                  Hint: It's a good idea to think about which primes these primes could be. For example, since you're looking for small numbers, you probably want to see what happens if you stipulate that the prime $p$ so $p^4$ divides your largest number is $2$ -- then try for $3$, $5$, etc. until you find that your result ends up being too big. I'll show you a worked example for the simpler problem of finding two consecutive numbers the first of which has a perfect square of a prime as a factor and the second of which has the perfect cube of a prime as a factor:



                  Let our integers be $a$ and $a+1$. We know that either $8|a+1$ (so $2$ is our prime) or $a+1geq 27$. Let's first try the case $8|a+1$. Then we want to find a number that the perfect square of a prime divides in the sequence



                  $$7, 15, 23, 31, 39, 47, 55, 63, 71...$$



                  and we find that the first one occurs at $63$, so ($63,64$) is a solution. Now let's try when $27|a+1$. We get that $a$ is in



                  $$26, 53, 80...$$



                  and then everything above $53$ is too big, since we've already found the example $(63,64)$. Now, if our prime is any bigger than $3$, we get that $a+1geq 125$, which is going to give us something much larger than $(63,64)$, and thus $(63,64)$ is our answer.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Mar 25 at 6:45









                  Carl SchildkrautCarl Schildkraut

                  11.9k11444




                  11.9k11444





















                      1












                      $begingroup$

                      Hmm...



                      Well, by CRT $n equiv 1 pmod p^2$



                      $n equiv 0 pmod q^3$



                      $n equiv-1 pmod r^4$ will have unique solutions for any the primes $p, q, r$.



                      If I blanketly choose $r=2; q=3;p=5$ I will get.



                      $nequiv 1 pmod 25$ and $nequiv 0 pmod 27$. $n= 27j = 1 + 25k = 1-2k + 27k$. If $k=14$ we have $j= 13$. This gives us $nequiv 351 pmod 675$.



                      $n equiv 351 pmod675$ and $nequiv -1 pmod 16$ gives us



                      $351+ 675mequiv -1 + 3m equiv -1 pmod16$.



                      so $n = 351$ gives us $n-1 = 14*5^2; n = 13*3^2; n+1 =44*2^4$.



                      Is that the least possible?



                      Well $3^4< 352 <5^4$ so $r=2,3$ if we are to find any lower.



                      And $7^3< 351 < 11^3$ so $q=3,5,7$ if we are to find any lower.



                      And $17^2 < 351 < 19^2$ so $p = 7,11,13,17$ if we are to find any lower.



                      If worse comes to worse we can solve them all.... Or we could write a program to check all numbers less than $351$.



                      I doubt there is any lower but I'm not betting anything valuable on it.






                      share|cite|improve this answer









                      $endgroup$

















                        1












                        $begingroup$

                        Hmm...



                        Well, by CRT $n equiv 1 pmod p^2$



                        $n equiv 0 pmod q^3$



                        $n equiv-1 pmod r^4$ will have unique solutions for any the primes $p, q, r$.



                        If I blanketly choose $r=2; q=3;p=5$ I will get.



                        $nequiv 1 pmod 25$ and $nequiv 0 pmod 27$. $n= 27j = 1 + 25k = 1-2k + 27k$. If $k=14$ we have $j= 13$. This gives us $nequiv 351 pmod 675$.



                        $n equiv 351 pmod675$ and $nequiv -1 pmod 16$ gives us



                        $351+ 675mequiv -1 + 3m equiv -1 pmod16$.



                        so $n = 351$ gives us $n-1 = 14*5^2; n = 13*3^2; n+1 =44*2^4$.



                        Is that the least possible?



                        Well $3^4< 352 <5^4$ so $r=2,3$ if we are to find any lower.



                        And $7^3< 351 < 11^3$ so $q=3,5,7$ if we are to find any lower.



                        And $17^2 < 351 < 19^2$ so $p = 7,11,13,17$ if we are to find any lower.



                        If worse comes to worse we can solve them all.... Or we could write a program to check all numbers less than $351$.



                        I doubt there is any lower but I'm not betting anything valuable on it.






                        share|cite|improve this answer









                        $endgroup$















                          1












                          1








                          1





                          $begingroup$

                          Hmm...



                          Well, by CRT $n equiv 1 pmod p^2$



                          $n equiv 0 pmod q^3$



                          $n equiv-1 pmod r^4$ will have unique solutions for any the primes $p, q, r$.



                          If I blanketly choose $r=2; q=3;p=5$ I will get.



                          $nequiv 1 pmod 25$ and $nequiv 0 pmod 27$. $n= 27j = 1 + 25k = 1-2k + 27k$. If $k=14$ we have $j= 13$. This gives us $nequiv 351 pmod 675$.



                          $n equiv 351 pmod675$ and $nequiv -1 pmod 16$ gives us



                          $351+ 675mequiv -1 + 3m equiv -1 pmod16$.



                          so $n = 351$ gives us $n-1 = 14*5^2; n = 13*3^2; n+1 =44*2^4$.



                          Is that the least possible?



                          Well $3^4< 352 <5^4$ so $r=2,3$ if we are to find any lower.



                          And $7^3< 351 < 11^3$ so $q=3,5,7$ if we are to find any lower.



                          And $17^2 < 351 < 19^2$ so $p = 7,11,13,17$ if we are to find any lower.



                          If worse comes to worse we can solve them all.... Or we could write a program to check all numbers less than $351$.



                          I doubt there is any lower but I'm not betting anything valuable on it.






                          share|cite|improve this answer









                          $endgroup$



                          Hmm...



                          Well, by CRT $n equiv 1 pmod p^2$



                          $n equiv 0 pmod q^3$



                          $n equiv-1 pmod r^4$ will have unique solutions for any the primes $p, q, r$.



                          If I blanketly choose $r=2; q=3;p=5$ I will get.



                          $nequiv 1 pmod 25$ and $nequiv 0 pmod 27$. $n= 27j = 1 + 25k = 1-2k + 27k$. If $k=14$ we have $j= 13$. This gives us $nequiv 351 pmod 675$.



                          $n equiv 351 pmod675$ and $nequiv -1 pmod 16$ gives us



                          $351+ 675mequiv -1 + 3m equiv -1 pmod16$.



                          so $n = 351$ gives us $n-1 = 14*5^2; n = 13*3^2; n+1 =44*2^4$.



                          Is that the least possible?



                          Well $3^4< 352 <5^4$ so $r=2,3$ if we are to find any lower.



                          And $7^3< 351 < 11^3$ so $q=3,5,7$ if we are to find any lower.



                          And $17^2 < 351 < 19^2$ so $p = 7,11,13,17$ if we are to find any lower.



                          If worse comes to worse we can solve them all.... Or we could write a program to check all numbers less than $351$.



                          I doubt there is any lower but I'm not betting anything valuable on it.







                          share|cite|improve this answer












                          share|cite|improve this answer



                          share|cite|improve this answer










                          answered Mar 25 at 20:07









                          fleabloodfleablood

                          1




                          1





















                              0












                              $begingroup$

                              I wrote a Python code to try to find these $3$ consecutive numbers, and I searched up to $100$ million or $10^8$, and couldn't find them. So if they exist, they're definitely larger than $10^8$.



                              If you want to continue the search, here is my code (it's for Python 3.7, to be exact, but it should work for Python 3.0+):



                              import math

                              lookup_range = 100000000

                              def isPrime(a):

                              if(a <= 1):
                              return False

                              for i in range(2,a-1):
                              if a % i == 0:
                              return False
                              return True

                              R = int(math.sqrt(lookup_range+1))+1

                              primelist = [a for a in range(R) if isPrime(a)]

                              for a in range(1,lookup_range+1):

                              if(a % 1000000 == 0):
                              print('Looked up to ' + str(a) + ', ' + str(round(100*a/lookup_range,2)) + '%')

                              passedTestOne = False
                              passedTestTwo = False
                              passedTestThree = False

                              p1 = 0
                              p2 = 0
                              p3 = 0

                              for i in primelist:
                              if(a % pow(i,2) == 0):
                              passedTestOne = True
                              p1 = i
                              else:
                              break

                              for i in primelist:
                              if((a+1) % pow(i,3) == 0):
                              passedTestTwo = True
                              p2 = i
                              else:
                              break

                              for i in primelist:
                              if((a+2) % pow(i,4) == 0):
                              passedTestThree = True
                              p3 = i
                              else:
                              break

                              if(passedTestOne and passedTestTwo and passedTestThree):

                              print(str(a) + ' = ' + str(p1) + '^2')
                              print(str(a+1) + ' = ' + str(p2) + '^3')
                              print(str(a+2) + ' = ' + str(p3) + '^4')
                              break





                              share|cite|improve this answer











                              $endgroup$












                              • $begingroup$
                                An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:34











                              • $begingroup$
                                Why is that? I'm genuenly curious, and I want to fix my code then.
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:35






                              • 1




                                $begingroup$
                                By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:36











                              • $begingroup$
                                Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:42






                              • 1




                                $begingroup$
                                I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:44















                              0












                              $begingroup$

                              I wrote a Python code to try to find these $3$ consecutive numbers, and I searched up to $100$ million or $10^8$, and couldn't find them. So if they exist, they're definitely larger than $10^8$.



                              If you want to continue the search, here is my code (it's for Python 3.7, to be exact, but it should work for Python 3.0+):



                              import math

                              lookup_range = 100000000

                              def isPrime(a):

                              if(a <= 1):
                              return False

                              for i in range(2,a-1):
                              if a % i == 0:
                              return False
                              return True

                              R = int(math.sqrt(lookup_range+1))+1

                              primelist = [a for a in range(R) if isPrime(a)]

                              for a in range(1,lookup_range+1):

                              if(a % 1000000 == 0):
                              print('Looked up to ' + str(a) + ', ' + str(round(100*a/lookup_range,2)) + '%')

                              passedTestOne = False
                              passedTestTwo = False
                              passedTestThree = False

                              p1 = 0
                              p2 = 0
                              p3 = 0

                              for i in primelist:
                              if(a % pow(i,2) == 0):
                              passedTestOne = True
                              p1 = i
                              else:
                              break

                              for i in primelist:
                              if((a+1) % pow(i,3) == 0):
                              passedTestTwo = True
                              p2 = i
                              else:
                              break

                              for i in primelist:
                              if((a+2) % pow(i,4) == 0):
                              passedTestThree = True
                              p3 = i
                              else:
                              break

                              if(passedTestOne and passedTestTwo and passedTestThree):

                              print(str(a) + ' = ' + str(p1) + '^2')
                              print(str(a+1) + ' = ' + str(p2) + '^3')
                              print(str(a+2) + ' = ' + str(p3) + '^4')
                              break





                              share|cite|improve this answer











                              $endgroup$












                              • $begingroup$
                                An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:34











                              • $begingroup$
                                Why is that? I'm genuenly curious, and I want to fix my code then.
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:35






                              • 1




                                $begingroup$
                                By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:36











                              • $begingroup$
                                Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:42






                              • 1




                                $begingroup$
                                I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:44













                              0












                              0








                              0





                              $begingroup$

                              I wrote a Python code to try to find these $3$ consecutive numbers, and I searched up to $100$ million or $10^8$, and couldn't find them. So if they exist, they're definitely larger than $10^8$.



                              If you want to continue the search, here is my code (it's for Python 3.7, to be exact, but it should work for Python 3.0+):



                              import math

                              lookup_range = 100000000

                              def isPrime(a):

                              if(a <= 1):
                              return False

                              for i in range(2,a-1):
                              if a % i == 0:
                              return False
                              return True

                              R = int(math.sqrt(lookup_range+1))+1

                              primelist = [a for a in range(R) if isPrime(a)]

                              for a in range(1,lookup_range+1):

                              if(a % 1000000 == 0):
                              print('Looked up to ' + str(a) + ', ' + str(round(100*a/lookup_range,2)) + '%')

                              passedTestOne = False
                              passedTestTwo = False
                              passedTestThree = False

                              p1 = 0
                              p2 = 0
                              p3 = 0

                              for i in primelist:
                              if(a % pow(i,2) == 0):
                              passedTestOne = True
                              p1 = i
                              else:
                              break

                              for i in primelist:
                              if((a+1) % pow(i,3) == 0):
                              passedTestTwo = True
                              p2 = i
                              else:
                              break

                              for i in primelist:
                              if((a+2) % pow(i,4) == 0):
                              passedTestThree = True
                              p3 = i
                              else:
                              break

                              if(passedTestOne and passedTestTwo and passedTestThree):

                              print(str(a) + ' = ' + str(p1) + '^2')
                              print(str(a+1) + ' = ' + str(p2) + '^3')
                              print(str(a+2) + ' = ' + str(p3) + '^4')
                              break





                              share|cite|improve this answer











                              $endgroup$



                              I wrote a Python code to try to find these $3$ consecutive numbers, and I searched up to $100$ million or $10^8$, and couldn't find them. So if they exist, they're definitely larger than $10^8$.



                              If you want to continue the search, here is my code (it's for Python 3.7, to be exact, but it should work for Python 3.0+):



                              import math

                              lookup_range = 100000000

                              def isPrime(a):

                              if(a <= 1):
                              return False

                              for i in range(2,a-1):
                              if a % i == 0:
                              return False
                              return True

                              R = int(math.sqrt(lookup_range+1))+1

                              primelist = [a for a in range(R) if isPrime(a)]

                              for a in range(1,lookup_range+1):

                              if(a % 1000000 == 0):
                              print('Looked up to ' + str(a) + ', ' + str(round(100*a/lookup_range,2)) + '%')

                              passedTestOne = False
                              passedTestTwo = False
                              passedTestThree = False

                              p1 = 0
                              p2 = 0
                              p3 = 0

                              for i in primelist:
                              if(a % pow(i,2) == 0):
                              passedTestOne = True
                              p1 = i
                              else:
                              break

                              for i in primelist:
                              if((a+1) % pow(i,3) == 0):
                              passedTestTwo = True
                              p2 = i
                              else:
                              break

                              for i in primelist:
                              if((a+2) % pow(i,4) == 0):
                              passedTestThree = True
                              p3 = i
                              else:
                              break

                              if(passedTestOne and passedTestTwo and passedTestThree):

                              print(str(a) + ' = ' + str(p1) + '^2')
                              print(str(a+1) + ' = ' + str(p2) + '^3')
                              print(str(a+2) + ' = ' + str(p3) + '^4')
                              break






                              share|cite|improve this answer














                              share|cite|improve this answer



                              share|cite|improve this answer








                              edited Mar 25 at 19:46

























                              answered Mar 25 at 19:26









                              Daniel PDaniel P

                              69714




                              69714











                              • $begingroup$
                                An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:34











                              • $begingroup$
                                Why is that? I'm genuenly curious, and I want to fix my code then.
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:35






                              • 1




                                $begingroup$
                                By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:36











                              • $begingroup$
                                Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:42






                              • 1




                                $begingroup$
                                I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:44
















                              • $begingroup$
                                An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:34











                              • $begingroup$
                                Why is that? I'm genuenly curious, and I want to fix my code then.
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:35






                              • 1




                                $begingroup$
                                By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:36











                              • $begingroup$
                                Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                                $endgroup$
                                – Daniel P
                                Mar 25 at 19:42






                              • 1




                                $begingroup$
                                I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                                $endgroup$
                                – Ross Millikan
                                Mar 25 at 19:44















                              $begingroup$
                              An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                              $endgroup$
                              – Ross Millikan
                              Mar 25 at 19:34





                              $begingroup$
                              An upper bound for the smallest solution is $2^43^35^2=10800$, so there is something wrong with your code.
                              $endgroup$
                              – Ross Millikan
                              Mar 25 at 19:34













                              $begingroup$
                              Why is that? I'm genuenly curious, and I want to fix my code then.
                              $endgroup$
                              – Daniel P
                              Mar 25 at 19:35




                              $begingroup$
                              Why is that? I'm genuenly curious, and I want to fix my code then.
                              $endgroup$
                              – Daniel P
                              Mar 25 at 19:35




                              1




                              1




                              $begingroup$
                              By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                              $endgroup$
                              – Ross Millikan
                              Mar 25 at 19:36





                              $begingroup$
                              By the Chinese Remainder Theorem the solutions to any set of equations $bmod 16, bmod 27, bmod 25$ recur every $10800$, so there will be one in the range $[0,10799]$ There might be a smaller one from permuting the primes, but we are guaranteed one this way. This is in the spirit of Carl Schildkraut's answer
                              $endgroup$
                              – Ross Millikan
                              Mar 25 at 19:36













                              $begingroup$
                              Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                              $endgroup$
                              – Daniel P
                              Mar 25 at 19:42




                              $begingroup$
                              Where does $bmod 16, bmod 27$ and $bmod 25$ come from? It seems from the problem that there is no upper bound to the primes $d, e, f$. Sorry to ask, but I still can't see why. :(
                              $endgroup$
                              – Daniel P
                              Mar 25 at 19:42




                              1




                              1




                              $begingroup$
                              I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                              $endgroup$
                              – Ross Millikan
                              Mar 25 at 19:44




                              $begingroup$
                              I just chose $2$ to be the prime to a fourth power, $3$ to be the prime to be a third power, and $5$ to be the square. That keeps the moduli as small as possible. It doesn't prove that there is no smaller solution but it gives us a hard upper bound. A little hand playing finds the solution is much smaller than $10800$ and I would be surprised if there were one any smaller.
                              $endgroup$
                              – Ross Millikan
                              Mar 25 at 19:44

















                              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%2f3161442%2fconsecutive-integers-divisible-by-prime-powers%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

                              Moe incest case Sentencing See also References Navigation menu"'Australian Josef Fritzl' fathered four children by daughter""Small town recoils in horror at 'Australian Fritzl' incest case""Victorian rape allegations echo Fritzl case - Just In (Australian Broadcasting Corporation)""Incest father jailed for 22 years""'Australian Fritzl' sentenced to 22 years in prison for abusing daughter for three decades""RSJ v The Queen"

                              Who is our nearest planetary neighbor, on average?Santa Claus flies to the South PoleSeven Spheres of Unequal Mass, a weighing problem with a twistDescribe a large integerFast Mental Calculation of $7.5^7$Math in Space (without the help of celebrities)Find the value of $bigstar$: Puzzle 8 - InequalityWho drinks beer while running anyway?A Crucial DeliveryRanking And AverageHow long will my money last at roulette?

                              Daza language Contents Vocabulary Phonology References External links Navigation menudaza1242Daza"Dazaga"eeee178086576