OFFSET
1,2
LINKS
EXAMPLE
The first terms are:
n a(n) A215023(a(n))
-- ---- -------------
1 0 0
2 2 1001
3 7 100001
4 20 10000001
5 26 10100101
6 44 1001001001
7 54 1000000001
8 73 1010000101
9 112 100100001001
10 143 100000000001
PROG
(PARI) is(n) = { my (v=0, neg=0, pos=0, f); n=-n; for (e=0, oo, f=fibonacci(-1-e); if (f<0, neg+=f, pos+=f); if (neg <=n && n <= pos, while (n, if (f<0, neg-=f, pos-=f); if (neg > n || n > pos, v+=2^e; n-=f); f=fibonacci(-1-e--)); my (b=binary(v)); return (b==Vecrev(b)))) }
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Aug 05 2022
STATUS
approved