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!)
A063570 Smallest positive power of 7 having n in its decimal representation. 2
4, 4, 4, 3, 2, 7, 5, 1, 5, 2, 13, 6, 12, 12, 19, 15, 5, 6, 19, 11, 12, 22, 14, 7, 4, 30, 11, 23, 10, 16, 14, 19, 11, 16, 3, 7, 9, 19, 12, 17, 4, 12, 27, 3, 18, 21, 32, 10, 8, 2, 15, 17, 10, 9, 7, 21, 15, 8, 21, 18, 9 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
MATHEMATICA
a = {}; Do[k = 1; While[ StringPosition[ ToString[7^k], ToString[n] ] == {}, k++ ]; a = Append[a, k], {n, 0, 60} ]; a
PROG
(Python)
def A063570(n):
m, k, s = 1, 7, str(n)
while s not in str(k):
m += 1
k *= 7
return m # Chai Wah Wu, Nov 14 2019
CROSSREFS
Essentially the same as A062524.
Sequence in context: A232526 A358328 A117499 * A023977 A073259 A174987
KEYWORD
base,nonn
AUTHOR
Robert G. Wilson v, Aug 10 2001
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 25 16:23 EDT 2024. Contains 371989 sequences. (Running on oeis4.)