OFFSET
0,3
COMMENTS
A self-inverse permutation of the nonnegative integers.
Empirically, for any n >= 0, abs(a(n) - n) belongs to A001045.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..8192
Rémy Sigrist, Colored scatterplot of the sequence for n = 0..2^11 (where the color is function of a(n)-n)
Rémy Sigrist, PARI program
FORMULA
a(n) <= 2^k iff n <= 2^k.
EXAMPLE
-- ---- --------------- ------------------
0 0 0 0
1 1 0 0
2 2 0 0
3 4 1 0
4 3 0 1
5 5 0 0
6 7 10 1
7 6 1 10
8 8 0 0
9 9 0 0
10 10 0 0
11 14 101 10
12 15 100 1
13 16 100 0
14 11 10 101
15 12 1 100
16 13 0 100
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Dec 28 2024
STATUS
approved