A306494 Smallest number m such that n*3^m has 2 or more identical adjacent decimal digits.
11, 8, 10, 8, 11, 7, 9, 5, 9, 11, 0, 7, 2, 4, 10, 2, 4, 6, 7, 8, 8, 0, 5, 4, 2, 9, 8, 4, 6, 10, 4, 2, 0, 8, 6, 6, 1, 1, 1, 8, 3, 3, 3, 0, 9, 5, 5, 1, 2, 11, 3, 7, 2, 5, 0, 7, 6, 2, 1, 7, 6, 2, 7, 5, 3, 0, 6, 4, 4, 9, 7, 3, 5, 1, 1, 1, 0, 8, 2, 5, 7, 3, 3, 3, 1
Offset: 1
Examples
a(1) = 11 since 3^11 = 177147 has 2 adjacent digits '7' and no smaller power of 3 has adjacent identical digits. Record values: a(1) = 11 a(241) = 12 a(2392) = 14 a(35698) = 15 a(267345) = 16 a(893521) = 17 a(29831625) = 18 a(3232453125) = 19
Links
- Chai Wah Wu, Table of n, a(n) for n = 1..10000
Programs
-
Python
def A306494(n): m, k= 0, n while True: s = str(k) for i in range(1,len(s)): if s[i] == s[i-1]: return m m += 1 k *= 3
Formula
a(A171901(n)) = 0.
Comments