OFFSET
1,4
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
Rémy Sigrist, PARI program
Rémy Sigrist, Scatterplot of the first 2^20 terms
EXAMPLE
Table begins:
1,
1,
1, 2,
1, 2, 3, 4,
1, 2, 3, 5, 4, 6, 7, 8,
1, 2, 3, 5, 9, 4, 6, 7, 10, 11, 8, 12, 13, 14, 15, 16,
...
For n = 6:
- the terms in rows 1..5 are: 1, 1, 1, 2, 1, 2, 3, 4, 1, 2, 3, 5, 4, 6, 7, 8,
- terms with binary length 1 are at positions: 1, 2, 3, 5, 9,
- terms with binary length 2 are at positions: 4, 6, 7, 10, 11,
- terms with binary length 3 are at positions: 8, 12, 13, 14, 15,
- terms with binary length 4 are at positions: 16,
- so row 6 is: 1, 2, 3, 5, 9, 4, 6, 7, 10, 11, 8, 12, 13, 14, 15, 16.
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base,tabf
AUTHOR
Rémy Sigrist, Oct 30 2022
STATUS
approved