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”).

A044944
Runs of odd length in the base 4 representation of n.
0
1, 1, 1, 2, 0, 2, 2, 2, 2, 0, 2, 2, 2, 2, 0, 1, 3, 3, 3, 1, 1, 1, 1, 3, 3, 1, 3, 3, 3, 3, 1, 1, 3, 3, 3, 3, 1, 3, 3, 1, 1, 1, 1, 3, 3, 3, 1, 1, 3, 3, 3, 3, 1, 3, 3, 3, 3, 1, 3, 1, 1, 1, 1, 2, 2, 2, 2, 4, 2, 4, 4, 4, 4, 2, 4, 4, 4, 4, 2, 0, 2, 2, 2, 2, 0, 2, 2, 2, 2, 0
OFFSET
1,4
MATHEMATICA
Table[Count[Length/@Split[IntegerDigits[n, 4]], _?OddQ], {n, 100}] (* Harvey P. Dale, Mar 20 2023 *)
CROSSREFS
Sequence in context: A000360 A023556 A238783 * A339432 A044945 A238005
KEYWORD
nonn,base
STATUS
approved