login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A063618 Smallest k such that 8^k has exactly n 2's in its decimal representation. 0
1, 3, 6, 17, 24, 31, 27, 41, 61, 59, 58, 87, 84, 123, 99, 89, 138, 116, 110, 189, 164, 162, 150, 156, 184, 197, 235, 234, 263, 277, 244, 216, 316, 268, 343, 295, 356, 270, 329, 325, 321, 334, 393, 452, 328, 375, 425, 462, 392, 469, 388 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,2

LINKS

Table of n, a(n) for n=0..50.

MATHEMATICA

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

With[{twos=Table[DigitCount[8^n, 10, 2], {n, 500}]}, Flatten[Table[ Position[ twos, k, {1}, 1], {k, 0, 60}]]] (* Harvey P. Dale, Jul 18 2015 *)

CROSSREFS

Sequence in context: A173877 A101525 A139476 * A217084 A024823 A024315

Adjacent sequences:  A063615 A063616 A063617 * A063619 A063620 A063621

KEYWORD

base,nonn

AUTHOR

Robert G. Wilson v, Aug 10 2001

EXTENSIONS

Name corrected by Jon E. Schoenfield, Jun 26 2018

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 22 04:27 EST 2020. Contains 331133 sequences. (Running on oeis4.)