OFFSET
0,3
COMMENTS
The variant where we consider most significant runs first apparently corresponds to A180200.
LINKS
EXAMPLE
The first terms, alongside the corresponding binary representation and run lengths, are:
n a(n) bin(a(n)) A227736(n, *)
-- ---- --------- -------------
0 0 0 ()
1 1 1 (1)
2 2 10 (1, 1)
3 3 11 (2)
4 5 101 (1, 1, 1)
5 6 110 (1, 2)
6 4 100 (2, 1)
7 7 111 (3)
8 10 1010 (1, 1, 1, 1)
9 13 1101 (1, 1, 2)
10 9 1001 (1, 2, 1)
11 14 1110 (1, 3)
12 11 1011 (2, 1, 1)
13 12 1100 (2, 2)
14 8 1000 (3, 1)
15 15 1111 (4)
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jun 27 2020
STATUS
approved