OFFSET
0,3
LINKS
Richard P. Brent, Table of n, a(n) for n = 0..64
Richard P. Brent and Judy-anne H. Osborn, A fast algorithm for the Kolakoski sequence, Dec. 2016
J. Nilsson, A Space Efficient Algorithm for the Calculation of the Digit Distribution in the Kolakoski Sequence, arXiv preprint arXiv:1110.4228 [math.CO], 2011.
M. Rao, Trucs et bidules sur la séquence de Kolakoski, Oct. 2012.
EXAMPLE
The first 32 entries of the Kolakoski sequence, A000002, are 12211212212211211221211212211211. From this we see that a(5)=17, since among the first 2^5 letters, 17 of them are 1s.
CROSSREFS
KEYWORD
nonn
AUTHOR
Richard P. Brent, Jul 05 2017
STATUS
approved