OFFSET
0,3
COMMENTS
A001855 (Sorting numbers) is a companion sequence giving the position where binary expansion of n ends in the binary Champernowne sequence A030190. - L. Edson Jeffery, May 06 2026
LINKS
Paolo Xausa, Table of n, a(n) for n = 0..10000
EXAMPLE
A030190 begins as follows (the bits are indexed starting at 0):
0,
1,
1, 0,
1, 1,
1, 0, 0,
1, 0, 1,
1, 1, 0,
1, 1, 1,
1, 0, 0, 0,
1, 0, 0, 1,
1, 0, 1, 0,
1, 0, 1, 1,
1, 1, 0, 0,
1, 1, 0, 1,
1, 1, 1, 0,
1, 1, 1, 1,
1, 0, 0, 0, 0,
1, 0, 0, 0, 1,
...
4 = 1,0,0 begins at the 6th bit, so a(4)=6.
5 = 1,0,1 begins at the 9th bit, so a(5)=9.
MATHEMATICA
Accumulate[Join[{0, 1}, BitLength[Range[100]]]] (* Paolo Xausa, May 12 2026 *)
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
N. J. A. Sloane, Dec 16 2017
EXTENSIONS
Name clarified by Paolo Xausa, May 12 2026
STATUS
approved
