OFFSET
1,2
COMMENTS
It is possible that two or more run-lengths may be tied for the greatest number of runs of each length.
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 1..10000
EXAMPLE
1132 in binary is 10001101100. There are two runs of one digit (one run of a 0, one of a 1), three runs of two digits (one run of two 0's, two runs of two 1's), and one run of three 0's. Since the greatest number of similar-sized runs is 3 (of two digits each), then a(1132) = 3.
MATHEMATICA
Table[Max[Transpose[Tally[Length/@Split[IntegerDigits[n, 2]]]][[2]]], {n, 110}] (* Harvey P. Dale, Sep 22 2013 *)
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, May 24 2010
EXTENSIONS
More terms from Sean A. Irvine, Jun 08 2011
STATUS
approved