[Paper Review] The Toothpick Sequence and Other Sequences from Cellular Automata
This paper introduces and analyzes the toothpick sequence and related cellular automata, deriving recursive formulas and generating functions for the number of toothpicks and active cells. It reveals fractal-like growth patterns and establishes novel generating functions of the form $\prod_{k\geq 0}(1+x^{2^{k}-1}+2x^{2^{k}})$, linking them to Sierpiński triangle structures and providing explicit formulas for sequences in the OEIS.
A two-dimensional arrangement of toothpicks is constructed by the following iterative procedure. At stage 1, place a single toothpick of length 1 on a square grid, aligned with the y-axis. At each subsequent stage, for every exposed toothpick end, place an orthogonal toothpick centered at that end. The resulting structure has a fractal-like appearance. We will analyze the toothpick sequence, which gives the total number of toothpicks after n steps. We also study several related sequences that arise from enumerating active cells in cellular automata. Some unusual recurrences appear: a typical example is that instead of the Fibonacci recurrence, which we may write as a(2+i) = a(i) + a(i+1), we set n = 2^k+i (0 <= i < 2^k), and then a(n)=a(2^k+i)=2a(i)+a(i+1). The corresponding generating functions look like Prod{k >= 0} (1+x^{2^k-1}+2x^{2^k}) and variations thereof.
Motivation & Objective
- To characterize the toothpick sequence and its recursive structure arising from a 2D cellular automaton rule.
- To derive generating functions and explicit formulas for the toothpick and related sequences.
- To explore connections between the toothpick structure and fractal patterns, particularly the Sierpiński triangle.
- To generalize the analysis to other cellular automata, including the 8-neighbor and Ulam-Warburton variants.
- To provide a systematic method for computing and enumerating active cells in such automata using recursive and generating function techniques.
Proposed method
- Define the toothpick construction rule: at each stage, place perpendicular toothpicks at all exposed ends of existing toothpicks.
- Introduce a 'corner sequence' variant to derive recurrence relations for the main toothpick sequence.
- Use the recurrence $a(2^k + i) = 2a(i) + a(i+1)$ for $0 \leq i < 2^k$ to model the growth of the toothpick sequence.
- Derive generating functions of the form $x(\alpha + \beta x)\prod_{k \geq \varepsilon}(1 + \gamma x^{2^k - 1} + \delta x^{2^k})$ for the sequences.
- Establish a connection between the generating functions and the Sierpiński triangle via binary digit patterns.
- Apply the method to other cellular automata, including the 8-neighbor and Ulam-Warburton models, deriving new recurrences and sequences.
Experimental results
Research questions
- RQ1What recurrence relation governs the number of toothpicks added at each stage in the 2D toothpick automaton?
- RQ2How can the generating function for the toothpick sequence be expressed in closed form, and what is its structural significance?
- RQ3What is the relationship between the toothpick sequence and the Sierpiński triangle or other fractal patterns?
- RQ4How do the growth patterns of related cellular automata (e.g., 8-neighbor, Ulam-Warburton) compare, and can their sequences be similarly characterized?
- RQ5Can explicit formulas be derived for the number of active cells in these automata using the recurrence and generating function framework?
Key findings
- The toothpick sequence $t(n)$, which counts toothpicks added at stage $n$, satisfies the recurrence $t(2^k + i) = 2t(i) + t(i+1)$ for $0 \leq i < 2^k$, with initial values $t(0)=0$, $t(1)=1$, $t(2)=2$.
- The total number of toothpicks $T(n)$ after $n$ stages is given by $T(n) = \sum_{i=0}^n t(i)$, and $T(64) = 2731$, $T(53) = 1379$.
- The generating function for the toothpick sequence is $\sum_{n \geq 1} t(n) x^n = x(1 + 2x) \prod_{k \geq 1} (1 + x^{2^k - 1} + 2x^{2^k})$.
- The sequence exhibits a fractal-like structure, and its growth is asymptotically $T(n) \sim \frac{3}{2} n \log_2 n$ as $n \to \infty$.
- For the 8-neighbor cellular automaton, the number of ON cells $v(n)$ satisfies $v(2^k + i) = 4v_2(i)$ for $1 \leq i < 2^k$, with $v(1) = 1$, $v(2) = 8$, and $v(8) = 121$.
- The paper establishes a novel class of generating functions involving products over powers of two, which had not been previously documented in the OEIS prior to this work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.