Clockwise arc diagram visualization of the parity reformulation of the Collatz function
from the paper 2-adic parity explorations of the 3n+1 problem.
This example shows the orbit of the parity map 25 -> 38 -> 19 -> 44 -> 11 -> 26 -> 13 -> 20 -> 5 -> 8 -> 1.
- Show or hide differences between increments or decrements of n_{t} - n_{t-1} (edgeLabels = True/False)
- Show or hide nodes on the number line (hideNodes = True/False)
- Diagrams can be saved/displayed as either SVGs or PNGs
- Language: Python 3
- Dependencies:
- mpmath
- math
- drawSvg
- functools
This project is licensed under the terms of the MIT license.
- Laclé, F. 2-adic parity explorations of the 3n+1 problem (2021)
https://hal.archives-ouvertes.fr/hal-03201180/document