|
|
A001114
|
|
Increasing blocks of digits of e.
(Formerly M1747 N0692)
|
|
1
|
|
|
2, 7, 18, 28, 182, 845, 904, 5235, 36028, 74713, 526624, 977572, 4709369, 9959574, 96696762, 7724076630, 35354759457, 138217852516, 642742746639, 1932003059921, 8174135966290, 43572900334295, 260595630738132, 328627943490763, 2338298807531952, 5101901157383418
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
REFERENCES
|
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
|
|
LINKS
|
|
|
PROG
|
(Python)
from sympy import E
def aupto(digit_limit):
alst, estr = [], str(E.n(digit_limit)).replace(".", "")
prevlen, prevstr, suffix = 0, "", estr
while len(suffix) > prevlen + 1:
if suffix[:prevlen] > prevstr: idx = prevlen
else: idx = prevlen + 1
while suffix[idx] == '0':
idx += 1
if idx > len(suffix): break # end of string reached
anstr, suffix = suffix[:idx], suffix[idx:]
prevstr, prevlen = anstr, len(anstr)
assert anstr[0] != '0'
alst.append(int(anstr))
return alst
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base
|
|
AUTHOR
|
|
|
EXTENSIONS
|
|
|
STATUS
|
approved
|
|
|
|