Brainfuck

This article covers the Busy Brain Beaver function BBB(n) counting the maximum number of steps taken by non-interactive right-unbounded Brainfuck programs of length n.

Definition

A non-interactive Brainfuck program has six instructions: move the head left and right, increment and decrement the highlighted cell, and start and end loops. A right-unbounded Brainfuck program only moves to the right of the starting cell, but has access to an unbounded number of cells. Every single instruction takes a single step, including loop tests.

Summary

The following diagram summarizes known values and problems relative to BBB.

Interval tree of gauge for BBB

Known Values

Lower bounds for small n are established here on a variant of Brainfuck with unbounded cell values, and are identical up to 255.

We include lower bounds for selected n from this golfing challenge.

nBBB(n)
11
22
33
44
5≥ 7
39≥ 31,919,535,558
41≥ 10 ↑ (10 ↑ 28)
63≥ 255 ↑↑ 2

Tables of Values

Interp(BF,[!])

SourceProgram Name/ParametersBBB(n)
Cristofani 2002dbfi.b423
Faase 2002interp-faase.b6376

Interp(BF²)

SourceProgram Name/ParametersBBB(n)
NYYRIKKI 2002bit-doubler.b1408

Erdős–Lagarias conjecture

SourceProgram Name/ParametersBBB(n)
Simpson 2024erdos-lagarias.b363

Interp(BF,[:])

SourceProgram Name/ParametersBBB(n)
NYYRIKKI 2002interp-nyyrikki.b1243

Period 32 Laver table

SourceProgram Name/ParametersBBB(n)
Simpson 2024laver.b515

Interp(Tag(2))

SourceProgram Name/ParametersBBB(n)
Cristofaniutm.b467

Metainterp(BF)

SourceProgram Name/ParametersBBB(n)
Bologov 2023meta.bf1712

Interp(BCL)

SourceProgram Name/ParametersBBB(n)
Felgenhauer 2024bcl.bf2079