OFFSET
0,13
COMMENTS
This sequence is unbounded.
LINKS
FORMULA
a(n) = 0 iff n belongs to A003714.
0 <= 2 * a(n) - a(2 * n) <= 1.
EXAMPLE
a(12) = a(14) = 2 because 10 is the nearest Fibbinary number to 12 and 16 is the nearest Fibbinary number to 14.
PROG
(PARI) a(n) = for (k=0, oo, if (bitand(n-k, 2*(n-k))==0 || bitand(n+k, 2*(n+k))==0, return (k)))
CROSSREFS
KEYWORD
AUTHOR
Altug Alkan and Rémy Sigrist, Mar 23 2018
STATUS
approved