Colourised Collatz Coral; derived from this original by Edmund Harriss
Functions related to the Collatz/Syracuse/3N+1 problem, implemented in Java (OpenJDK).
To install the latest from Maven Central (sonatype.org source mirror) (also see mvnrepository or the sonatype package index);
<dependency>
<groupId>io.github.skenvy</groupId>
<artifactId>collatz</artifactId>
</dependency>implementation 'io.github.skenvy:collatz'
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.
There is no one time setup required as each maven command will dynamically fetch its dependencies.
make testwill do nothing magical, but is helpfulmake lintwill evaluate the Checkstyle rules.make docswill create the site and then run it on localhost with javadoc here, and the Checkstyle report here.
