Collatz Function (CloudMonk.io)
"
Collatz function
- one that, given an
integer
N,
return
s N/2 if N
is even
, and 3N + 1 if N
is odd
; see also
Collatz conjecture
.
constexpr Variable
s (313)" (
EMCppSfe
2021
)