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!)
A244848 Least number k > 0 such that 2^k begins with exactly n consecutive decreasing digits. 3

%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

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:42 EDT 2024. Contains 371989 sequences. (Running on oeis4.)