Skip to content
/ Collatz Public

Arc diagram visualization of the parity Collatz function from the famous conjecture.

License

Notifications You must be signed in to change notification settings

flacle/Collatz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collatz 2-Adic Parity Map

Clockwise arc diagram visualization of the parity reformulation of the Collatz function
from the paper 2-adic parity explorations of the 3n+1 problem.
 
Clockwise arc diagram of orbits from the parity Collatz function for n0=25 This example shows the orbit of the parity map 25 -> 38 -> 19 -> 44 -> 11 -> 26 -> 13 -> 20 -> 5 -> 8 -> 1.

Features

  1. Show or hide differences between increments or decrements of n_{t} - n_{t-1} (edgeLabels = True/False)
  2. Show or hide nodes on the number line (hideNodes = True/False)
  3. Diagrams can be saved/displayed as either SVGs or PNGs

General Info

  1. Language: Python 3
  2. Dependencies:
    1. mpmath
    2. math
    3. drawSvg
    4. functools

License

This project is licensed under the terms of the MIT license.

Reference