#length #numbers #sequence #calculate #collatz

collatz_length

Calculate the length of the Collatz sequence for a given number

2 releases

0.1.1 Feb 9, 2022
0.1.0 Feb 9, 2022

#4 in #collatz

MIT/Apache

3KB

Collatz

Calculate the length of the Collatz sequence for a given number

Crates.io DeepSource

Usage

collatz(n) returns the length of the Collatz sequence for n.

No runtime deps