OFFSET
1,4
COMMENTS
Terms are odd Zeckendorfs A003622 and the fixed points are where n is odd already so that a(n) = n iff n is in A003622.
A139764(n) is the least significant "10..00" part of n so Zeckendorf multiplication n = A101646(a(n), A139764(n)).
The equivalent delete least significant 0's in binary is A000265 so that conversion to Fibbinary (A003714) and back gives a(n) = A022290(A000265(A003714(n))).
a(n) = 1 iff n is a Fibonacci number >= 1 (A000045) since they are Zeckendorf 100..00.
a(n) = 4 iff n is a Lucas number >= 4 (A000032) since they are Zeckendorf 10100..00 which reduces to 101.
LINKS
FORMULA
EXAMPLE
n = 81 = Zeckendorf 101001000.
a(n) = 19 = Zeckendorf 101001.
PROG
(PARI) my(phi=quadgen(5)); a(n) = my(q, r); while([q, r]=divrem(n+2, phi); r<1, n=q-1); n;
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Kevin Ryde, Nov 14 2021
STATUS
approved