OFFSET
1,2
COMMENTS
This sequence is a 2-dimensional variant of Kolakoski sequence (A000002).
The sequence {a(n)} gives the width of the tiles as they are visited, while, say {b(n)}, gives the width of the tiles as they are placed; so:
- a 1 X 2 tile will account for two terms in {a(n)} and for one term in {b(n)},
- a 1 X 1 tile will account for one term in both sequences,
- {a(n)} = RUNS({b(n)}).
Is the density of 1's equal to 1/3?
LINKS
EXAMPLE
Square array begins:
+---+-------+---+---+-------+---+---+---
| 1 | 2 2 | 1 | 1 | 2 2 | 1 | 1 | 2 ...
+---+---+---+---+---+---+---+---+---+---
| 2 2 | 2 2 | 2 2 | 2 2 | 1 | 1 ...
+---+---+---+---+---+---+---+---+---+---
| 1 | 2 2 | 1 | 1 | 2 2 | 1 | 2 2 ...
+---+-------+---+---+---+---+---+---+---
| 1 | 2 2 | 2 2 | 1 | 2 2 | 1 | 1 ...
+---+---+---+---+---+---+-------+---+---
| 1 | 1 | 2 2 | 2 2 | 2 2 | 2 2 ...
+---+---+---+---+-------+---+---+---+---
| 2 2 | 1 | 1 | 2 2 | 1 | 2 2 | 1 ...
+---+---+---+---+---+---+---+-------+---
| 1 | 2 2 | 1 | 1 | 2 2 | 2 2 | 1 ...
+---+---+---+---+---+---+---+---+---+---
| 2 2 | 1 | 1 | 2 2 | 1 | 1 | 2 2 ...
+---+---+---+---+---+---+---+---+-------
| 1 | 2 2 | 1 | 1 | 1 | 2 2 | 2 2 ...
+---+-------+---+---+---+---+---+---+---
...
PROG
(C++) // See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jan 08 2020
STATUS
approved