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!)
A067488 Powers of 2 with initial digit 1. 18

%I #25 Jan 17 2020 17:21:58

%S 1,16,128,1024,16384,131072,1048576,16777216,134217728,1073741824,

%T 17179869184,137438953472,1099511627776,17592186044416,

%U 140737488355328,1125899906842624,18014398509481984,144115188075855872

%N Powers of 2 with initial digit 1.

%C Also smallest n-digit power of 2.

%H Muniru A Asiru, <a href="/A067488/b067488.txt">Table of n, a(n) for n = 1..993</a>

%H <a href="/index/Di#divseq">Index to divisibility sequences</a>

%F a(n) = 2^ceiling((n-1)*log(10)/log(2)). - _Benoit Cloitre_, Aug 29 2002

%t Select[2^Range[0, 70], First[IntegerDigits[#]] == 1 &] (* _Harvey P. Dale_, Mar 14 2011 *)

%o (PARI) a(n)=2^ceil((n-1)*log(10)/log(2)) \\ _Charles R Greathouse IV_, Apr 08 2012

%o (GAP) Filtered(List([0..60],n->2^n),i->ListOfDigits(i)[1]=1); # _Muniru A Asiru_, Oct 22 2018

%o (Scala) (List.fill(50)(2: BigInt)).scanLeft(1: BigInt)(_ * _).filter(_.toString.startsWith("1")) // _Alonso del Arte_, Jan 16 2020

%Y Cf. A000079, A067480, A067481, A067482, A067483, A067484, A067485, A067486, A074116, A074117, A074118.

%K base,easy,nonn

%O 1,2

%A _Amarnath Murthy_, Feb 09 2002

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 April 30 18:46 EDT 2024. Contains 372141 sequences. (Running on oeis4.)