How to calculate the lowest common term in two offset sequences? The 2019 Stack Overflow Developer Survey Results Are InAre there unique solutions for $n=sum_j=1^g(k) a_j^k$?Sequences not strictly increasing.A term of the sequenceUnderstanding two “triangular” sequencesIf we know that a positive integer x can be represented as sum of squares of two numbers, what can we say about neighbours of x?If each $A_n$ is a set of sequences of natural numbers, how is $A=prod A_n$ to be viewed?How to calculate the nth term of sequence that increases by n?Way of finding remaining numbers of a list uniquelyAsymptotic Density vs a Partition of Natural NumbersHow to find explicit solution for recursive sequences with nonlinear terms?

Match Roman Numerals

Why doesn't UInt have a toDouble()?

Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?

What is this sharp, curved notch on my knife for?

Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?

Accepted by European university, rejected by all American ones I applied to? Possible reasons?

Is it ok to offer lower paid work as a trial period before negotiating for a full-time job?

A word that means fill it to the required quantity

For what reasons would an animal species NOT cross a *horizontal* land bridge?

Keeping a retro style to sci-fi spaceships?

How can I have a shield and a way of attacking with a ranged weapon at the same time?

"as much details as you can remember"

How to notate time signature switching consistently every measure

How to display lines in a file like ls displays files in a directory?

Likelihood that a superbug or lethal virus could come from a landfill

Straighten subgroup lattice

Did any laptop computers have a built-in 5 1/4 inch floppy drive?

Can there be female White Walkers?

Time travel alters history but people keep saying nothing's changed

Deal with toxic manager when you can't quit

Pokemon Turn Based battle (Python)

Will it cause any balance problems to have PCs level up and gain the benefits of a long rest mid-fight?

What is the meaning of Triage in Cybersec world?

Why does the nucleus not repel itself?



How to calculate the lowest common term in two offset sequences?



The 2019 Stack Overflow Developer Survey Results Are InAre there unique solutions for $n=sum_j=1^g(k) a_j^k$?Sequences not strictly increasing.A term of the sequenceUnderstanding two “triangular” sequencesIf we know that a positive integer x can be represented as sum of squares of two numbers, what can we say about neighbours of x?If each $A_n$ is a set of sequences of natural numbers, how is $A=prod A_n$ to be viewed?How to calculate the nth term of sequence that increases by n?Way of finding remaining numbers of a list uniquelyAsymptotic Density vs a Partition of Natural NumbersHow to find explicit solution for recursive sequences with nonlinear terms?










0












$begingroup$


Let $a$ be a sequence of the squares for all natural numbers.



So: $a = 0^2, 1^2, 2^2, 3^2, 4^2,5^2,... = 0, 1, 4, 9,16,25,...$



Is there a way to find out when the equation below will be true without checking each of the terms?



$x + a_i = a_j$



where $x,i,j in mathbbN $



For example:

Let $x = 23$, then:
$23 + 121 = 144$

so $i=11$ and $j=12$



Edit: To clarify I would like to calculate $i$ and $j$ from $x$.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    Odd numbers can be made easily by $(n+1)^2-n^2=2n+1$
    $endgroup$
    – Sil
    Mar 30 at 23:02






  • 1




    $begingroup$
    $x$ can be any natural number which is not $2$ more than a multiple of $4$
    $endgroup$
    – Henry
    Mar 30 at 23:12















0












$begingroup$


Let $a$ be a sequence of the squares for all natural numbers.



So: $a = 0^2, 1^2, 2^2, 3^2, 4^2,5^2,... = 0, 1, 4, 9,16,25,...$



Is there a way to find out when the equation below will be true without checking each of the terms?



$x + a_i = a_j$



where $x,i,j in mathbbN $



For example:

Let $x = 23$, then:
$23 + 121 = 144$

so $i=11$ and $j=12$



Edit: To clarify I would like to calculate $i$ and $j$ from $x$.










share|cite|improve this question











