What was Ramanujan's solution? 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)Find the number of the houseHow can this problem be solved using continued fractions?Direct proof that for a prime $p$ if $pequiv 1 bmod 4$ then $l(sqrtp)$ is odd.Algebra: Finding rateProve an infinite periodic continued fraction converges?Different ways of operating an infinite continued fractionThe Monthly Cost of the Third House Given the Total Rent Receipts of 186,390 in a Year.Good and best rational approximationsContinued Fraction Counting ProblemHow can this problem be solved using continued fractions?Integer part of negative numbers for continued fractionsShow that if $p$ and $q$ are primes $equiv 3$(mod $4$) then at least one of the equations $px^2-qy^2 = pm 1$ is soluble in integers $x, y$.

Did the new image of black hole confirm the general theory of relativity?

Student Loan from years ago pops up and is taking my salary

60's-70's movie: home appliances revolting against the owners

What's the point in a preamp?

Circular reasoning in L'Hopital's rule

How do spell lists change if the party levels up without taking a long rest?

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

Nested ellipses in tikzpicture: Chomsky hierarchy

How to politely respond to generic emails requesting a PhD/job in my lab? Without wasting too much time

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

Is 'stolen' appropriate word?

What is the padding with red substance inside of steak packaging?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

Is there a writing software that you can sort scenes like slides in PowerPoint?

Identify 80s or 90s comics with ripped creatures (not dwarves)

Would an alien lifeform be able to achieve space travel if lacking in vision?

Example of compact Riemannian manifold with only one geodesic.

What to do when moving next to a bird sanctuary with a loosely-domesticated cat?

How to determine omitted units in a publication

What can I do if neighbor is blocking my solar panels intentionally?

Intergalactic human space ship encounters another ship, character gets shunted off beyond known universe, reality starts collapsing

What happens to a Warlock's expended Spell Slots when they gain a Level?

Homework question about an engine pulling a train

Can withdrawing asylum be illegal?



What was Ramanujan's solution?



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)Find the number of the houseHow can this problem be solved using continued fractions?Direct proof that for a prime $p$ if $pequiv 1 bmod 4$ then $l(sqrtp)$ is odd.Algebra: Finding rateProve an infinite periodic continued fraction converges?Different ways of operating an infinite continued fractionThe Monthly Cost of the Third House Given the Total Rent Receipts of 186,390 in a Year.Good and best rational approximationsContinued Fraction Counting ProblemHow can this problem be solved using continued fractions?Integer part of negative numbers for continued fractionsShow that if $p$ and $q$ are primes $equiv 3$(mod $4$) then at least one of the equations $px^2-qy^2 = pm 1$ is soluble in integers $x, y$.










27












$begingroup$


The wikipedia entry on Ramanujan contains the following passage:




One of his remarkable capabilities was the rapid solution for
problems. He was sharing a room with P. C. Mahalanobis who had a
problem, "Imagine that you are on a street with houses marked 1
through n. There is a house in between $(x)$ such that the sum of the
house numbers to left of it equals the sum of the house numbers to its
right. If $n$ is between $50$ and $500$, what are $n$ and $x$?" This is a
bivariate problem with multiple solutions. Ramanujan thought about it
and gave the answer with a twist: He gave a continued fraction. The
unusual part was that it was the solution to the whole class of
problems. Mahalanobis was astounded and asked how he did it. "It is
simple. The minute I heard the problem, I knew that the answer was a
continued fraction. Which continued fraction, I asked myself. Then the
answer came to my mind," Ramanujan replied.




What was the continued fraction, and how did it give all solutions to the problem? Most importantly, how could someone derive such a solution? Do similar problems also have continued fractions that describe all solutions?



This seems like an interesting and powerful method, and I would like to learn more about it.










share|cite|improve this question











$endgroup$







  • 10




    $begingroup$
    The problem reduces to a Pell equation whose solutions can be obtained from the continued fraction expansion of $sqrt2$.
    $endgroup$
    – André Nicolas
    May 19 '12 at 20:32
















27












$begingroup$


