This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A004781 #26 Oct 26 2023 22:51:04 %S A004781 7,14,15,23,28,29,30,31,39,46,47,55,56,57,58,59,60,61,62,63,71,78,79, %T A004781 87,92,93,94,95,103,110,111,112,113,114,115,116,117,118,119,120,121, %U A004781 122,123,124,125,126,127,135,142,143,151,156,157,158,159,167 %N A004781 Binary expansion contains 3 adjacent 1's. %H A004781 Reinhard Zumkeller, <a href="/A004781/b004781.txt">Table of n, a(n) for n = 1..10000</a> %H A004781 <a href="/index/Ar#2-automatic">Index entries for 2-automatic sequences</a>. %F A004781 a(n) ~ n. - _Charles R Greathouse IV_, Sep 24 2012 %p A004781 q:= n-> verify([1$3], Bits[Split](n), 'sublist'): %p A004781 select(q, [$0..200])[]; # _Alois P. Heinz_, Oct 22 2021 %t A004781 Select[Range[200],MemberQ[Partition[IntegerDigits[#,2],3,1], {1,1,1}]&] (* _Harvey P. Dale_, Mar 31 2011 *) %t A004781 Select[Range[200], StringContainsQ[IntegerString[#, 2], "111"] &] (* _Amiram Eldar_, Oct 22 2021 *) %t A004781 Select[Range[200],SequenceCount[IntegerDigits[#,2],{1,1,1}]>0&] (* _Harvey P. Dale_, Dec 28 2021 *) %o A004781 (Haskell) %o A004781 a004781 n = a004781_list !! (n - 1) %o A004781 a004781_list = filter f [0..] where %o A004781 f x | x < 7 = False %o A004781 | otherwise = (x `mod` 8) == 7 || f (x `div` 2) %o A004781 -- _Reinhard Zumkeller_, Jun 03 2012 %o A004781 (PARI) is(n)=!!bitand(bitand(n,n<<1),n<<2) \\ _Charles R Greathouse IV_, Sep 24 2012 %Y A004781 Complement of A003726. %Y A004781 Cf. A004779, A136037. %K A004781 nonn,base,easy %O A004781 1,1 %A A004781 _N. J. A. Sloane_ %E A004781 Offset corrected by _Reinhard Zumkeller_, Jun 03 2012