OFFSET
0,4
EXAMPLE
13 = 1101 so a(13) = 1.
MATHEMATICA
rb1[n_]:=Module[{id=Split[IntegerDigits[n, 2]]}, If[MemberQ[ Last[ id], 0], FromDigits[ id[[-2]], 2], FromDigits[id[[-1]], 2]]]; Join[{0}, Array[ rb1, 100]] (* Harvey P. Dale, Dec 18 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
N. J. A. Sloane, Dec 22 2003
EXTENSIONS
More terms from Vladeta Jovovic, Jan 20 2004
STATUS
approved