Beaver Math Olympiad: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
Mxdys (talk | contribs)
C1 (talk | contribs)
m Improved the consistency of the content.
 
(11 intermediate revisions by 6 users not shown)
Line 2: Line 2:


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.
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 ([https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/Other/BeaverMathOlympiad.lean Github]).


== Unsolved problems ==
== Unsolved problems ==
Line 38: Line 40:
Does there exist a positive integer <math>i</math> such that <math>b_i = f(a_i)-1</math>?
Does there exist a positive integer <math>i</math> such that <math>b_i = f(a_i)-1</math>?


=== 6. {{TM|1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD|undecided}} ===
=== 6. [[Space Needle]] ===
Let <math>f(b) = b + k + 3a</math>, where <math>k</math> and <math>a</math> are non-negative integers satisfying <math>b = (2a+1)\cdot 2^k</math>.
Let <math>f(b) = b + k + 3a</math>, where <math>k</math> and <math>a</math> are non-negative integers satisfying <math>b = (2a+1)\cdot 2^k</math>.


Now consider the iterated application of the function <math>f^{n+1}(b) = f(f^n(b))</math>, <math>f^0(b)=b</math>. Does there exist a non-negative integer <math>n</math> such that <math>f^n(6)</math> equals a power of 2?
Now consider the iterated application of the function <math>f^{n+1}(b) = f(f^n(b))</math>, <math>f^0(b)=b</math>. Does there exist a non-negative integer <math>n</math> such that <math>f^n(6)</math> equals a power of 2?


