Group Abstract Group Abstract

Message Boards Message Boards

Collatz conjecture visualizations

Posted 21 days ago

Collatz conjecture visualizations

Attachments:
POSTED BY: Anton Antonov
6 Replies

Interesting post. Some comments:

  • There are also some nice demonstrations including Reverse Collatz Paths.

  • Assuming that you've tested all values below n for loops or convergence to 1, you can stop applying the Collatz map as soon as you get below your starting value, e.g.,

CollatzStop[m_]:= NestWhileList[n |-> If[EvenQ[n], n/2, (3 n + 1)/2], m, p |-> p >= m]

POSTED BY: Paul Abbott

Graphviz graph-plot (via Raku) version:

enter image description here

(More details here.)

POSTED BY: Anton Antonov

That is a very nice and interesting outline of the Collatz conjecture - thanks for sharing! Just as a shy remark: I find it inspiring if the above "scatter plot of seed vs. sequence length" is plotted using logarithmic scaling (ScalingFunctions -> {"Log", Automatic}). This way you get a surprisingly regular pattern:

enter image description here

POSTED BY: Henrik Schachner

That is a good idea. We can also make a graphics-grid with all of log-plot types:

enter image description here

POSTED BY: Anton Antonov

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD

Thank you for the recognition and additional formatting work, Moderation Team!

POSTED BY: Anton Antonov
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard