The Hydra function is Collatz-like function whose behavior is connected to the the unsolved halting problems for the Cryptids Hydra and Antihydra:
which can alternatively be written as