OFFSET
1,4
COMMENTS
Graphically, we have a superposition of 3 curves; these correspond to the trisections (see scatterplot in Links section).
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10000
Rémy Sigrist, Colored scatterplot of the first 2^13 terms (where the color is function of n mod 3)
Rémy Sigrist, PARI program for A338802
EXAMPLE
For n = 5:
- Kolakoski sequence (K) starts: 1, 2, 2, 1, 1,
- K(1) = K(5),
- K(2) <> K(4),
- K(3) = K(3),
- K(4) <> K(2),
- K(5) = K(1),
- so a(5) = 3.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 10 2020
STATUS
approved