|
| |
|
|
A063430
|
|
Smallest power of 2 having just n 4's in its decimal representation.
|
|
1
| |
|
|
1, 2, 18, 22, 64, 91, 117, 111, 164, 138, 182, 233, 219, 253, 343, 266, 264, 321, 315, 331, 450, 349, 451, 469, 553, 504, 510, 687, 592, 630, 710, 744, 808, 767, 828, 889, 722, 951, 789, 942, 918, 964, 1066, 1033, 890, 1183, 1263, 1171, 1229, 1130, 1291
(list; graph; refs; listen; history; internal format)
|
|
|
|
OFFSET
| 0,2
|
|
|
LINKS
| Harry J. Smith, Table of n, a(n) for n=0,...,150
|
|
|
MATHEMATICA
| a = {}; Do[k = 1; While[ Count[ IntegerDigits[2^k], 4] != 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, 4) != n, p++); write("b063430.txt", n, " ", p) ) } [From Harry J. Smith (hjsmithh(AT)sbcglobal.net), Aug 20 2009]
|
|
|
CROSSREFS
| Sequence in context: A022371 A092587 A015787 * A031104 A115042 A191461
Adjacent sequences: A063427 A063428 A063429 * A063431 A063432 A063433
|
|
|
KEYWORD
| base,nonn
|
|
|
AUTHOR
| Robert G. Wilson v (rgwv(AT)rgwv.com), Aug 10 2001
|
| |
|
|