Skip to contents

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

Homer White homerhanumat@gmail.com

Examples

if (FALSE) { # \dontrun{
collatz(1757)
} # }