login
A195269
Smallest n such that 3^n contains n consecutive 0's in its decimal representation.
12
10, 35, 148, 332, 540, 540, 7722, 22793, 107189, 107189, 513335, 1847534, 5756981, 32023025, 82011444
OFFSET
1,1
COMMENTS
No more terms < 10^8. - Bert Dobbelaere, Mar 20 2019
PROG
(Python)
def A195269(n):
....m, s = 1, '0'*n
....for i in range(1, 10**9):
........m *= 3
........if s in str(m):
............return i
....return "search limit reached." # Chai Wah Wu, Dec 11 2014
KEYWORD
nonn,base,more
AUTHOR
Max Alekseyev, Sep 14 2011
EXTENSIONS
a(15) from Bert Dobbelaere, Mar 20 2019
STATUS
approved