Functions Related to the Collatz/Syracuse/3n+1 Problem
Overview
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.
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-22
- NOTE12 OK, 2 NOTE2026-03-10
Documentation
- Help pages
- 8includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
- collatz HTML
- Hailstone of 27+576460752303423488 HTML
- Hailstone Sequences HTML
- Tree Graphs HTML
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 26
- Median days to close, 50 most recently updated closed PRs
- 21
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Commits over time
13 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/skenvy/collatz on 2026-10-21.
Funding links: GitHub Sponsors
The repository owner accepts GitHub Sponsors
GitHub Pages site last deployed 2025-02-28 · The repository has a site deploy workflow
Show all practicesHide 2 practices
Dependencies
Code & Tests
People & History
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 1.0.0Latest2022-09-05 · current release
- RR 4.2.0 released · 2022-04-22
Package metadata
- First published
- 2022-09-05
- Total releases
- 1 / 4 yrs
- License
- Apache License (== 2.0)
- Minimum R
- ≥ 3.5.0
- Download size
- 51 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("collatz")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-24, which the citation names so these numbers can be found later. More on citing and the projects behind them.