Beaver Math Olympiad

From BusyBeaverWiki
Revision as of 14:35, 24 September 2026 by Mxdys (talk | contribs) (BMO9 was solved)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Beaver Mathematical Olympiad (BMO) is an attempt to re-formulate the halting problem for some particular Turing machines as a mathematical problem in a style suitable for a hypothetical math olympiad.

The purpose of the BMO is twofold. First, statements where non-essential details (related to tape encoding, number of steps, etc.) are discarded are more suitable to be shared with mathematicians who perhaps are able to help. Second, it's a way to jokingly highlight how a hard question could appear deceptively simple.

BMO problems have been formalized in Lean and added to the DeepMind formal-conjectures database (Github).

Unsolved problems

1. 1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE (bbch)

Let (an)n≥1 and (bn)n≥1 be two sequences such that (a1,b1)=(1,2) and

(an+1,bn+1)={(an−bn,4bn+2)if an≥bn(2an+1,bn−an)if an<bn

for all positive integers n. Does there exist a positive integer i such that ai=bi?

The first 10 values of (an,bn) are (1,2),(3,1),(2,6),(5,4),(1,18),(3,17),(7,14),(15,7),(8,30),(17,22).

2. Hydra and Antihydra

Let (an)n≥0 be a sequence such that an+1=an+⌊an2⌋ for all non-negative integers n.

  1. If a0=3, does there exist a non-negative integer k such that the list of numbers a0,a1,a2,…,ak have more than twice as many even numbers as odd numbers? (Hydra)
  2. If a0=8, does there exist a non-negative integer k such that the list of numbers a0,a1,a2,…,ak have more than twice as many odd numbers as even numbers? (Antihydra)

5. 1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE (bbch)

Let (an)n≥1 and (bn)n≥1 be two sequences such that (a1,b1)=(0,5) and

(an+1,bn+1)={(an+1,bn−f(an))if bn≥f(an)(an,3bn+an+5)if bn<f(an)

where f(x)=10⋅2x−1 for all non-negative integers x.

Does there exist a positive integer i such that bi=f(ai)−1?

6. Space Needle

Let f(b)=b+k+3a, where k and a are non-negative integers satisfying b=(2a+1)⋅2k.

Now consider the iterated application of the function fn+1(b)=f(fn(b)), f0(b)=b. Does there exist a non-negative integer n such that fn(6) equals a power of 2?

8. 1RB0LD_0RC1RB_0RD0RA_1LE0RD_1LF---_0LA1LA (bbch)

Let (an)n≥1 and (bn)n≥1 be two sequences such that (a1,b1)=(10,12) and

(an+1,bn+1)={(an−⌊bn2⌋−3,3⌊bn+12⌋+6)if an>⌊bn2⌋(3an+5,bn−2an)if an≤⌊bn2⌋

for all positive integers n. Does there exist a positive integer i such that an=⌊bn2⌋+1?

10. 1RB0LB_0RC0LD_1LD1RE_0LA0RF_0RD1RF_0RC--- (bbch)

Let Σ={0,1,#}. Consider two-sided infinite words over Σ. The initial word is

w(0)=⋯10#10#10#10#0000⋯,

that is, a left-infinite repetition of 10#, followed by a right-infinite tail of 0's.

The rewrite rules are

#0→1,
#100→000#,
#110→000#,
#1010→1010##.

A rewrite step consists of choosing any occurrence of the left-hand side of one of these rules in the current word and replacing it by the corresponding right-hand side. The occurrence may be chosen arbitrarily; there is no prescribed reduction order.

At any stage, call a symbol # active if it is the leftmost symbol of an occurrence of one of the four left-hand sides above. Equivalently, a # is active if the word beginning at that # starts with one of

#0,#100,#110,#1010.

The question is whether there exists some finite sequence of rewrite steps, starting from w(0), after which the rightmost occurrence of # is not active. In other words, does there exist a rewrite order such that the rightmost # can no longer be rewritten?

11. 1RB0LD_0LC0RE_1LA0RD_0RB0LC_1RC1RF_0LD--- (bbch)

Let Σ={0,1,#}. Consider two-sided infinite words over Σ. The initial word is

w(0)=⋯10#10#10#10#0000⋯,

that is, a left-infinite repetition of 10#, followed by a right-infinite tail of 0's.

The rewrite rules are

#0→1,
#100→010#,
#1010→1010##,
#10110→10101,
#11→10.

A rewrite step consists of choosing any occurrence of the left-hand side of one of these rules in the current word and replacing it by the corresponding right-hand side. The occurrence may be chosen arbitrarily; there is no prescribed reduction order.

At any stage, call a symbol # active if it is the leftmost symbol of an occurrence of one of the five left-hand sides above. Equivalently, a # is active if the word beginning at that # starts with one of

#0,#100,#1010,#10110,#11.

The question is whether there exists some finite sequence of rewrite steps, starting from w(0), after which the rightmost occurrence of # is not active. In other words, does there exist a rewrite order such that the rightmost # can no longer be rewritten?

Solved problems

3. 1RB0RB3LA4LA2RA_2LB3RA---3RA4RB (bbch) and 1RB1RB3LA4LA2RA_2LB3RA---3RA4RB (bbch)

Let v2(n) be the largest integer k such that 2k divides n. Let (an)n≥0 be a sequence such that

an={2if n=0an−1+2v2(an−1)+2−1if n≥1

for all non-negative integers n. Is there an integer n such that an=4k for some positive integer k?

Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728

Formalised solution: Initial announcement, Lean proof, LLM-translated Rocq proof, Proof of closure of existing mid-level rules.

4. 1RB3RB---1LB0LA_2LA4RA3LA4RB1LB (bbch)

Bonnie the beaver was bored, so she tried to construct a sequence of integers {an}n≥0. She first defined a0=2, then defined an+1 depending on an and n using the following rules:

  • If an≡0 (mod 3), then an+1=an3+2n+1.
  • If an≡2 (mod 3), then an+1=an−23+2n−1.

With these two rules alone, Bonnie calculates the first few terms in the sequence: 2,0,3,6,11,18,39,78,155,306,…. At this point, Bonnie plans to continue writing terms until a term becomes 1 (mod 3). If Bonnie sticks to her plan, will she ever finish?

Solution

How to guess the closed-form solution: Firstly, notice that an≈35×2n. Secondly, calculate the error term an−35×2n. The error term appears to have a period of 4. This leads to the following guess:

an=35{2n+73if n≡0(mod4)2n−2if n≡1(mod4)2n+1if n≡2(mod4)2n+2if n≡3(mod4)

This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.

For all k, we have a4k≡2 (mod 3) and a4k+1≡a4k+2≡a4k+3≡0 (mod 3). Therefore, Bonnie will never finish.

7. 1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB--- (bbch)

Let v2(n) be the largest integer k such that 2k divides n.

Let f(n)=n+1+(v2(n+1)mod2).

Now consider the iterated application of the function fn+1(b)=f(fn(b)), f0(b)=b.

Let (an)n≥0 be a sequence such that a0=1 and an+1=fn+2(⌊an2⌋) for all non-negative integers n.

Does there exist a non-negative integer k such that ak is even?

(for simplicity, this question is slightly stronger than the halting problem of this TM)

Link to Discord discussion: https://discord.com/channels/960643023006490684/1421782442213376000/1431483206208852001

9. 1RB1LA_1RC0RD_1LA---_1RE1RD_1LF0LA_---0LE (bbch)

Let ℕ={0,1,2,…}. Consider configurations given by infinite sequences of non-negative integers,

ℕω={(x0,x1,x2,…):xi∈ℕ}.

Define a partial transition map

T:ℕω→ℕω∪{Halt}

by the following rewrite rules. For all a,b,c∈ℕ and every infinite tail sequence 𝐫∈ℕω,

(0,a,c,𝐫)↦(3+a+c,𝐫),
(1,0,𝐫)↦Halt,
(1,1+a,c,𝐫)↦(a,0,1,1+c,𝐫),
(2+a,b,c,𝐫)↦(a,1+b,1+c,𝐫).

The initial configuration is

𝐱(0)=(0,0,0,0,…).

The question is whether the orbit of 𝐱(0) under repeated application of T eventually halts; that is, whether there exists some n∈ℕ such that

T(𝐱(n))=Halt,

where 𝐱(n+1)=T(𝐱(n)) whenever the right-hand side is not Halt.

Practice Problems

Problems that are not BMO-level, but provide counter-examples to certain probvious intuition: