%I #15 Nov 24 2015 17:37:20
%S 1,5,201,664,37025,78171,3944467,138044449,1910108568,1641098748
%N Least number k > 0 such that 2^k begins with exactly n consecutive decreasing digits.
%e 2^201 begins "32138760885...". Since it starts with a run of 3 consecutive decreasing digits and 201 is the smallest power to have this property, a(3) = 201.
%o (Python)
%o def a(n):
%o ..for k in range(1,10**5):
%o ....st = str(2**k)
%o ....count = 0
%o ....if len(st) > n:
%o ......for i in range(len(st)):
%o ........if int(st[i]) == int(st[i+1])+1:
%o ..........count += 1
%o ........else:
%o ..........break
%o ......if count == n:
%o ........return k
%o n = 0
%o while n < 10:
%o ..print(a(n),end=', ')
%o ..n += 1
%Y Cf. A244849, A244851, A244852.
%K nonn,base,fini,full
%O 1,2
%A _Derek Orr_, Jul 07 2014
%E a(7)-a(10) from _Hiroaki Yamanouchi_, Jul 10 2014
|