Path: ...!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: HenHanna Newsgroups: rec.puzzles,sci.lang,sci.math,comp.lang.lisp,comp.lang.python Subject: Re: The "Strand" puzzle --- ( Continued Fractions using Lisp or Python? ) Date: Mon, 29 Jul 2024 11:58:21 -0700 Organization: A noiseless patient Spider Lines: 42 Message-ID: References: <6f90c2b4abed28c153dea46de3af408d@www.novabbs.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 29 Jul 2024 20:58:22 +0200 (CEST) Injection-Info: dont-email.me; posting-host="cda7bbd820da97e0a9151b7b6d2c87f6"; logging-data="646950"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1q4Hf2t50AvEH3WtlpAjaw5ASmsZJU9Y=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:ZoyBmh4ek+Wgc/jkRLEuhqe3t7A= In-Reply-To: <6f90c2b4abed28c153dea46de3af408d@www.novabbs.com> Content-Language: en-US Bytes: 2362 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???