The wikipedia entry on Ramanujan contains the following passage:




One of his remarkable capabilities was the rapid solution for
problems. He was sharing a room with P. C. Mahalanobis who had a
problem, "Imagine that you are on a street with houses marked 1
through n. There is a house in between $(x)$ such that the sum of the
house numbers to left of it equals the sum of the house numbers to its
right. If $n$ is between $50$ and $500$, what are $n$ and $x$?" This is a
bivariate problem with multiple solutions. Ramanujan thought about it
and gave the answer with a twist: He gave a continued fraction. The
unusual part was that it was the solution to the whole class of
problems. Mahalanobis was astounded and asked how he did it. "It is
simple. The minute I heard the problem, I knew that the answer was a
continued fraction. Which continued fraction, I asked myself. Then the
answer came to my mind," Ramanujan replied.




What was the continued fraction, and how did it give all solutions to the problem? Most importantly, how could someone derive such a solution? Do similar problems also have continued fractions that describe all solutions?



This seems like an interesting and powerful method, and I would like to learn more about it.










share|cite|improve this question











$endgroup$







  • 10




    $begingroup$
    The problem reduces to a Pell equation whose solutions can be obtained from the continued fraction expansion of $sqrt2$.
    $endgroup$
    – André Nicolas
    May 19 '12 at 20:32














27












27








27


12



$begingroup$


The wikipedia entry on Ramanujan contains the following passage:




One of his remarkable capabilities was the rapid solution for
problems. He was sharing a room with P. C. Mahalanobis who had a
problem, "Imagine that you are on a street with houses marked 1
through n. There is a house in between $(x)$ such that the sum of the
house numbers to left of it equals the sum of the house numbers to its
right. If $n$ is between $50$ and $500$, what are $n$ and $x$?" This is a
bivariate problem with multiple solutions. Ramanujan thought about it
and gave the answer with a twist: He gave a continued fraction. The
unusual part was that it was the solution to the whole class of
problems. Mahalanobis was astounded and asked how he did it. "It is
simple. The minute I heard the problem, I knew that the answer was a
continued fraction. Which continued fraction, I asked myself. Then the
answer came to my mind," Ramanujan replied.




What was the continued fraction, and how did it give all solutions to the problem? Most importantly, how could someone derive such a solution? Do similar problems also have continued fractions that describe all solutions?



This seems like an interesting and powerful method, and I would like to learn more about it.










share|cite|improve this question











$endgroup$




The wikipedia entry on Ramanujan contains the following passage:




One of his remarkable capabilities was the rapid solution for
problems. He was sharing a room with P. C. Mahalanobis who had a
problem, "Imagine that you are on a street with houses marked 1
through n. There is a house in between $(x)$ such that the sum of the
house numbers to left of it equals the sum of the house numbers to its
right. If $n$ is between $50$ and $500$, what are $n$ and $x$?" This is a
bivariate problem with multiple solutions. Ramanujan thought about it
and gave the answer with a twist: He gave a continued fraction. The
unusual part was that it was the solution to the whole class of
problems. Mahalanobis was astounded and asked how he did it. "It is
simple. The minute I heard the problem, I knew that the answer was a
continued fraction. Which continued fraction, I asked myself. Then the
answer came to my mind," Ramanujan replied.




What was the continued fraction, and how did it give all solutions to the problem? Most importantly, how could someone derive such a solution? Do similar problems also have continued fractions that describe all solutions?



This seems like an interesting and powerful method, and I would like to learn more about it.







algebra-precalculus elementary-number-theory math-history problem-solving continued-fractions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited May 31 '14 at 10:10









Shaun

10.5k113687




10.5k113687










asked May 19 '12 at 20:15









PotatoPotato

21.7k1189194




21.7k1189194







  • 10




    $begingroup$
    The problem reduces to a Pell equation whose solutions can be obtained from the continued fraction expansion of $sqrt2$.
    $endgroup$
    – André Nicolas
    May 19 '12 at 20:32













  • 10




    $begingroup$
    The problem reduces to a Pell equation whose solutions can be obtained from the continued fraction expansion of $sqrt2$.
    $endgroup$
    – André Nicolas
    May 19 '12 at 20:32








