Beaver Math Olympiad

From BusyBeaverWiki
(Redirected from BMO)
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)n1 and (bn)n1 be two sequences such that (a1,b1)=(1,2) and

(an+1,bn+1)={(anbn,4bn+2)if anbn(2an+1,bnan)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)n0 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)n1 and (bn)n1 be two sequences such that (a1,b1)=(0,5) and

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

where f(x)=102x1 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)n1 and (bn)n1 be two sequences such that (a1,b1)=(10,12) and

(an+1,bn+1)={(anbn23,3bn+12+6)if an>bn2(3an+5,bn2an)if anbn2

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

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.

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

#01,
#100000#,
#110000#,
#10101010##.

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?

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)n0 be a sequence such that

an={2if n=0an1+2v2(an1)+21if n1

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}n0. She first defined a0=2, then defined an+1 depending on an and n using the following rules:

  • If an0 (mod 3), then an+1=an3+2n+1.
  • If an2 (mod 3), then an+1=an23+2n1.

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 an35×2n. Secondly, calculate the error term an35×2n. The error term appears to have a period of 4. This leads to the following guess:

an=35{2n+73if n0(mod4)2n2if n1(mod4)2n+1if n2(mod4)2n+2if n3(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 a4k2 (mod 3) and a4k+1a4k+2a4k+30 (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)n0 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

Practice Problems

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