OFFSET
0,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..10000
EXAMPLE
The string starts with 011011100101110111... (concatenation of 0, 1, 10, 11, 100, 101, 110, 111, ...) so initial runs are 1, 2, 1, 3, ...
MATHEMATICA
Length /@ (Split@(Join @@ Table[ IntegerDigits[i, 2], {i, 0, 100}])) (* Olivier GĂ©rard, Mar 27 2011 *)
Length/@Split[Flatten[IntegerDigits[Range[0, 50], 2]]] (* Harvey P. Dale, May 24 2015 *)
PROG
(Haskell)
import Data.List (group)
a056062 n = a056062_list !! n
a056062_list = map length $ group a030190_list
-- Reinhard Zumkeller, Mar 26 2013
CROSSREFS
KEYWORD
easy,nonn,nice,base
AUTHOR
Helge Robitzsch (hrobi(AT)math.uni-goettingen.de), Jul 27 2000
EXTENSIONS
Edited by Charles R Greathouse IV, Apr 26 2010
Data corrected for n > 44 by Reinhard Zumkeller, Mar 26 2013
STATUS
approved