Hailstone sequence version 2 (& not ONLY)

@Gerard Schildberger:

First of all, you did suggest to leave it as is, just delete red warning…Why did you suggest it?? Now you’ve changed your mind?? LOL It was a good suggestion, because only in the case than result would be = 100K, it would require to go to 100K-1 in range setting. This is only a search range, and it is > than set by task. May be, next time better correct task setting to <= 100K? What do you think?

Second, formally you are right, but you know, I’ve seen a lot of outputs, ignoring all task requirement, even outputting nothing… And it is OK?? No reddish warning?? It IS OK for me. But I like to see result, especially pictures, if it is possible. [See more samples below.]

Last, I’ve discovered that RosettaCode Wiki using FAKE messages to limit login of certain users to pages. This is not nice and not correct. E.g., I've got message: Login error Rosetta Code uses cookies to log in users. You have cookies disabled. Please enable them and try again. <<all above in red, but below>> Username AnatolV Note: right below it,- my user name from cookie.. It’s a big LOL

Of course, everything is OK with my browser setting. RosettaCode Wiki is not the one and only site I’m publishing blogs, notes, scripts, etc. Check my user page on OEIS Wiki, for example. I’ve analyzed situation and discovered a probable cause. I was listed as over active!??: http://rosettacode.org/wiki/Special:ActiveUsers AnatolV (Talk | contribs) [34 actions in the last 30 days] How do they get this number?? OK, I have only 10-12 scripts published (since January, not in the last 30 days), but also about 15 pictures, plus 3-4 times editing (all postings). Is it too much?? LOL

As I said,- it’s not correct actions somebody set within RosettaCode Wiki! Do you know why?? Because it could mean that RosettaCode Wiki site was hacked, or I was redirected to imposter’s site, etc.

Even to post this note I need to log in. Waiting when I would be allowed to LOG IN!?? You see?? This is a real problem! LOL In OEIS Wiki we have better options: we can send email directly to any user and any editor. Sometimes it is handy.

EDITING ISSUES: Are you bombarding all others who set 100K (not 100K-1) too?? Stop it!! Please.

I can’t see reddish memo on the next to mine Pascal. In Pike author set 100K in script, but not mention it in output. Same in PHP, PicoList, Prolog, Constraint Handling Rules, Pure, Python, R, Racket, Ruby (+ it has additional output, and I like it!), Rust, Scala, Scheme, Scilab, Smalltalk (no output), Swift, Ursala, zkl (+ modified task), 360 Assembly, ABAP, ACL2, Ada, Aime, APL, AutoHotKey (+ no output), AutoIt, BBC BASIC, FreeBASIC, Liberty BASIC (+ no output), Oxygen Basic, PureBasic, Batch File, C# With caching, CLIPS, Clojure (+ no output), COBOL, CoffeeScript, D, Dart, Delphi, EchoLisp (+ expanded output), Elixir, Erlang, ERRE, Euler Math Toolbox, Factor, FALSE (+ no output), Forth (+ no output), Frege, Frink (+ no output), FunL (+ incomplete solution), GAP (+expanded output), Groovy, Haskell, HicEst, Icon and Unicon, Io, J, JavaScript, jq, Julia, K, Lasso, Logo (+ no output), Maple, Mathematica / Wolfram Language, MATLAB/Octave, Maxima, Modula 2, Oberon 2, ooRexx. And finally!!!: PARI/GP Version 1. Do you see for(n=1,1e5… in Version 1?? 1e5 means 100K. LOL

Note: some of authors “cheating” in output, saying: <100K, or so.I think they met you… LOL

There are a lot of real editing work for editors, e.g.: • Ring, has incomplete task and no output. • SNUSP, Bracmat, Buelesque have no output. • Task 2, uBasic/4tH, Bourne Shell, MUMPS have incomplete solution. • LOLCODE has typos in the description. Easy to fix it by editor. + incomplete task,- OK 4 me. • A lot of samples having actually output are not using Output tag. This is really easy to correct even by editor… Just saying.

In some cases incomplete solution is reasonable.

Suggestion: May be editors should create Wiki tag “Incomplete task solution” (not red, but normal one, like Output tag). So, editors and/or authors can use it to mark such solutions.

A few scripts starting from 3, one even from 7, but it’s ok with me, because I know for sure there is nothing interesting in the first 7 sequences.

FINALLY: Are you gonna put reddish memo everywhere? Over all 80+ languages I’ve listed?? Just because you can? Let it go!

Variety of presentation is good, unless it has essential errors, wrong results.

Best regards, AnatolV

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)
Return to the user page of "AnatolV".