login
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