The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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
1, 5, 201, 664, 37025, 78171, 3944467, 138044449, 1910108568, 1641098748 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
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.
PROG
(Python)
def a(n):
..for k in range(1, 10**5):
....st = str(2**k)
....count = 0
....if len(st) > n:
......for i in range(len(st)):
........if int(st[i]) == int(st[i+1])+1:
..........count += 1
........else:
..........break
......if count == n:
........return k
n = 0
while n < 10:
..print(a(n), end=', ')
..n += 1
CROSSREFS
Sequence in context: A106990 A128791 A303136 * A041775 A093976 A337579
KEYWORD
nonn,base,fini,full
AUTHOR
Derek Orr, Jul 07 2014
EXTENSIONS
a(7)-a(10) from Hiroaki Yamanouchi, Jul 10 2014
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 May 12 23:40 EDT 2024. Contains 372497 sequences. (Running on oeis4.)