|
|
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
|
|
|
MATHEMATICA
|
Select[2^Range[0, 70], First[IntegerDigits[#]] == 1 &] (* Harvey P. Dale, Mar 14 2011 *)
|
|
PROG
|
(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
|
Cf. A000079, A067480, A067481, A067482, A067483, A067484, A067485, A067486, A074116, A074117, A074118.
|
|
KEYWORD
|
base,easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|