$endgroup$







  • 1




    $begingroup$
    Odd numbers can be made easily by $(n+1)^2-n^2=2n+1$
    $endgroup$
    – Sil
    Mar 30 at 23:02






  • 1




    $begingroup$
    $x$ can be any natural number which is not $2$ more than a multiple of $4$
    $endgroup$
    – Henry
    Mar 30 at 23:12













0












0








0





$begingroup$


Let $a$ be a sequence of the squares for all natural numbers.



So: $a = 0^2, 1^2, 2^2, 3^2, 4^2,5^2,... = 0, 1, 4, 9,16,25,...$



Is there a way to find out when the equation below will be true without checking each of the terms?



$x + a_i = a_j$



where $x,i,j in mathbbN $



For example:

Let $x = 23$, then:
$23 + 121 = 144$

so $i=11$ and $j=12$



Edit: To clarify I would like to calculate $i$ and $j$ from $x$.










share|cite|improve this question











$endgroup$




Let $a$ be a sequence of the squares for all natural numbers.



So: $a = 0^2, 1^2, 2^2, 3^2, 4^2,5^2,... = 0, 1, 4, 9,16,25,...$



Is there a way to find out when the equation below will be true without checking each of the terms?



$x + a_i = a_j$



where $x,i,j in mathbbN $



For example:

Let $x = 23$, then:
$23 + 121 = 144$

so $i=11$ and $j=12$



Edit: To clarify I would like to calculate $i$ and $j$ from $x$.







sequences-and-series number-theory






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Apr 2 at 17:05







Mateusz Michalak-Palarz

















asked Mar 30 at 22:55









Mateusz Michalak-PalarzMateusz Michalak-Palarz

11




11







  • 1




    $begingroup$
    Odd numbers can be made easily by $(n+1)^2-n^2=2n+1$
    $endgroup$
    – Sil
    Mar 30 at 23:02






  • 1




    $begingroup$
    $x$ can be any natural number which is not $2$ more than a multiple of $4$
    $endgroup$
    – Henry
    Mar 30 at 23:12












  • 1




    $begingroup$
    Odd numbers can be made easily by $(n+1)^2-n^2=2n+1$
    $endgroup$
    – Sil
    Mar 30 at 23:02






  • 1




    $begingroup$
    $x$ can be any natural number which is not $2$ more than a multiple of $4$
    $endgroup$
    – Henry
    Mar 30 at 23:12







1




1




$begingroup$
Odd numbers can be made easily by $(n+1)^2-n^2=2n+1$
$endgroup$
– Sil
Mar 30 at 23:02




$begingroup$
Odd numbers can be made easily by $(n+1)^2-n^2=2n+1$
$endgroup$
– Sil
Mar 30 at 23:02




1




1




$begingroup$
$x$ can be any natural number which is not $2$ more than a multiple of $4$
$endgroup$
– Henry
Mar 30 at 23:12




$begingroup$
$x$ can be any natural number which is not $2$ more than a multiple of $4$
$endgroup$
– Henry
Mar 30 at 23:12










2 Answers
2






active

oldest

votes


















1












$begingroup$

For any $x$, consider all the factorisations of $x$ as $y times z$ where $y$ and $z$ have the same parity, i.e. both even or both odd, and $y ge z$; this will be possible if and only if $x$ is not $2$ more than a multiple of $4$



Then since $left(fracy+z2right)^2 - left(fracy-z2right)^2 = yz$ we have $x + left(fracy-z2right)^2 = left(fracy+z2right)^2$



In your example, with $x=23$ we only have $23times 1$ giving $23 + left(frac23-12right)^2 = left(frac23+12right)^2$



For another example, if $x=45$ then we have $45 times 1 = 15 times 3 = 9 times 5$ so we get:



  • $45 + 22^2 = 23^2$

  • $45 + 6^2 = 9^2$

  • $45 + 2^2 = 7^2$

You want $i=left(fracy-z2right)^2$ and $j=left(fracy+z2right)^2$