10




10




$begingroup$
The problem reduces to a Pell equation whose solutions can be obtained from the continued fraction expansion of $sqrt2$.
$endgroup$
– André Nicolas
May 19 '12 at 20:32





$begingroup$
The problem reduces to a Pell equation whose solutions can be obtained from the continued fraction expansion of $sqrt2$.
$endgroup$
– André Nicolas
May 19 '12 at 20:32











3 Answers
3






active

oldest

votes


















14












$begingroup$

An expansion of Andre's comment into a detailed exposition can be found at http://www.johnderbyshire.com/Opinions/Diaries/Puzzles/2009-06.html. It's also at http://www.angelfire.com/ak/ashoksandhya/winners2.html#PUZZANS4.






share|cite|improve this answer









$endgroup$








  • 1




    $begingroup$
    See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
    $endgroup$
    – ShreevatsaR
    Dec 13 '12 at 10:00


















4












$begingroup$

We will use




Theorem 1: If $rgt0$ is irrational and $left|,frac pq-r,right|lefrac12q^2$ where $(p,q)=1$, then $frac pq$ is a continued fraction convergent for $r$.




and




Theorem 2: If $leftfracp_kq_kright$ is the sequence of continued fraction convergents for an irrational $rgt0$, then $r$ is between $fracp_kq_k$ and $fracp_k+1q_k+1$ and $fracp_k+1q_k+1-fracp_kq_k=frac(-1)^kq_k+1q_k$.





The problem can be written as
$$
overbrace fracx^2-x2 ^substacktextsum of $1$\textto $x-1$=overbracefracn^2+n2-fracx^2+x2^textsum of $x+1$ to $n$tag1
$$
which is equivalent to
$$
8x^2=(2n+1)^2-1tag2
$$
From $(2)$, we get $frac2n+1x=sqrt8+frac1x^2$; thus, we want an over-estimate for $sqrt8$ that has an odd numerator. Furthermore, $(2)$ implies
$$
beginalign
frac2n+1x-sqrt8
&=sqrt8+tfrac1x^2-sqrt8\[9pt]
&=frac1/x^2sqrt8+frac1x^2+sqrt8\
&lefrac12sqrt8,x^2tag3
endalign
$$
Theorem 1 and inequality $(3)$ say that $frac2n+1x$ needs to be a continued fraction approximant for $sqrt8$ to satisfy $(2)$.



The continued fraction for $sqrt8$ is $(2;1,4,1,4,1,dots)$. The convergents are
$$
beginarrayc
k&0&color#C001&2&color#C003&4&color#C005&dots\hline
fracp_kq_k&frac21&color#C00frac31&frac145&color#C00frac176&frac8229&color#C00frac9935&dots
endarraytag4
$$
The repeating continued fraction gives the following numerator/denominator recurrence
$$
beginalign
a_2n&=4a_2n-1+a_2n-2tag5a\
a_2n+1&=a_2n+a_2n-1tag5b
endalign
$$
Theorem 2 says that the red terms, the ones with odd indices, are over-estimates. Furthermore, the recurrences $text(5a)$ and $text(5b)$ guarantee that the red terms have odd numerators.



Combining $text(5a)$ and $text(5b)$, we get that the recurrence for the odd numbered numerators and denominators is
$$
a_2n+1=6a_2n-1-a_2n-3tag6
$$
Thus, we can get the solutions from the odd-indexed terms of $(4)$:
$$
beginarrayc
k&1&3&5&7&9&dots\hline
fracp_kq_k&frac31&frac176&frac9935&frac577204&frac33631189&dots\
fracn_kx_k&frac11&frac86&frac4935&frac288204&frac16811189&dots
endarraytag7
$$
The pair that has $50le nle500$, is $(x,n)=(204,288)$.



Checking:
$$
sum_k=1^203k=20706=sum_k=205^288ktag8
$$






share|cite|improve this answer











