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
1, 16, 128, 1024, 16384, 131072, 1048576, 16777216, 134217728, 1073741824, 17179869184, 137438953472, 1099511627776, 17592186044416, 140737488355328, 1125899906842624, 18014398509481984, 144115188075855872 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Also smallest n-digit power of 2.
LINKS
FORMULA
a(n) = 2^ceiling((n-1)*log(10)/log(2)). - Benoit Cloitre, Aug 29 2002
MATHEMATICA
Select[2^Range[0, 70], First[IntegerDigits[#]] == 1 &] (* Harvey P. Dale, Mar 14 2011 *)
PROG
(PARI) a(n)=2^ceil((n-1)*log(10)/log(2)) \\ Charles R Greathouse IV, Apr 08 2012
(GAP) Filtered(List([0..60], n->2^n), i->ListOfDigits(i)[1]=1); # Muniru A Asiru, Oct 22 2018
(Scala) (List.fill(50)(2: BigInt)).scanLeft(1: BigInt)(_ * _).filter(_.toString.startsWith("1")) // Alonso del Arte, Jan 16 2020
CROSSREFS
Sequence in context: A128692 A132136 A163399 * A308310 A120785 A031156
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Feb 09 2002
STATUS
approved

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 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)