login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A377815
Lexicographically earliest infinite sequence of distinct positive integers such that the binary concatenation of its terms yields the same string as the binary concatenation of the binary weights of its terms.
1
1, 5, 2, 3, 4, 8, 15, 255, 7, 11, 13, 14, 16, 19, 21, 22, 6, 25, 32, 9, 26, 63, 65535, 23, 28, 10, 12, 64, 17, 95, 111, 128, 27, 256, 4294967295, 29, 35, 18, 20, 37, 38, 41, 42, 44, 49, 50, 52, 56, 67, 69, 24, 70, 73, 512, 30, 33, 31, 39, 18446744073709551615
OFFSET
1,2
COMMENTS
The sequence makes huge jumps. For example, here are three consecutive terms: a(70) = 88, a(71) = 2^256-1, a(72) = 97.
Runs of 0 bits induce large terms since z consecutive 0 bits becomes a term with weight at least 2^z and the smallest such is 2^(2^z) - 1.
The base-2 analog of A302656. The first b terms of this sequence's base-b analog are 1,2,...,(b-1), followed by (b^2+b-1).
EXAMPLE
(a(n)):
1, 5, 2, 3, 4, 8, 15, 255, 7, ...
(a(n)) in binary:
1, 101, 10, 11, 100, 1000, 1111, 11111111, 111, ...
Binary weights of (a(n)):
1, 2, 1, 2, 1, 1, 4, 8, 3, ...
Binary weights of (a(n)) in binary:
1, 10, 1, 10, 1, 1, 100, 1000, 11, ...
The two binary lines are the same when concatenated.
CROSSREFS
Sequence in context: A307603 A234593 A262429 * A097078 A302715 A237200
KEYWORD
nonn,base
AUTHOR
Dominic McCarty, Nov 08 2024
STATUS
approved