OFFSET
0,3
COMMENTS
This sequence is a permutation of the nonnegative integers (with inverse A340478) that preserves the number of binary digits.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8191
Rémy Sigrist, Scatterplot of the first 2^16 terms
Rémy Sigrist, PARI program for A340402
EXAMPLE
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Jan 06 2021
STATUS
approved