Hydra function
The Hydra function is a Collatz-like function whose behavior is connected to the unsolved halting problems for the Cryptids Hydra and Antihydra. It is defined as:
which can alternatively be written as
It has some connections to Mahler's 3/2 problem.
Properties
Here, and are positive integers with odd. Let be an integer and is the th iterate of .
Relationship to Hydra and Antihydra
Both machines effectively track the progress of two varibles; one of them changes depending on its value modulo 2 but roughly multiplies itself by , and the other increases by 2 or decreases by 1 depending on the parity of the first variable.
In particular, Hydra halts if and only if the function Failed to parse (unknown function "\begin{cases}"): {\displaystyle f(x)=\begin{cases}\frac{3x+6}{2}&\text{if }a\equiv0\pmod{2}\\8}