OFFSET
0,2
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
Apparently, {a(0), ..., a(k)} = {0, ..., k} for infinitely many integers k.
LINKS
FORMULA
EXAMPLE
The first terms, alongside the Zeckendorf representation in binary of n and of a(n), are:
n a(n) z(n) z(a(n))
-- ---- ----- -------
0 0 0 0
1 2 1 10
2 1 10 1
3 5 100 1000
4 7 101 1010
5 3 1000 100
6 8 1001 10000
7 4 1010 101
8 6 10000 1001
9 13 10001 100000
10 14 10010 100001
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Apr 23 2020
STATUS
approved