login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A004743 Numbers whose binary expansion does not contain 110. 10

%I #22 Feb 13 2022 06:36:55

%S 0,1,2,3,4,5,7,8,9,10,11,15,16,17,18,19,20,21,23,31,32,33,34,35,36,37,

%T 39,40,41,42,43,47,63,64,65,66,67,68,69,71,72,73,74,75,79,80,81,82,83,

%U 84,85,87,95,127,128,129,130,131,132,133,135,136,137,138,139

%N Numbers whose binary expansion does not contain 110.

%H Charles R Greathouse IV, <a href="/A004743/b004743.txt">Table of n, a(n) for n = 1..10000</a>

%H Robert Baillie and Thomas Schmelzer, <a href="https://library.wolfram.com/infocenter/MathSource/7166/">Summing Kempner's Curious (Slowly-Convergent) Series</a>, Mathematica Notebook kempnerSums.nb, Wolfram Library Archive, 2008.

%H <a href="/index/Ar#2-automatic">Index entries for 2-automatic sequences</a>.

%F Sum_{n>=2} 1/a(n) = 5.126608057149204485684180689064467269298250594297584060475240185531109866051... (calculated using Baillie and Schmelzer's kempnerSums.nb, see Links). - _Amiram Eldar_, Feb 13 2022

%t Select[Range[0, 140], !StringContainsQ[IntegerString[#, 2], "110"] &] (* _Amiram Eldar_, Feb 13 2022 *)

%o (PARI) is(n)=n=binary(n);for(i=3,#n,if(!n[i]&&n[i-2]&&n[i-1],return(0))); 1 \\ _Charles R Greathouse IV_, Mar 26 2013

%o (PARI) is(n)=while(n>5, if(bitand(n,7)==6, return(0)); n>>=1); 1 \\ _Charles R Greathouse IV_, Feb 11 2017

%o (Haskell)

%o a004743 n = a004743_list !! (n-1)

%o a004743_list = filter f [0..] where

%o f x = x < 4 || x `mod` 8 /= 6 && f (x `div` 2)

%o -- _Reinhard Zumkeller_, Jul 01 2013

%Y Cf. A007088; A003796 (no 000), A004745 (no 001), A004746 (no 010), A004744 (no 011), A003754 (no 100), A004742 (no 101), A003726 (no 111).

%K nonn,base,easy

%O 1,3

%A _N. J. A. Sloane_

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 9 05:47 EDT 2024. Contains 375027 sequences. (Running on oeis4.)