Crate beetle_collatz
source ·Expand description
A collection of functions relating to the Collatz conjecture
Traits
- Gives access to a function that determines if a number if ‘bouncy’. I made the term up, but I’m sure there’s a proper term for it somewhere.
- Types implementing this can be passed to the most if not all functions in this library
- Gives access to functions related to the rules of the Collatz Conjecture
- Gives access to functions for counting the steps a number takes to reach 1, given the rules of the Collatz Conjecture
- Gives access to a function that shows the transformations of a number as it falls to one
- Gives access to a function that returns a copy of a number without trailing zeros