Deutsch   English   Français   Italiano  
<bef9bc0de07f9a2dc3a4a61fea35f69d@www.novabbs.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!weretis.net!feeder9.news.weretis.net!i2pn.org!i2pn2.org!.POSTED!not-for-mail
From: ilan_no_spew@hotmail.com (IlanMayer)
Newsgroups: rec.puzzles
Subject: Re: The "Strand" puzzle --- ( Continued Fractions using Lisp or
 =?UTF-8?B?UHl0aG9uPyAp?=
Date: Tue, 30 Jul 2024 21:38:49 +0000
Organization: novaBBS
Message-ID: <bef9bc0de07f9a2dc3a4a61fea35f69d@www.novabbs.com>
References: <v7u7qd$2dgbs$1@dont-email.me> <6f90c2b4abed28c153dea46de3af408d@www.novabbs.com> <v88ood$jnp6$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Info: i2pn2.org;
	logging-data="917659"; mail-complaints-to="usenet@i2pn2.org";
	posting-account="Nv7a4TN/FA4Y/cDwWUL0U6sK+ZlYFmn3McVAt5slNE0";
User-Agent: Rocksolid Light
X-Spam-Checker-Version: SpamAssassin 4.0.0
X-Rslight-Posting-User: 063eb0bdd8fb229e25e059fe83e8f0600fd915a6
X-Rslight-Site: $2y$10$13AyWZTCl0VEoaNPFaiWC.cQtSJr.LAr7hjZo4AUOozP/OMUDiC8q
Bytes: 2509
Lines: 54

On Mon, 29 Jul 2024 18:58:21 +0000, HenHanna wrote:

>
>
> On 7/26/2024 5:37 AM, IlanMayer wrote:
>> On Thu, 25 Jul 2024 19:07:56 +0000, HenHanna wrote:
>>
>>>
>>> e.g. -------- For the (street)  Numbers (1,2,3,4,5,6,7,8)
>>>
>>>                          (1,2,3,4,5)  and  (7,8)  both add up to 15.
>>>
>>>
>>>
>>> “In a given street of houses with consecutive numbers between 50 and
>>> 500, find the house number, for which, the sum of numbers on the left is
>>> equal to the sum of numbers on the right”
>>>
>>>
>>>
>>>   Ramanujan and Strand Puzzle
>>>
>>>             this was a very interesting puzzle tackled by the genius
>>> Srinivasa Ramanujan.        In the year 1914, P.C. Mahalanobis, a Kings
>>> college student in England, got hold of a puzzle from the Strand
>>> magazine.
>>
>> Solution found at:
>> https://ubpdqnmathematica.wordpress.com/2021/12/05/ramanujan-and-strand-puzzle/
>
>
> thanks!
>
>
>
>  >>>    So the solutions to the Strand puzzle can be found from the
> continued fraction of \sqrt{2}, which  _is_  satisfying simple.
>
>
>  >>>   Using Mathematica to look at the first 10 convergents
>
>
> ---------- is this (also) easy to do using Lisp or Python???

This can be done with Python:

N = 10
a = 1
b = 1
print(str(a) + "/" + str(b))
for n in range(N):
    temp = a + 2 * b
    b = a + b
    a = temp
    print(str(a) + "/" + str(b))