OFFSET
1,2
COMMENTS
This sequence lists finite smooth words: finite words w composed of 1's and 2's without three or more consecutive equal digits, such that for any k > 0, the k-th iterate of the run lengths transform of w is also a word composed of 1's and 2's without three or more consecutive equal digits.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..10048
Geneviève Paquin, Srĕcko Brlek, Damien Jamet, Extremal generalized smooth words
Rémy Sigrist, Illustration of the first terms (arrows denotes run lengths transforms)
Rémy Sigrist, PARI program
EXAMPLE
The first terms, alongside their run lengths transform, are:
n a(n) RL(a(n))
-- ---- --------
1 1 1
2 2 1
3 11 2
4 12 11
5 21 11
6 22 2
7 112 21
8 122 12
9 211 12
10 221 21
11 1121 211
12 1122 22
13 1211 112
14 2122 112
15 2211 22
16 2212 211
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Sep 30 2024
STATUS
approved