OFFSET
1,1
COMMENTS
The sequence contains large runs of consecutive integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..9511 (terms < 3000000)
Rémy Sigrist, PARI program for A338626
Rémy Sigrist, Perl program for A338626
FORMULA
A338624(a(n)) = n.
EXAMPLE
For n = 2:
- the first 5 terms of Kolakoski sequence are: 1, 2, 2, 1, 1,
- they have no length-2 repeated block,
- the first 6 terms of Kolakoski sequence are: 1, 2, 2, 1, 1, 2,
- they have a length-2 repeated block: 1, 2,
- so a(2) = 6.
PROG
(PARI) See Links section.
(Perl) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Nov 04 2020
STATUS
approved