login
A275308
Starting terms for the second half of the Kolakoski sequence.
0
2, 1, 2, 2, 2, 1, 2, 2, 1, 1, 2, 2, 1, 2, 1, 1, 2, 2, 2, 2, 2, 1, 2, 1, 2, 2, 2, 2, 1, 1, 1, 2, 1, 1, 2, 1, 1, 2, 2, 2, 2, 1, 2, 2, 2, 2, 2, 1, 2, 1, 1, 1, 2, 1, 2, 2, 1, 2, 2, 2, 1, 1, 2, 2, 2, 1, 2, 1, 1, 1, 2, 2, 2, 2, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1
OFFSET
1,1
COMMENTS
When building the Kolakoski sequence (A000002) using substitutional generation, this is the first term that comes from the second 2. Or equivalently, this is the first new term added to the previous sequence.
FORMULA
a(n) = 1 + (A001083(n+1) mod 2) for n > 1. - Andrei Zabolotskii, Oct 03 2025
EXAMPLE
. 22
. ^
. 2211
. ^
. 221121
. ^
. 221121221
. ^
. 22112122122112
. ^
To obtain the first 5 terms: 2, 1, 2, 2, 2.
CROSSREFS
Sequence in context: A101422 A359938 A070304 * A233138 A214708 A083952
KEYWORD
nonn
AUTHOR
David Spies, Jul 22 2016
EXTENSIONS
Terms a(51) and beyond added by Andrei Zabolotskii, Oct 03 2025
STATUS
approved