Hydra function

From BusyBeaverWiki
Revision as of 11:38, 23 February 2025 by MrSolis (talk | contribs) (Expanded the article with new information; added an image based on the idea suggested in the talk page)
Jump to navigation Jump to search
A bitmap depiction of 255 iterations of the Hydra function, starting with 3 at the top.

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 variables; 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 sequence

ever has more even terms than twice the number of odd terms, starting with . Similarly, Antihydra halts if and only if the sequence
ever has more odd terms than twice the number of even terms, starting with .

For Hydra, we can introduce the sequence whose terms have the same sequence of parities as . Then we have:

For Antihydra, we can repeat this but with the sequence .