Traceless Busy Beaver All those busy beavers made quite a mess. They wrote all over the tape. At this rate, our neighbour will stop lending us unbounded tapes.

We need a new way to play the busy beaver game, one that doesn't ruin every tape we use.

The Rules

Brainfuck only. Memory tape is unbounded both ways. Input instruction will always read \$0\$, so it can be used to clear a value.

50 bytes source limit.

At the end of execution, memory must be all \$0\$s.

Score is distance between the memory pointer's starting location and final location - if it takes \$n\$ move instructions to go between them, your score is \$n\$. Higher is better. Provide an exact value if you can, otherwise provide an estimate.

Example

32 bytes, \$2^{255}-1\$

-[-[[&gt;]+&gt;+[&lt;]&gt;-[[&gt;]&lt;+&lt;+[&lt;]&gt;-]]&gt;]


Explanation

-                                Initialize the list to [255].
 [                             ] Repeat as long as the list is not empty.
 [-                            ] Decrement the left end. We need to shrink the numbers so it ends eventually.
 [ [                         ] ] Skip if 0 already.
 [ [[&gt;]                      ] ] Move to the cell past the right end.
 [ [   +                     ] ] Make this cell 1.
 [ [    &gt;                    ] ] Go right again.
 [ [     +                   ] ] Make this cell 1. We've now appended [1, 1].
 [ [      [&lt;]&gt;               ] ] Go back to the first nonzero cell on the left.
 [ [          -              ] ] And decrement it.
 [ [           [            ]] ] We will need to transfer the rest of the number from the left to the right, so keep looping.
 [ [           [[&gt;]&lt;        ]] ] Go to the last nonzero cell on the right.
 [ [           [    +&lt;+     ]] ] Increment this and the one on the left. These are the cells we appended earlier. We transfer to them.
 [ [           [       [&lt;]&gt; ]] ] Go back to the first nonzero cell on the left, which we are transferring from.
 [ [           [           -]] ] Decrement here on the left to balance out the incrementing on the right.
 [                            &gt;] We end the iteration on a now empty cell. Move right, the new left end is there.


We begin with the list \$[255]\$. At each iteration, we consume the value \$n\$ on the left of the list, and if \$n&gt;1\$, we append \$[n-1, n-1]\$ to the right. The numbers appended \$(n-1)\$ are lower than the original \$(n)\$, so they will get smaller until they are \$1\$, at which point they are consumed without expanding. Thus, the process ends eventually, with all \$0\$s in memory. However, at each step, the number of copies of the number doubles. The score of this program initialized with the list \$[n]\$ is \$2^n-1\$.

This example is meant to show some of the techniques used in creating a submission. It's not competitive for its size.
Score: \$ A(255, 2) - 1 = (2 \uparrow^{253} 5) - 4 \$

+&lt;+&lt;&lt;++&gt;-[-[&lt;+&gt;&gt;[-&lt;[-&gt;+&lt;]+&gt;&gt;]+&lt;-]&gt;[&gt;]+[&lt;]+&lt;]&gt;[-&gt;]


\$ A \$ here is the Péter-Ackermann formulation of the Ackermann function, while the other score expression uses Knuth up-arrow notation. The 35-byte main loop [-[&lt;+&gt;&gt;[-&lt;[-&gt;+&lt;]+&gt;&gt;]+&lt;-]&gt;[&gt;]+[&lt;]+&lt;] can be used to compute \$ A(m,n) \$ by placing on the tape the values 1 - m, m, 1 &lt;n times&gt; and entering the loop with the pointer on the m cell. After the loop terminates, the nonzero tape contents are \$ A(m,n) \$ ones starting immediately to the right of the pointer.

I used the following Python program for modeling the behavior of the program:

def a(M, N):
    assert M &gt; 0
    m = [-M + 1, M]
    n = N
    while m[-1]:
        while m[-1] &gt; 1:
            m[-1] -= 1
            m[-2] += 1
            while n:
                m.insert(-1, 1)
                n -= 1
            n = 1
        n += 2
        m.pop()
    return n