johnWilshire/collatz: Computes Collatz Stopping Numbers

Take any positive integer n. If n is even, divide it by 2 to get n / 2. If n is odd, multiply it by 3 and add 1 to obtain 3n + 1. The conjecture is that no matter what number you start with, you will always eventually reach 1.

Getting started

Package details

AuthorJohn Wilshire
MaintainerJohn Wilshire <john.h.wilshire@gmail.com>
License
Version1.0
Package repositoryView on GitHub
Installation Install the latest version of this package by entering the following in R:
install.packages("remotes")
remotes::install_github("johnWilshire/collatz")
johnWilshire/collatz documentation built on May 19, 2019, 3:02 p.m.