OFFSET
0,3
COMMENTS
The number of n-bit numbers in this sequence for n>1 is given by a(n+6) where a is the Padovan sequence A000931.
LINKS
Chai Wah Wu, Record values in appending and prepending bitstrings to runs of binary digits, arXiv:1810.02293 [math.NT], 2018.
MATHEMATICA
Select[Range[0, 1200], And[AllTrue[#1, # < 2 &], AllTrue[#2, # < 3 &]] & @@ {Part[#, 2 Range@ Ceiling[Length[#]/2] - 1], Part[#, 2 Range@ Floor[Length[#]/2]]} &@ Map[Length, Split@ IntegerDigits[#, 2]] &] (* Michael De Vlieger, Dec 26 2018 *)
Select[Range[0, 1200], SequenceCount[IntegerDigits[#, 2], {1, 1}] == SequenceCount[ IntegerDigits[ #, 2], {0, 0, 0}]==0&] (* Requires Mathematica version 10 or later *) (* Harvey P. Dale, May 16 2019 *)
PROG
CROSSREFS
KEYWORD
easy,base,nonn
AUTHOR
David Eppstein, Sep 14 2003
STATUS
approved