Beaver Math Olympiad: Difference between revisions

From BusyBeaverWiki
Jump to navigation Jump to search
Int-y1 (talk | contribs)
add solution for bonnie problem
Mxdys (talk | contribs)
 
(18 intermediate revisions by 8 users not shown)
Line 1: Line 1:
'''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.  
'''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 every non-essential details (e.g. 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.


== Unsolved problems ==
== Unsolved problems ==


=== [[1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE]] ===
=== 1. {{TM|1RB1RE_1LC0RA_0RD1LB_---1RC_1LF1RE_0LB0LE|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) = (1, 2)</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) = (1, 2)</math> and
Line 16: Line 16:
for all positive integers <math>n</math>. Does there exist a positive integer <math>i</math> such that <math>a_i = b_i</math>?
for all positive integers <math>n</math>. Does there exist a positive integer <math>i</math> such that <math>a_i = b_i</math>?


=== [[Hydra]] and [[Antihydra]] ===
The first 10 values of <math>(a_n, b_n)</math> are <math>(1, 2), (3, 1), (2, 6), (5, 4), (1, 18), (3, 17), (7, 14), (15, 7), (8, 30), (17, 22)</math>.
 
=== 2. [[Hydra]] and [[Antihydra]] ===


Let <math>(a_n)_{n \ge 0}</math> be a sequence such that <math>a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor</math> for all non-negative integers <math>n</math>.
Let <math>(a_n)_{n \ge 0}</math> be a sequence such that <math>a_{n+1} = a_n+\left\lfloor\frac{a_n}{2}\right\rfloor</math> for all non-negative integers <math>n</math>.
Line 22: Line 24:
# If <math>a_0=3</math>, does there exist a non-negative integer <math>k</math> such that the list of numbers <math>a_0, a_1, a_2, \dots, a_k</math> have more than twice as many even numbers as odd numbers? ([[Hydra]])
# If <math>a_0=3</math>, does there exist a non-negative integer <math>k</math> such that the list of numbers <math>a_0, a_1, a_2, \dots, a_k</math> have more than twice as many even numbers as odd numbers? ([[Hydra]])
# If <math>a_0=8</math>, does there exist a non-negative integer <math>k</math> such that the list of numbers <math>a_0, a_1, a_2, \dots, a_k</math> have more than twice as many odd numbers as even numbers? ([[Antihydra]])
# If <math>a_0=8</math>, does there exist a non-negative integer <math>k</math> such that the list of numbers <math>a_0, a_1, a_2, \dots, a_k</math> have more than twice as many odd numbers as even numbers? ([[Antihydra]])
=== 5. {{TM|1RB0LD_1LC0RA_1RA1LB_1LA1LE_1RF0LC_---0RE|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) = (0, 5)</math> and
<math display="block">(a_{n+1}, b_{n+1}) = \begin{cases}
(a_n+1, b_n-f(a_n)) & \text{if } b_n \ge f(a_n) \\
(a_n, 3b_n+a_n+5) & \text{if } b_n < f(a_n)
\end{cases}</math>
where <math>f(x)=10\cdot 2^x-1</math> for all non-negative integers <math>x</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}} ===
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?
=== 7. {{TM|1RB1RF_1RC0RA_1LD1RC_1LE0LE_0RA0LD_0RB---|undecided}} ===
Let <math>v_2(n)</math> be the largest integer <math>k</math> such that <math>2^k</math> divides <math>n</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>.
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>.
Does there exist a non-negative integer <math>k</math> such that <math>a_k</math> is even?
(for simplicity, this question is slightly stronger than the halting problem of this TM)


== Solved problems ==
== Solved problems ==


=== {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB}} ===
=== 3. {{TM|1RB0RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} and {{TM|1RB1RB3LA4LA2RA_2LB3RA---3RA4RB|non-halt}} ===


Let <math>v_2(n)</math> be the largest integer <math>k</math> such that <math>2^k</math> divides <math>n</math>. Let <math>(a_n)_{n \ge 0}</math> be a sequence such that
Let <math>v_2(n)</math> be the largest integer <math>k</math> such that <math>2^k</math> divides <math>n</math>. Let <math>(a_n)_{n \ge 0}</math> be a sequence such that
Line 38: Line 71:
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728
Link to Discord discussion: https://discord.com/channels/960643023006490684/1084047886494470185/1252634913220591728


=== {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB}} ===
=== 4. {{TM|1RB3RB---1LB0LA_2LA4RA3LA4RB1LB|non-halt}} ===


Bonnie the beaver was bored, so she tried to construct a sequence of integers <math>\{a_n\}_{n \ge 0}</math>. She first defined <math>a_0=2</math>, then defined <math>a_{n+1}</math> depending on <math>a_n</math> and <math>n</math> using the following rules:
Bonnie the beaver was bored, so she tried to construct a sequence of integers <math>\{a_n\}_{n \ge 0}</math>. She first defined <math>a_0=2</math>, then defined <math>a_{n+1}</math> depending on <math>a_n</math> and <math>n</math> using the following rules:
Line 59: Line 92:
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.
This closed-form solution can be proven correct by induction. Unfortunately, the induction may require a lot of tedious calculations.


In all 4 cases, we have <math>a_n \equiv 0\text{ (mod 3)}</math> or <math>a_n \equiv 2\text{ (mod 3)}</math>. Therefore, Bonnie will never finish.
For all <math>k</math>, we have <math>a_{4k} \equiv 2\text{ (mod 3)}</math> and <math>a_{4k+1} \equiv a_{4k+2} \equiv a_{4k+3} \equiv 0\text{ (mod 3)}</math>. Therefore, Bonnie will never finish.
</div></div>
</div></div>

Latest revision as of 10:19, 28 September 2025

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.

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. 1RB1LA_1LC0RE_1LF1LD_0RB0LA_1RC1RE_---0LD (bbch)

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?

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)

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

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.