=== 8. {{TM|1RB0LD_0RC0RF_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} ===
=== 8. {{TM|1RB0LD_0RC1RB_0RD0RA_1LE0RD_1LF---_0LA1LA|undecided}} ===


Let <math>(a_n)_{n \ge 1}</math> and <math>(b_n)_{n \ge 1}</math> be two sequences such that <math>(a_1, b_1) = (10, 12)</math> and
Let <math>(a_n)_{n \ge 1}</math> and <math>(b_n)_{n \ge 1}</math> be two sequences such that <math>(a_1, b_1) = (10, 12)</math> and


<math display="block">(a_{n+1}, b_{n+1}) = \begin{cases}
<math display="block">(a_{n+1}, b_{n+1}) = \begin{cases}
(a_n-\lfloor\frac{b_n}{2}\rfloor-3, 3\lfloor\frac{b_n+1}{2}\rfloor+6) & \text{if }a_n \ge \lfloor\frac{b_n}{2}\rfloor + 3 \\
(a_n-\left\lfloor\frac{b_n}{2}\right\rfloor-3, 3\left\lfloor\frac{b_n+1}{2}\right\rfloor+6) & \text{if }a_n > \left\lfloor\frac{b_n}{2}\right\rfloor \\
(2, 3\lfloor\frac{b_n+1}{2}\rfloor+8) & \text{if }a_n = \lfloor\frac{b_n}{2}\rfloor + 2 \\
(3a_n+5, b_n-2a_n) & \text{if }a_n \le \left\lfloor\frac{b_n}{2}\right\rfloor
(0, 0) & \text{if }a_n = \lfloor\frac{b_n}{2}\rfloor + 1 \\
(3a_n+5, b_n-2a_n) & \text{if }a_n \le \lfloor\frac{b_n}{2}\rfloor
\end{cases}</math>
\end{cases}</math>


for all positive integers <math>n</math>. Does there exist a positive integer <math>i</math> such that <math>a_i = b_i = 0</math>?
for all positive integers <math>n</math>. Does there exist a positive integer <math>i</math> such that <math>a_n = \left\lfloor \frac{b_n}{2} \right\rfloor + 1</math>?
 
=== 9. {{TM|1RB1LA_1RC0RD_1LA---_1RE1RD_1LF0LA_---0LE|undecided}} ===
 
Let <math>\mathbb{N}=\{0,1,2,\ldots\}</math>.  Consider configurations given by infinite sequences of non-negative integers,
 
:<math>
\mathbb{N}^{\omega}
=
\{(x_0,x_1,x_2,\ldots): x_i\in\mathbb{N}\}.
</math>
 
Define a partial transition map
 
:<math>
T:\mathbb{N}^{\omega}\to \mathbb{N}^{\omega}\cup\{\mathrm{Halt}\}
</math>
 
by the following rewrite rules.  For all <math>a,b,c\in\mathbb{N}</math> and every infinite tail sequence <math>\mathbf r\in\mathbb{N}^{\omega}</math>,
 
:<math>
(0,a,c,\mathbf r)\mapsto (3+a+c,\mathbf r),
</math>
 
:<math>
(1,0,\mathbf r)\mapsto \mathrm{Halt},
</math>
 
:<math>
(1,1+a,c,\mathbf r)\mapsto (a,0,1,1+c,\mathbf r),
</math>
 
:<math>
(2+a,b,c,\mathbf r)\mapsto (a,1+b,1+c,\mathbf r).
</math>
 
The initial configuration is
 
:<math>
\mathbf x^{(0)}=(0,0,0,0,\ldots).
</math>
 
The question is whether the orbit of <math>\mathbf x^{(0)}</math> under repeated application of <math>T</math> eventually halts; that is, whether there exists some
<math>n\in\mathbb{N}</math> such that
 
:<math>
T(\mathbf x^{(n)})=\mathrm{Halt},
</math>
 
where <math>\mathbf x^{(n+1)}=T(\mathbf x^{(n)})</math> whenever the right-hand side is not <math>\mathrm{Halt}</math>.
 
=== 10. {{TM|1RB0LB_0RC0LD_1LD1RE_0LA0RF_0RD1RF_0RC---|undecided}} ===
 
Let <math>\Sigma=\{0,1,\#\}</math>.  Consider two-sided infinite words over <math>\Sigma</math>.  The initial word is
 
:<math>
w^{(0)}=\cdots 10\#10\#10\#10\#0000\cdots,
</math>
 
that is, a left-infinite repetition of <math>10\#</math>, followed by a right-infinite tail of <math>0</math>'s.
 
The rewrite rules are
 
:<math>
\#0 \to 1,
</math>
 
:<math>
\#100 \to 000\#,
</math>
 
:<math>
\#110 \to 000\#,
</math>
 
:<math>
\#1010 \to 1010\#\#.
</math>
 
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 <math>\#</math> active if it is the leftmost symbol of an occurrence of one of the four left-hand sides above.  Equivalently, a <math>\#</math> is
active if the word beginning at that <math>\#</math> starts with one of
 
:<math>
\#0,\qquad \#100,\qquad \#110,\qquad \#1010.
</math>
 
The question is whether there exists some finite sequence of rewrite steps, starting from <math>w^{(0)}</math>, after which the rightmost occurrence of <math>\#</math> is not
active.  In other words, does there exist a rewrite order such that the rightmost <math>\#</math> can no longer be rewritten?
 
=== 11. {{TM|1RB0LD_0LC0RE_1LA0RD_0RB0LC_1RC1RF_0LD---|undecided}} ===
 
Let <math>\Sigma=\{0,1,\#\}</math>.  Consider two-sided infinite words over <math>\Sigma</math>.  The initial word is
 
:<math>
w^{(0)}=\cdots 10\#10\#10\#10\#0000\cdots,
</math>
 
that is, a left-infinite repetition of <math>10\#</math>, followed by a right-infinite tail of <math>0</math>'s.
 
The rewrite rules are
 
:<math>
\#0 \to 1,
</math>
 
:<math>
\#100 \to 010\#,
</math>
 
:<math>
\#1010 \to 1010\#\#,
</math>
 
:<math>
\#10110 \to 10101,
</math>
 
:<math>
\#11 \to 10.
</math>
 
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 <math>\#</math> active if it is the leftmost symbol of an occurrence of one of the five left-hand sides above.  Equivalently, a <math>\#</math> is
active if the word beginning at that <math>\#</math> starts with one of
 
:<math>
\#0,\qquad \#100,\qquad \#1010,\qquad \#10110,\qquad \#11.
</math>
 
The question is whether there exists some finite sequence of rewrite steps, starting from <math>w^{(0)}</math>, after which the rightmost occurrence of <math>\#</math> is not
active.  In other words, does there exist a rewrite order such that the rightmost <math>\#</math> can no longer be rewritten?


== Solved problems ==
== Solved problems ==
Line 102: Line 237:
Let <math>f(n) = n+1+(v_2(n+1) \bmod 2)</math>.
Let <math>f(n) = n+1+(v_2(n+1) \bmod 2)</math>.


Now consider the iterated application of the function <math>f^{n+1}(b) = f(f^n(b)))</math>, <math>f^0(b)=b</math>.
Now consider the iterated application of the function <math>f^{n+1}(b) = f(f^n(b))</math>, <math>f^0(b)=b</math>.


Let <math>(a_n)_{n \ge 0}</math> be a sequence such that <math>a_0=1</math> and <math>a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)</math> for all non-negative integers <math>n</math>.
Let <math>(a_n)_{n \ge 0}</math> be a sequence such that <math>a_0=1</math> and <math>a_{n+1} = f^{n+2}\left(\left\lfloor\frac{a_n}{2}\right\rfloor\right)</math> for all non-negative integers <math>n</math>.

Latest revision as of 00:29, 4 August 2026

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?

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

#01,
#100010#,
#10101010##,
#1011010101,
#1110.

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)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: