OFFSET
1,1
LINKS
FORMULA
a(n) ~ n. - Charles R Greathouse IV, Sep 24 2012
MATHEMATICA
Select[Range[110], MemberQ[Partition[IntegerDigits[#, 2], 3, 1], {1, 0, 0}]&] (* Harvey P. Dale, Mar 14 2014 *)
PROG
(Haskell)
a004753 n = a004753_list !! (n-1)
a004753_list = filter f [0..] where
f 0 = False; f x = x `mod` 4 == 0 || f (x `div` 2)
-- Reinhard Zumkeller, Oct 27 2011
(PARI) is(n)=n=binary(n); for(i=3, #n, if(n[i-2]&&!n[i]&&!n[i-1], return(1))); 0 \\ Charles R Greathouse IV, Sep 24 2012
(PARI) is(n)=while(n>3, if(bitand(n, 7)==4, return(1)); n>>=1); 0 \\ Charles R Greathouse IV, Feb 11 2017
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved