OFFSET
0,6
COMMENTS
This is equivalent to A289322, since a(n) = (#twos)-(#ones) = 2^n-2*(#ones) in the first 2^n entries of A000002.
For example, a(5)=15-17=(32-17)-17=32-2*17=-2 because there are 15 twos and 17 ones in the first 32=2^5 entries of A000002.
The entries in this sequence appear to be of order 2^(n/2), whereas the entries in A289322 are larger (of order 2^n).
REFERENCES
See references for A289322.
LINKS
Richard P. Brent, Table of n, a(n) for n = 0..64
EXAMPLE
The first 32 entries of the Kolakoski sequence, A000002, are 12211212212211211221211212211211. From this we see that a(5)=15-17=-2, since among the first 2^5 letters, 15 of them are twos and 17 of them are ones.
CROSSREFS
KEYWORD
sign
AUTHOR
Richard P. Brent, Jul 05 2017
STATUS
approved