login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A030347
Length of n-th run of digit 1 in A030341.
0
1, 3, 1, 1, 2, 1, 1, 5, 2, 2, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 3, 2, 2, 7, 3, 3, 2, 2, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 3, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 3, 1, 1, 1, 2, 1, 1, 1, 2, 1, 1, 1, 1, 2, 4, 1, 2, 1
OFFSET
1,2
MATHEMATICA
Length/@Select[Split[Flatten[Table[Reverse[IntegerDigits[n, 3]], {n, 0, 100}]]], First[#]==1&] (* Harvey P. Dale, Oct 20 2014 *)
CROSSREFS
Sequence in context: A307790 A189965 A258820 * A010275 A176494 A157229
KEYWORD
nonn,base
STATUS
approved