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).
LINKS
Dominic McCarty, Table of n, a(n) for n = 1..451
Dominic McCarty, Log log scatterplot of (n, a(n)) for 1 < n <= 10000
Dominic McCarty, Table of n, a(n), binary weight of a(n) for n = 1..100000
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
KEYWORD
nonn,base
AUTHOR
Dominic McCarty, Nov 08 2024
STATUS
approved