It's just the 3x+1 thing in Rust. It ends in the 4 -> 2 -> 1 with any number, just as expected. You could probably modify the math done to even and odd numbers to further test the Collatz Conjecture (which afaik is already proven to be true).