Skip to content

collatz

1.0.0Package record

Functions Related to the Collatz/Syracuse/3n+1 Problem

0packages depend
2.8Kdownloads / year
92.9%test coverage
13/13flavors OK

Overview

About

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

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK13 OK2026-07-22
  • NOTE12 OK, 2 NOTE2026-03-10
Advisories

none known

Documentation

In release 1.0.0
READMEYes · 211 wordsVignettesYes · 4 · dynamicNEWSNoCitation fileNoWebsiteYes
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%

Downloads

2.8K
CRAN downloads in the past year
Rank #14,863 · ~8/day · ~231/mo
Daily download trend is not available in this view yet.
24930 days
81690 days
2.8K1 year
Compare downloads with other packages →
Also on85 r2u6 autocran

Repository

7Stars
1Forks
6Open issues
17Open PRs
44Releases
754Commits
3Commit identities
collatz
License file reads as Apache-2.0 · 754 commits · Last activity 2026-09-03 · 0% stars, 30d · Discussions: 1 post
Responsiveness
How these are sampled
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

2024-12-19 · 52026-07-07 · 7
PracticesBeta

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.

Continuous integration (1)
GitHub Actions
Governance and community (7)
Code of conductContributing guideIssue templatesPR templateFundingSecurity policy

Funding links: GitHub Sponsors

The repository owner accepts GitHub Sponsors

Docs source (2)

GitHub Pages site last deployed 2025-02-28 · The repository has a site deploy workflow

Automation and maintenance (1)
Dependabot
Show all practicesHide 2 practices
Lint, format, editor (1)
VS Code
Git structural (1)
.gitattributes
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
11 external dependencies (excludes base and recommended)

Installing collatz adds 1 package (1 with compiled code, 163 KB of source tarballs). Heaviest: gmp 163 KB.

Depends (2)
R >= 3.5.0gmp
Imports (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (1)
Author, Maintainer since 1.0.0 (2022)
Releases (1)
  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • 1.0.0Latest
    2022-09-05 · current release
  • R
    R 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")
Levett, N. (2022). collatz: Functions Related to the Collatz/Syracuse/3n+1 Problem (Version 1.0.0) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for collatz version 1.0.0 [Data set]. HJJB, LLC. Data release v2026-10-24. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy