OFFSET
0,3
COMMENTS
This sequence is a self-inverse permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10945
Rémy Sigrist, Colored scatterplot of the first F(21) terms (where the color is function of A007895(n))
Rémy Sigrist, PARI program for A338698
FORMULA
EXAMPLE
The first terms, alongside their Zeckendorf-binary representation, are:
n a(n) zeck(n) zeck(a(n))
-- ---- ------- ----------
0 0 0 0
1 1 1 1
2 2 10 10
3 3 100 100
4 4 101 101
5 5 1000 1000
6 7 1001 1010
7 6 1010 1001
8 8 10000 10000
9 11 10001 10100
10 10 10010 10010
11 9 10100 10001
12 12 10101 10101
13 13 100000 100000
14 18 100001 101000
15 16 100010 100100
16 15 100100 100010
17 20 100101 101010
18 14 101000 100001
19 19 101001 101001
20 17 101010 100101
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 24 2021
STATUS
approved