Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )

Liste des GroupesRevenir à r puzzles 
Sujet : Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )
De : droleary.usenet (at) *nospam* 2023.impossiblystupid.com (Doc O'Leary ,)
Groupes : rec.puzzles
Date : 02. Aug 2024, 17:55:06
Autres entêtes
Organisation : Subsume Technologies, Inc.
Message-ID : <v8j31a$2tsqp$1@dont-email.me>
References : 1 2 3 4 5 6
User-Agent : com.subsume.NNTP/1.0.0
For your reference, records indicate that
Doc O'Leary ,   <droleary@2017usenet1.subsume.com> wrote:

Hmmm.  Not sure why it was using my old email.  Anyway!

So no house.  I’ll skip the full output, but for the tipping point I see:
 
irb> (x..y).select {|n| puts "#{n} #{(x..(n-1)).sum} #{((n+1)..y).sum}"}
 
355 61610 62060
356 61965 61704

I went a step further and figured out the equation to solve the puzzle. 
Implemented in Ruby:

irb> range_sum_midpoint(1,8)
=> 6.0
irb> range_sum_midpoint(50,500)
=> 355.6332380416656

The equation itself is left as an exercise for the rec.puzzles reader.  :-)

--
"Also . . . I can kill you with my brain."
River Tam, Trash, Firefly



Date Sujet#  Auteur
25 Jul 24 * The "Strand" puzzle14HenHanna
26 Jul 24 `* Re: The "Strand" puzzle13IlanMayer
29 Jul 24  `* Re: The "Strand" puzzle --- ( Continued Fractions using Lisp or Python? )12HenHanna
30 Jul 24   +* Re: The "Strand" puzzle --- ( Continued Fractions using Lisp or Python? )3IlanMayer
31 Jul 24   i+- Re: The "Strand" puzzle --- ( Continued Fractions using Lisp or Python? )1HenHanna
20 Aug 24   i`- Re: The "Strand" puzzle --- ( Continued Fractions using Lisp or Python? )1Phil Carmody
1 Aug 24   `* Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )8B. Pym
1 Aug 24    +* Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )2HenHanna
1 Aug 24    i`- Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )1Moebius
2 Aug 24    +* Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )3B. Pym
2 Aug 24    i`* Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )2Doc O'Leary ,
2 Aug 24    i `- Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )1Doc O'Leary ,
2 Aug 24    +- Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )1B. Pym
4 Aug 24    `- Re: The "Strand" puzzle --- ( Continued Fractions using Lisp orPython? )1B. Pym

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal