OFFSET
1,2
COMMENTS
This sequence is a self-inverse permutation of the positive integers.
Fixed points correspond to positive Fibonacci numbers.
LINKS
EXAMPLE
The first terms, alongside the Zeckendorf expansion in binary of n and of a(n), are:
n a(n) z(n) z(a(n))
-- ---- ------ -------
1 1 1 1
2 2 10 10
3 3 100 100
4 6 101 1001
5 5 1000 1000
6 4 1001 101
7 10 1010 10010
8 8 10000 10000
9 11 10001 10100
10 7 10010 1010
11 9 10100 10001
12 14 10101 100001
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, May 01 2024
STATUS
approved