collatz: Collatz Numbers

View source: R/collatz.R

collatzR Documentation

Collatz Numbers

Description

Find and graph the Collatz sequence from a given initial number.

Usage

collatz(n, limit = 10000)

Arguments

n

the initial integer

limit

maximum number of members of the Collatz sequence to compute

Value

side effects

Author(s)

Homer White homerhanumat@gmail.com

Examples

## Not run: 
collatz(1757)

## End(Not run)

homerhanumat/bcscr documentation built on Jan. 14, 2023, 4 a.m.