OFFSET
0,2
COMMENTS
We consider one-dimensional cellular automata:
- where each cell is either ON (black) or OFF (white),
- cells of (n+1)-th generation are offset by half a unit compared to cells of n-th generation, as in a honeycomb:
/ \ / \ / \ / \
n-th generation ...| A | B | C | D |...
\ / \ / \ / \ / \
(n+1)-th generation ...| | E | | |...
\ / \ / \ / \ /
- each cell of (n+1)-th generation is determined by the pattern formed by 4 neighboring cells of n-th generation: the state of cell E is determined by the pattern ABCD,
- if we represent ON cells by 1's and OFF cells by 0's, then we can uniquely represent the set of 16 rules that defines such an automaton by an integer R in the range 0..2^16-1,
- this encoding scheme is similar to that of elementary cellular automata proposed by Stephen Wolfram.
This sequence is based on rule 4124:
- 4124 = 2^12 + 2^4 + 2^3 + 2^2,
- in binary, 12, 4, 3 and 2 are: "1100", "0100", "0011", and "0010",
- these are the patterns (ABCD) that lead to a ON cell in next generation,
- all other patterns lead to an OFF cell.
Starting from a unique ON cell, we will never have 3 consecutive ON cells in subsequent generations.
The ON cells form a binary tree:
- the two lateral branches are infinite,
- are there other infinite branches?
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
Rémy Sigrist, Representation of the iterations for n = 0..999
Rémy Sigrist, PARI program for A309441
Eric Weisstein's World of Mathematics, Elementary Cellular Automaton
FORMULA
a(n) is even for any n > 0 (for symmetry reasons).
a(n) <= n+1 - floor((n+1)/3).
EXAMPLE
The first terms, alongside the corresponding generation (with dots instead of 0's and lateral 0's removed for readability), are:
n a(n) n-th generation
-- ---- ---------------
0 1 1
1 2 1 1
2 2 1 . 1
3 2 1 . . 1
4 4 1 1 . 1 1
5 2 1 . . . . 1
6 4 1 1 . . . 1 1
7 4 1 . 1 . . 1 . 1
8 4 1 . . 1 . 1 . . 1
9 6 1 1 . 1 . . 1 . 1 1
10 4 1 . . . 1 . 1 . . . 1
11 6 1 1 . . 1 . . 1 . . 1 1
12 8 1 . 1 . 1 1 . 1 1 . 1 . 1
13 2 1 . . . . . . . . . . . . 1
14 4 1 1 . . . . . . . . . . . 1 1
15 4 1 . 1 . . . . . . . . . . 1 . 1
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Aug 03 2019
STATUS
approved