$endgroup$




















    2












    $begingroup$

    See Pi Mu Epsilon Journal Vol. 14 # 6 pp 389-97, 2017.

    "House Number Puzzle: Solution Through Bifurcation"



    A summary from the above Pi Mu Epsilon publication is given below:




    Continued Fraction of √2 is: 1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169 ... The above (x/y) also form solutions to the Pell's equation: x ² −2 y ² = ±1. The house numbers are products of x and y (the solutions to the above Pell's equation): 1*1; 3*2; 7*5; 17*12; 41*29 ... and the total number of houses are provided by x*x and 2*y*y alternatively. Total number of houses: 1*1; 2*2*2; 7*7; 2*12*12; 41*41 ...




    For details see the actual publication.






    share|cite|improve this answer











    $endgroup$













      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%2f147147%2fwhat-was-ramanujans-solution%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









      14












      $begingroup$

      An expansion of Andre's comment into a detailed exposition can be found at http://www.johnderbyshire.com/Opinions/Diaries/Puzzles/2009-06.html. It's also at http://www.angelfire.com/ak/ashoksandhya/winners2.html#PUZZANS4.






      share|cite|improve this answer









      $endgroup$








      • 1




        $begingroup$
        See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
        $endgroup$
        – ShreevatsaR
        Dec 13 '12 at 10:00















      14












      $begingroup$

      An expansion of Andre's comment into a detailed exposition can be found at http://www.johnderbyshire.com/Opinions/Diaries/Puzzles/2009-06.html. It's also at http://www.angelfire.com/ak/ashoksandhya/winners2.html#PUZZANS4.






      share|cite|improve this answer









      $endgroup$








      • 1




        $begingroup$
        See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
        $endgroup$
        – ShreevatsaR
        Dec 13 '12 at 10:00













      14












      14








      14





      $begingroup$

      An expansion of Andre's comment into a detailed exposition can be found at http://www.johnderbyshire.com/Opinions/Diaries/Puzzles/2009-06.html. It's also at http://www.angelfire.com/ak/ashoksandhya/winners2.html#PUZZANS4.






      share|cite|improve this answer









      $endgroup$



      An expansion of Andre's comment into a detailed exposition can be found at http://www.johnderbyshire.com/Opinions/Diaries/Puzzles/2009-06.html. It's also at http://www.angelfire.com/ak/ashoksandhya/winners2.html#PUZZANS4.







      share|cite|improve this answer












      share|cite|improve this answer



      share|cite|improve this answer










      answered May 20 '12 at 7:47









      Gerry MyersonGerry Myerson

      148k8152306




      148k8152306







      • 1




        $begingroup$
        See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
        $endgroup$
        – ShreevatsaR
        Dec 13 '12 at 10:00












      • 1




        $begingroup$
        See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
        $endgroup$
        – ShreevatsaR
        Dec 13 '12 at 10:00







      1




      1




      $begingroup$
      See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
      $endgroup$
      – ShreevatsaR
      Dec 13 '12 at 10:00




      $begingroup$
      See also math.auckland.ac.nz/~butcher/miniature/miniature2.pdf an article by John Butcher, where he guesses that Ramanujan was thinking of a (more general type of) continued fraction namely $$3 - cfrac16 - cfrac16 - cfrac16 - dots$$.
      $endgroup$
      – ShreevatsaR
      Dec 13 '12 at 10:00











      4












      $begingroup$

      We will use




      Theorem 1: If $rgt0$ is irrational and $left|,frac pq-r,right|lefrac12q^2$ where $(p,q)=1$, then $frac pq$ is a continued fraction convergent for $r$.




      and




      Theorem 2: If $leftfracp_kq_kright$ is the sequence of continued fraction convergents for an irrational $rgt0$, then $r$ is between $fracp_kq_k$ and $fracp_k+1q_k+1$ and $fracp_k+1q_k+1-fracp_kq_k=frac(-1)^kq_k+1q_k$.





      The problem can be written as
      $$
      overbrace fracx^2-x2 ^substacktextsum of $1$\textto $x-1$=overbracefracn^2+n2-fracx^2+x2^textsum of $x+1$ to $n$tag1
      $$
      which is equivalent to
      $$
      8x^2=(2n+1)^2-1tag2
      $$
      From $(2)$, we get $frac2n+1x=sqrt8+frac1x^2$; thus, we want an over-estimate for $sqrt8$ that has an odd numerator. Furthermore, $(2)$ implies
      $$
      beginalign
      frac2n+1x-sqrt8
      &=sqrt8+tfrac1x^2-sqrt8\[9pt]
      &=frac1/x^2sqrt8+frac1x^2+sqrt8\
      &lefrac12sqrt8,x^2tag3
      endalign
      $$
      Theorem 1 and inequality $(3)$ say that $frac2n+1x$ needs to be a continued fraction approximant for $sqrt8$ to satisfy $(2)$.



      The continued fraction for $sqrt8$ is $(2;1,4,1,4,1,dots)$. The convergents are
      $$
      beginarrayc
      k&0&color#C001&2&color#C003&4&color#C005&dots\hline
      fracp_kq_k&frac21&color#C00frac31&frac145&color#C00frac176&frac8229&color#C00frac9935&dots
      endarraytag4
      $$
      The repeating continued fraction gives the following numerator/denominator recurrence
      $$
      beginalign
      a_2n&=4a_2n-1+a_2n-2tag5a\
      a_2n+1&=a_2n+a_2n-1tag5b
      endalign
      $$
      Theorem 2 says that the red terms, the ones with odd indices, are over-estimates. Furthermore, the recurrences $text(5a)$ and $text(5b)$ guarantee that the red terms have odd numerators.



      Combining $text(5a)$ and $text(5b)$, we get that the recurrence for the odd numbered numerators and denominators is
      $$
      a_2n+1=6a_2n-1-a_2n-3tag6
      $$
      Thus, we can get the solutions from the odd-indexed terms of $(4)$:
      $$
      beginarrayc
      k&1&3&5&7&9&dots\hline
      fracp_kq_k&frac31&frac176&frac9935&frac577204&frac33631189&dots\
      fracn_kx_k&frac11&frac86&frac4935&frac288204&frac16811189&dots
      endarraytag7
      $$
      The pair that has $50le nle500$, is $(x,n)=(204,288)$.



      Checking:
      $$
      sum_k=1^203k=20706=sum_k=205^288ktag8
      $$






      share|cite|improve this answer











      $endgroup$

















        4












        $begingroup$

        We will use




        Theorem 1: If $rgt0$ is irrational and $left|,frac pq-r,right|lefrac12q^2$ where $(p,q)=1$, then $frac pq$ is a continued fraction convergent for $r$.




        and




        Theorem 2: If $leftfracp_kq_kright$ is the sequence of continued fraction convergents for an irrational $rgt0$, then $r$ is between $fracp_kq_k$ and $fracp_k+1q_k+1$ and $fracp_k+1q_k+1-fracp_kq_k=frac(-1)^kq_k+1q_k$.





        The problem can be written as
        $$
        overbrace fracx^2-x2 ^substacktextsum of $1$\textto $x-1$=overbracefracn^2+n2-fracx^2+x2^textsum of $x+1$ to $n$tag1
        $$
        which is equivalent to
        $$
        8x^2=(2n+1)^2-1tag2
        $$
        From $(2)$, we get $frac2n+1x=sqrt8+frac1x^2$; thus, we want an over-estimate for $sqrt8$ that has an odd numerator. Furthermore, $(2)$ implies
        $$
        beginalign
        frac2n+1x-sqrt8
        &=sqrt8+tfrac1x^2-sqrt8\[9pt]
        &=frac1/x^2sqrt8+frac1x^2+sqrt8\
        &lefrac12sqrt8,x^2tag3
        endalign
        $$
        Theorem 1 and inequality $(3)$ say that $frac2n+1x$ needs to be a continued fraction approximant for $sqrt8$ to satisfy $(2)$.



        The continued fraction for $sqrt8$ is $(2;1,4,1,4,1,dots)$. The convergents are
        $$
        beginarrayc
        k&0&color#C001&2&color#C003&4&color#C005&dots\hline
        fracp_kq_k&frac21&color#C00frac31&frac145&color#C00frac176&frac8229&color#C00frac9935&dots
        endarraytag4
        $$
        The repeating continued fraction gives the following numerator/denominator recurrence
        $$
        beginalign
        a_2n&=4a_2n-1+a_2n-2tag5a\
        a_2n+1&=a_2n+a_2n-1tag5b
        endalign
        $$
        Theorem 2 says that the red terms, the ones with odd indices, are over-estimates. Furthermore, the recurrences $text(5a)$ and $text(5b)$ guarantee that the red terms have odd numerators.



        Combining $text(5a)$ and $text(5b)$, we get that the recurrence for the odd numbered numerators and denominators is
        $$
        a_2n+1=6a_2n-1-a_2n-3tag6
        $$
        Thus, we can get the solutions from the odd-indexed terms of $(4)$:
        $$
        beginarrayc
        k&1&3&5&7&9&dots\hline
        fracp_kq_k&frac31&frac176&frac9935&frac577204&frac33631189&dots\
        fracn_kx_k&frac11&frac86&frac4935&frac288204&frac16811189&dots
        endarraytag7
        $$
        The pair that has $50le nle500$, is $(x,n)=(204,288)$.



        Checking:
        $$
        sum_k=1^203k=20706=sum_k=205^288ktag8
        $$






        share|cite|improve this answer











        $endgroup$















          4












          4








          4





          $begingroup$

          We will use




          Theorem 1: If $rgt0$ is irrational and $left|,frac pq-r,right|lefrac12q^2$ where $(p,q)=1$, then $frac pq$ is a continued fraction convergent for $r$.




          and




          Theorem 2: If $leftfracp_kq_kright$ is the sequence of continued fraction convergents for an irrational $rgt0$, then $r$ is between $fracp_kq_k$ and $fracp_k+1q_k+1$ and $fracp_k+1q_k+1-fracp_kq_k=frac(-1)^kq_k+1q_k$.





          The problem can be written as
          $$
          overbrace fracx^2-x2 ^substacktextsum of $1$\textto $x-1$=overbracefracn^2+n2-fracx^2+x2^textsum of $x+1$ to $n$tag1
          $$
          which is equivalent to
          $$
          8x^2=(2n+1)^2-1tag2
          $$
          From $(2)$, we get $frac2n+1x=sqrt8+frac1x^2$; thus, we want an over-estimate for $sqrt8$ that has an odd numerator. Furthermore, $(2)$ implies
          $$
          beginalign
          frac2n+1x-sqrt8
          &=sqrt8+tfrac1x^2-sqrt8\[9pt]
          &=frac1/x^2sqrt8+frac1x^2+sqrt8\
          &lefrac12sqrt8,x^2tag3
          endalign
          $$
          Theorem 1 and inequality $(3)$ say that $frac2n+1x$ needs to be a continued fraction approximant for $sqrt8$ to satisfy $(2)$.



          The continued fraction for $sqrt8$ is $(2;1,4,1,4,1,dots)$. The convergents are
          $$
          beginarrayc
          k&0&color#C001&2&color#C003&4&color#C005&dots\hline
          fracp_kq_k&frac21&color#C00frac31&frac145&color#C00frac176&frac8229&color#C00frac9935&dots
          endarraytag4
          $$
          The repeating continued fraction gives the following numerator/denominator recurrence
          $$
          beginalign
          a_2n&=4a_2n-1+a_2n-2tag5a\
          a_2n+1&=a_2n+a_2n-1tag5b
          endalign
          $$
          Theorem 2 says that the red terms, the ones with odd indices, are over-estimates. Furthermore, the recurrences $text(5a)$ and $text(5b)$ guarantee that the red terms have odd numerators.



          Combining $text(5a)$ and $text(5b)$, we get that the recurrence for the odd numbered numerators and denominators is
          $$
          a_2n+1=6a_2n-1-a_2n-3tag6
          $$
          Thus, we can get the solutions from the odd-indexed terms of $(4)$:
          $$
          beginarrayc
          k&1&3&5&7&9&dots\hline
          fracp_kq_k&frac31&frac176&frac9935&frac577204&frac33631189&dots\
          fracn_kx_k&frac11&frac86&frac4935&frac288204&frac16811189&dots
          endarraytag7
          $$
          The pair that has $50le nle500$, is $(x,n)=(204,288)$.



          Checking:
          $$
          sum_k=1^203k=20706=sum_k=205^288ktag8
          $$






          share|cite|improve this answer











          $endgroup$



          We will use




          Theorem 1: If $rgt0$ is irrational and $left|,frac pq-r,right|lefrac12q^2$ where $(p,q)=1$, then $frac pq$ is a continued fraction convergent for $r$.




          and




          Theorem 2: If $leftfracp_kq_kright$ is the sequence of continued fraction convergents for an irrational $rgt0$, then $r$ is between $fracp_kq_k$ and $fracp_k+1q_k+1$ and $fracp_k+1q_k+1-fracp_kq_k=frac(-1)^kq_k+1q_k$.





          The problem can be written as
          $$
          overbrace fracx^2-x2 ^substacktextsum of $1$\textto $x-1$=overbracefracn^2+n2-fracx^2+x2^textsum of $x+1$ to $n$tag1
          $$
          which is equivalent to
          $$
          8x^2=(2n+1)^2-1tag2
          $$
          From $(2)$, we get $frac2n+1x=sqrt8+frac1x^2$; thus, we want an over-estimate for $sqrt8$ that has an odd numerator. Furthermore, $(2)$ implies
          $$
          beginalign
          frac2n+1x-sqrt8
          &=sqrt8+tfrac1x^2-sqrt8\[9pt]
          &=frac1/x^2sqrt8+frac1x^2+sqrt8\
          &lefrac12sqrt8,x^2tag3
          endalign
          $$
          Theorem 1 and inequality $(3)$ say that $frac2n+1x$ needs to be a continued fraction approximant for $sqrt8$ to satisfy $(2)$.



          The continued fraction for $sqrt8$ is $(2;1,4,1,4,1,dots)$. The convergents are
          $$
          beginarrayc
          k&0&color#C001&2&color#C003&4&color#C005&dots\hline
          fracp_kq_k&frac21&color#C00frac31&frac145&color#C00frac176&frac8229&color#C00frac9935&dots
          endarraytag4
          $$
          The repeating continued fraction gives the following numerator/denominator recurrence
          $$
          beginalign
          a_2n&=4a_2n-1+a_2n-2tag5a\
          a_2n+1&=a_2n+a_2n-1tag5b
          endalign
          $$
          Theorem 2 says that the red terms, the ones with odd indices, are over-estimates. Furthermore, the recurrences $text(5a)$ and $text(5b)$ guarantee that the red terms have odd numerators.



          Combining $text(5a)$ and $text(5b)$, we get that the recurrence for the odd numbered numerators and denominators is
          $$
          a_2n+1=6a_2n-1-a_2n-3tag6
          $$
          Thus, we can get the solutions from the odd-indexed terms of $(4)$:
          $$
          beginarrayc
          k&1&3&5&7&9&dots\hline
          fracp_kq_k&frac31&frac176&frac9935&frac577204&frac33631189&dots\
          fracn_kx_k&frac11&frac86&frac4935&frac288204&frac16811189&dots
          endarraytag7
          $$
          The pair that has $50le nle500$, is $(x,n)=(204,288)$.



          Checking:
          $$
          sum_k=1^203k=20706=sum_k=205^288ktag8
          $$







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Jul 25 '18 at 8:14

























          answered Jul 22 '18 at 17:24









          robjohnrobjohn

          271k27314643




          271k27314643





















              2












              $begingroup$

              See Pi Mu Epsilon Journal Vol. 14 # 6 pp 389-97, 2017.

              "House Number Puzzle: Solution Through Bifurcation"



              A summary from the above Pi Mu Epsilon publication is given below:




              Continued Fraction of √2 is: 1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169 ... The above (x/y) also form solutions to the Pell's equation: x ² −2 y ² = ±1. The house numbers are products of x and y (the solutions to the above Pell's equation): 1*1; 3*2; 7*5; 17*12; 41*29 ... and the total number of houses are provided by x*x and 2*y*y alternatively. Total number of houses: 1*1; 2*2*2; 7*7; 2*12*12; 41*41 ...




              For details see the actual publication.






              share|cite|improve this answer











              $endgroup$

















                2












                $begingroup$

                See Pi Mu Epsilon Journal Vol. 14 # 6 pp 389-97, 2017.

                "House Number Puzzle: Solution Through Bifurcation"



                A summary from the above Pi Mu Epsilon publication is given below:




                Continued Fraction of √2 is: 1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169 ... The above (x/y) also form solutions to the Pell's equation: x ² −2 y ² = ±1. The house numbers are products of x and y (the solutions to the above Pell's equation): 1*1; 3*2; 7*5; 17*12; 41*29 ... and the total number of houses are provided by x*x and 2*y*y alternatively. Total number of houses: 1*1; 2*2*2; 7*7; 2*12*12; 41*41 ...




                For details see the actual publication.






                share|cite|improve this answer











                $endgroup$















                  2












                  2








                  2





                  $begingroup$

                  See Pi Mu Epsilon Journal Vol. 14 # 6 pp 389-97, 2017.

                  "House Number Puzzle: Solution Through Bifurcation"



                  A summary from the above Pi Mu Epsilon publication is given below:




                  Continued Fraction of √2 is: 1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169 ... The above (x/y) also form solutions to the Pell's equation: x ² −2 y ² = ±1. The house numbers are products of x and y (the solutions to the above Pell's equation): 1*1; 3*2; 7*5; 17*12; 41*29 ... and the total number of houses are provided by x*x and 2*y*y alternatively. Total number of houses: 1*1; 2*2*2; 7*7; 2*12*12; 41*41 ...




                  For details see the actual publication.






                  share|cite|improve this answer











                  $endgroup$



                  See Pi Mu Epsilon Journal Vol. 14 # 6 pp 389-97, 2017.

                  "House Number Puzzle: Solution Through Bifurcation"



                  A summary from the above Pi Mu Epsilon publication is given below:




                  Continued Fraction of √2 is: 1, 3/2, 7/5, 17/12, 41/29, 99/70, 239/169 ... The above (x/y) also form solutions to the Pell's equation: x ² −2 y ² = ±1. The house numbers are products of x and y (the solutions to the above Pell's equation): 1*1; 3*2; 7*5; 17*12; 41*29 ... and the total number of houses are provided by x*x and 2*y*y alternatively. Total number of houses: 1*1; 2*2*2; 7*7; 2*12*12; 41*41 ...




                  For details see the actual publication.







                  share|cite|improve this answer














                  share|cite|improve this answer



                  share|cite|improve this answer








                  edited Jul 22 '18 at 3:07









                  Alexander Gruber

                  20k25103174




                  20k25103174










                  answered Jul 6 '17 at 17:58









                  Ken SurendranKen Surendran

                  211




                  211



























                      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%2f147147%2fwhat-was-ramanujans-solution%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

                      Bosc Connection Yimello Approaching Angry The produce zaps the market. 구성 기록되다 변경...

                      WordPress Information needed

                      Hidroelektrana Sadržaj Povijest | Podjela hidroelektrana | Snaga dobivena u hidroelektranama | Dijelovi hidroelektrane | Uloga hidroelektrana u suvremenom svijetu | Prednosti hidroelektrana | Nedostaci hidroelektrana | Države s najvećom proizvodnjom hidro-električne energije | Deset najvećih hidroelektrana u svijetu | Hidroelektrane u Hrvatskoj | Izvori | Poveznice | Vanjske poveznice | Navigacijski izbornikTechnical Report, Version 2Zajedničkom poslužiteljuHidroelektranaHEP Proizvodnja d.o.o. - Hidroelektrane u Hrvatskoj