A385902 Antihydra, a BB(6) Turing machine (values of b).
0, 2, 4, 6, 5, 7, 9, 11, 10, 12, 11, 13, 12, 11, 10, 12, 14, 16, 15, 14, 16, 15, 17, 16, 18, 17, 19, 21, 20, 19, 21, 20, 19, 21, 23, 25, 24, 23, 22, 21, 20, 22, 21, 20, 19, 18, 17, 19, 21, 23, 25, 27, 29, 31, 30, 29, 31, 30, 32, 31, 33, 32, 31, 33, 35, 37, 36
Offset: 0
Keywords
Links
- Paolo Xausa, Table of n, a(n) for n = 0..10000
- The Busy Beaver Challenge, Antihydra.
- The Busy Beaver Wiki, Antihydra.
- Shawn Ligocki, BB(6) is Hard (Antihydra), Jul 6, 2024.
- Index entries for sequences related to Busy Beaver problem.
Programs
-
Mathematica
Module[{a = 8, b = 0}, NestWhileList[(If[OddQ[a], b--, b += 2]; a += Quotient[a, 2]; b) &, b, b != -1 &, 1, 100]] (* Paolo Xausa, Aug 04 2025 *)
-
Python
def antihydra(start: int = 8, halt: int = 66) -> list[int]: seq = [] a = start b = 0 n = 0 while b != -1: if n > halt: break seq.append(b) # print(f"[{n}] -> ({a}, {b})") if a % 2 == 0: b += 2 else: b -= 1 a += a // 2 n += 1 return seq print(antihydra())
Comments