Provides the basic functionality to interact with the Collatz conjecture. The parameterisation uses the same (P,a,b) notation as Conway's generalisations. Besides the function and reverse function, there is also functionality to retrieve the hailstone sequence, the "stopping time"/"total stopping time", or tree-graph. The only restriction placed on parameters is that both P and a can't be 0.
Required Ruby Version
>= 3.0.0
Authors
Nathan Levett
Versions
-
1.1.0
-
source
- 1.1.0 source February 23, 2025 (28.5 KB)
-
-
1.0.0
-
source
- 1.0.0 source September 24, 2022 (27.5 KB)
-
-
0.1.0
-
source
- 0.1.0 source September 21, 2022 (22.5 KB)
-
-
0.0.4
-
source
- 0.0.4 source September 14, 2022 (16 KB)
-