Hydra function

From BusyBeaverWiki
Revision as of 01:07, 4 March 2025 by MrSolis (talk | contribs) (Added Hydra function rules for Hydra and Antihydra with step counts)
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.

Relationship to Hydra and Antihydra

Recall the high-level rules for Hydra and Antihydra:

Hydra Antihydra
Let :
Let :

Already, both machines can be observed to have very similar functions. Both have one parameter that increases exponentially with growth factor , and another that takes a pseudo-random walk that depends on the parity of the other variable. This relationship can be strengthened through a change of variables. This is easier to illustrate if these rules were written in the form of integer sequences:

Hydra Antihydra

Now, we will introduce a new integer sequence based on the old one and discover the recursive rules for that sequence. For Hydra, this new sequence is . For Antihydra, this new sequence is . The new rules are found by using instead and substituting for its recursive formula. By doing so, we get:

Hydra Antihydra

After that, we must substitute for its solution in terms of . What results is the following:

Hydra Antihydra

We finish by noting that the if statements simplify to simply checking if is even or odd. After simplifying, we get

Hydra Antihydra

Now that we have demonstrated the relatedness between the behaviour of both Turing machines, we can return to using the high-level rules. Once we do this, the result is:

Hydra Antihydra
Let :
:

Properties

Here, and are positive integers with odd. Let be an integer and is the th iterate of .