share|cite|improve this answer











$endgroup$




















    0












    $begingroup$

    You can look for a pattern, in fact, letting $i=n, j=n+1$ and $x=2n+1$ yields:
    $$a_n+2n+1=a_n+1$$
    This can easily be confirmed by letting $a_n=n^2$, indeed $n^2+2n+1=(n^2+1)^2$.






    share|cite|improve this answer









    $endgroup$













      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%2f3168860%2fhow-to-calculate-the-lowest-common-term-in-two-offset-sequences%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












      $begingroup$

      For any $x$, consider all the factorisations of $x$ as $y times z$ where $y$ and $z$ have the same parity, i.e. both even or both odd, and $y ge z$; this will be possible if and only if $x$ is not $2$ more than a multiple of $4$



      Then since $left(fracy+z2right)^2 - left(fracy-z2right)^2 = yz$ we have $x + left(fracy-z2right)^2 = left(fracy+z2right)^2$



      In your example, with $x=23$ we only have $23times 1$ giving $23 + left(frac23-12right)^2 = left(frac23+12right)^2$



      For another example, if $x=45$ then we have $45 times 1 = 15 times 3 = 9 times 5$ so we get:



      • $45 + 22^2 = 23^2$

      • $45 + 6^2 = 9^2$

      • $45 + 2^2 = 7^2$

      You want $i=left(fracy-z2right)^2$ and $j=left(fracy+z2right)^2$






      share|cite|improve this answer











      $endgroup$

















        1












        $begingroup$

        For any $x$, consider all the factorisations of $x$ as $y times z$ where $y$ and $z$ have the same parity, i.e. both even or both odd, and $y ge z$; this will be possible if and only if $x$ is not $2$ more than a multiple of $4$



        Then since $left(fracy+z2right)^2 - left(fracy-z2right)^2 = yz$ we have $x + left(fracy-z2right)^2 = left(fracy+z2right)^2$



        In your example, with $x=23$ we only have $23times 1$ giving $23 + left(frac23-12right)^2 = left(frac23+12right)^2$



        For another example, if $x=45$ then we have $45 times 1 = 15 times 3 = 9 times 5$ so we get:



        • $45 + 22^2 = 23^2$

        • $45 + 6^2 = 9^2$

        • $45 + 2^2 = 7^2$

        You want $i=left(fracy-z2right)^2$ and $j=left(fracy+z2right)^2$






        share|cite|improve this answer











        $endgroup$















          1












          1








          1





          $begingroup$

          For any $x$, consider all the factorisations of $x$ as $y times z$ where $y$ and $z$ have the same parity, i.e. both even or both odd, and $y ge z$; this will be possible if and only if $x$ is not $2$ more than a multiple of $4$



          Then since $left(fracy+z2right)^2 - left(fracy-z2right)^2 = yz$ we have $x + left(fracy-z2right)^2 = left(fracy+z2right)^2$



          In your example, with $x=23$ we only have $23times 1$ giving $23 + left(frac23-12right)^2 = left(frac23+12right)^2$



          For another example, if $x=45$ then we have $45 times 1 = 15 times 3 = 9 times 5$ so we get:



          • $45 + 22^2 = 23^2$

          • $45 + 6^2 = 9^2$

          • $45 + 2^2 = 7^2$

          You want $i=left(fracy-z2right)^2$ and $j=left(fracy+z2right)^2$






          share|cite|improve this answer











          $endgroup$



          For any $x$, consider all the factorisations of $x$ as $y times z$ where $y$ and $z$ have the same parity, i.e. both even or both odd, and $y ge z$; this will be possible if and only if $x$ is not $2$ more than a multiple of $4$



          Then since $left(fracy+z2right)^2 - left(fracy-z2right)^2 = yz$ we have $x + left(fracy-z2right)^2 = left(fracy+z2right)^2$



          In your example, with $x=23$ we only have $23times 1$ giving $23 + left(frac23-12right)^2 = left(frac23+12right)^2$



          For another example, if $x=45$ then we have $45 times 1 = 15 times 3 = 9 times 5$ so we get:



          • $45 + 22^2 = 23^2$

          • $45 + 6^2 = 9^2$

          • $45 + 2^2 = 7^2$

          You want $i=left(fracy-z2right)^2$ and $j=left(fracy+z2right)^2$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Mar 30 at 23:26

























          answered Mar 30 at 23:21









          HenryHenry

          101k482170




          101k482170





















              0












              $begingroup$

              You can look for a pattern, in fact, letting $i=n, j=n+1$ and $x=2n+1$ yields:
              $$a_n+2n+1=a_n+1$$
              This can easily be confirmed by letting $a_n=n^2$, indeed $n^2+2n+1=(n^2+1)^2$.






              share|cite|improve this answer









              $endgroup$

















                0












                $begingroup$

                You can look for a pattern, in fact, letting $i=n, j=n+1$ and $x=2n+1$ yields:
                $$a_n+2n+1=a_n+1$$
                This can easily be confirmed by letting $a_n=n^2$, indeed $n^2+2n+1=(n^2+1)^2$.






                share|cite|improve this answer









                $endgroup$















                  0












                  0








                  0





                  $begingroup$

                  You can look for a pattern, in fact, letting $i=n, j=n+1$ and $x=2n+1$ yields:
                  $$a_n+2n+1=a_n+1$$
                  This can easily be confirmed by letting $a_n=n^2$, indeed $n^2+2n+1=(n^2+1)^2$.






                  share|cite|improve this answer









                  $endgroup$



                  You can look for a pattern, in fact, letting $i=n, j=n+1$ and $x=2n+1$ yields:
                  $$a_n+2n+1=a_n+1$$
                  This can easily be confirmed by letting $a_n=n^2$, indeed $n^2+2n+1=(n^2+1)^2$.







                  share|cite|improve this answer












                  share|cite|improve this answer



                  share|cite|improve this answer










                  answered Mar 30 at 23:24









                  Arsene1412Arsene1412

                  114




                  114



























                      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%2f3168860%2fhow-to-calculate-the-lowest-common-term-in-two-offset-sequences%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

                      Triangular numbers and gcdProving sum of a set is $0 pmod n$ if $n$ is odd, or $fracn2 pmod n$ if $n$ is even?Is greatest common divisor of two numbers really their smallest linear combination?GCD, LCM RelationshipProve a set of nonnegative integers with greatest common divisor 1 and closed under addition has all but finite many nonnegative integers.all pairs of a and b in an equation containing gcdTriangular Numbers Modulo $k$ - Hit All Values?Understanding the Existence and Uniqueness of the GCDGCD and LCM with logical symbolsThe greatest common divisor of two positive integers less than 100 is equal to 3. Their least common multiple is twelve times one of the integers.Suppose that for all integers $x$, $x|a$ and $x|b$ if and only if $x|c$. Then $c = gcd(a,b)$Which is the gcd of 2 numbers which are multiplied and the result is 600000?

                      Ingelân Ynhâld Etymology | Geografy | Skiednis | Polityk en bestjoer | Ekonomy | Demografy | Kultuer | Klimaat | Sjoch ek | Keppelings om utens | Boarnen, noaten en referinsjes Navigaasjemenuwww.gov.ukOffisjele webside fan it regear fan it Feriene KeninkrykOffisjele webside fan it Britske FerkearsburoNederlânsktalige ynformaasje fan it Britske FerkearsburoOffisjele webside fan English Heritage, de organisaasje dy't him ynset foar it behâld fan it Ingelske kultuergoedYnwennertallen fan alle Britske stêden út 'e folkstelling fan 2011Notes en References, op dizze sideEngland

                      Հադիս Բովանդակություն Անվանում և նշանակություն | Դասակարգում | Աղբյուրներ | Նավարկման ցանկ