OFFSET
0,2
COMMENTS
LINKS
FORMULA
a(n) = 3*A048718(n).
MATHEMATICA
filterQ[n_] := With[{bb = IntegerDigits[n, 2]}, !MatchQ[bb, {1}|{1, 0, ___}|{___, 0, 1}|{___, 0, 1, 0, ___}|{___, 1, 1, 1, ___}|{___, 1, 0, 1, ___}]];
Select[Range[0, 3096], filterQ] (* Jean-François Alcover, Dec 31 2020 *)
PROG
(PARI) is(n)=n%3==0 && !bitand(n/3, 14*n/3) \\ Charles R Greathouse IV, Oct 03 2016
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Antti Karttunen, Mar 30 1999
STATUS
approved