https://en.wikipedia.org/wiki/Collatz_conjecture>.">

collatz: Functions Related to the Collatz/Syracuse/3n+1 Problem (original) (raw)

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. For further reading, see <https://en.wikipedia.org/wiki/Collatz_conjecture>.

Version: 1.0.0
Depends: R (≥ 3.5.0), gmp
Suggests: roxygen2, testthat (≥ 3.0.0), devtools, covr, DT, pkgdown, servr, tinytex, knitr, rmarkdown
Published: 2022-09-05
DOI: 10.32614/CRAN.package.collatz
Author: Nathan Levett [aut, cre]
Maintainer: Nathan Levett <nathan.a.z.levett at gmail.com>
BugReports: https://github.com/Skenvy/Collatz/issues/new/choose
License: Apache License (== 2.0)
URL: https://github.com/Skenvy/Collatz,https://github.com/Skenvy/Collatz/tree/main/R,https://skenvy.github.io/Collatz/R/,https://skenvy.github.io/Collatz/R/pdf/
NeedsCompilation: no
Materials: README
CRAN checks: collatz results

Documentation:

Downloads:

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=collatzto link to this page.