Package: collatz 1.0.1
collatz: Functions Related to the Collatz/Syracuse/3n+1 Problem
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>.
Authors:
collatz_1.0.1.tar.gz
collatz_1.0.1.zip(r-4.7)collatz_1.0.1.zip(r-4.6)collatz_1.0.1.zip(r-4.5)
collatz_1.0.1.tgz(r-4.6-any)collatz_1.0.1.tgz(r-4.5-any)
collatz_1.0.1.tar.gz(r-4.7-any)collatz_1.0.1.tar.gz(r-4.6-any)
collatz_1.0.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
collatz/json (API)
| # Install 'collatz' in R: |
| install.packages('collatz', repos = c('https://skenvy.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/skenvy/collatz/issues
Pkgdown/docs site:https://skenvy.github.io
Last updated from:04ad933f63. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | NOTE | 152 | ||
| source / vignettes | OK | 193 | ||
| linux-release-x86_64 | NOTE | 149 | ||
| macos-release-arm64 | NOTE | 143 | ||
| macos-oldrel-arm64 | NOTE | 159 | ||
| windows-devel | NOTE | 98 | ||
| windows-release | NOTE | 96 | ||
| windows-oldrel | NOTE | 77 | ||
| wasm-release | OK | 120 |
Exports:collatz_functionhailstone_sequencereverse_functionstopping_timetree_graph
Dependencies:gmp
collatz
Rendered fromcollatz.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2022-08-27
Started: 2022-08-27
Hailstone of 27+576460752303423488
Rendered fromhailstones_576460752303423488.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2022-08-27
Started: 2022-08-27
Hailstone Sequences
Rendered fromhailstones.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2022-08-27
Started: 2022-08-27
Tree Graphs
Rendered fromtreegraphs.Rmdusingknitr::rmarkdownon May 16 2026.Last update: 2022-08-27
Started: 2022-08-27
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Sane Parameter Check | assert_sane_parameterication |
| Collatz | collatz-package collatz |
| The Collatz function | collatz_function |
| Hailstone Sequencer | hailstone_sequence |
| The "inverse"/"reverse" Collatz function | reverse_function |
| Stopping Time | stopping_time |
| Stopping Time Terminus | stopping_time_terminus |
| Tree Graph | tree_graph |
