OFFSET
0,6
COMMENTS
2^a(n) is the run length transform of 1,2,1,1,1,1,....
LINKS
Chai Wah Wu, Table of n, a(n) for n = 0..10000
FORMULA
a(2n) = a(n), a(4n+1) = a(8n+1) = a(n) + 1, a(8n+3) = a(n), a(8n+5) = a(2n+1) + 1, a(8n+7) = a(4n+3).
EXAMPLE
a(25) = 1 since 25 = 11001_2 has one runs of 1's of length 1.
MATHEMATICA
A292342[n_] := Count[Split[IntegerDigits[n, 2]], {1}];
Array[A292342, 100, 0] (* Paolo Xausa, Oct 01 2024 *)
PROG
CROSSREFS
KEYWORD
nonn
AUTHOR
Chai Wah Wu, Mar 24 2017
STATUS
approved