OFFSET
0,3
COMMENTS
We use offset 0 so as to have a permutation of the nonnegative integers.
See A357492 for the inverse.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, Scatterplot of the first 2^21 terms
Rémy Sigrist, C++ program
FORMULA
a(n) <= 2^k iff n <= 2^k for any k >= 0.
a(2^k) = 2^k for any k >= 0.
EXAMPLE
Table A357492 begins:
0,
0,
0, 1,
0, 1, 2, 3,
0, 1, 2, 4, 3, 5, 6, 7,
0, 1, 2, 4, 8, 3, 5, 9, 6, 10, 7, 12, 11, 13, 14, 15,
...
So the present sequence begins:
0,
1,
2, 3,
4, 5, 6, 7,
8, 9, 10, 12, 11, 13, 14, 15,
...
PROG
(C++) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Oct 01 2022
STATUS
approved