User talk:AnatolV

From Rosetta Code
Revision as of 01:07, 19 April 2016 by rosettacode>Gerard Schildberger (added a new talk section.)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Hailstone sequence, version 2

AnatolV:

Actually, I was hoping that you'd just correct the PARA/GP program (version 2) instead of ignoring the reason behind the incorrect (sort of) flag.


To make the program correct, just change the statement:

  • Search range: 1..100000
to
  • Search range: 1..99999


The task's requirement is ... "Show the number less than 100,000 which ...".

(The underlining is mine.)


Although, as I had already mentioned, as it so happens, the 100 thousandth number doesn't affect the longest sequence, but the upper bounds of the search is still incorrect, but the answer isn't wrong.

  -- Gerard Schildberger (talk) 01:07, 19 April 2016 (UTC)