login
This site is supported by donations to The OEIS Foundation.
Logo

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A063426 Smallest power of 2 having just n 2's in its decimal representation. 1
2, 1, 18, 43, 41, 93, 81, 107, 125, 177, 174, 196, 200, 197, 280, 265, 320, 348, 330, 481, 492, 486, 314, 449, 535, 509, 505, 616, 686, 742, 577, 598, 743, 788, 991, 885, 941, 810, 987, 934, 963, 970, 1165, 1018, 984, 1125, 928, 1279, 1126, 1232, 1164 (list; graph; refs; listen; history; internal format)
OFFSET

0,1

LINKS

Harry J. Smith, Table of n, a(n) for n=0,...,150

MATHEMATICA

a = {}; Do[k = 1; While[ Count[ IntegerDigits[2^k], 2] != n, k++ ]; a = Append[a, k], {n, 0, 50} ]; a

PROG

(PARI) Count(x, d)= { local(c, f); c=0; while (x>9, f=x-10*(x\10); if (f==d, c++); x\=10); if (x==d, c++); return(c) } { for (n=0, 150, p=1; while (Count(2^p, 2) != n, p++); write("b063426.txt", n, " ", p) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Aug 23 2009]

CROSSREFS

Sequence in context: A013077 A089512 A089014 * A181870 A070890 A123907

Adjacent sequences:  A063423 A063424 A063425 * A063427 A063428 A063429

KEYWORD

base,nonn

AUTHOR

Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 10 2001

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
Recent Additions | More pages | Superseeker | Maintained by The OEIS Foundation Inc.

Content is available under The OEIS End-User License Agreement .

Last modified February 15 03:22 EST 2012. Contains 205694 sequences.