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!)
A365415 Number of decimal digits of e after its decimal point needed to contain all digit substrings of length n. 0
20, 371, 8091, 102127, 1061612, 12108840, 198150340, 1929504533 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Length of the shortest prefix of the decimal expansion of e in which every possible digit string of length n occurs. We only consider the digits after the decimal point.
It is not known if every natural number appears in the decimal expansion of e. If this is the case, sequence a(n) contains a term for every n.
LINKS
FORMULA
a(n) = A152182(n) + n - 2.
EXAMPLE
a(1) = 20, since 20 is the smallest number of digits in decimal expansion of e in with every digit 0..9 (or, to be more precise, every digit string of length 1) appears: 2.71828182845904523536.
a(2) = 371, since the first appearance of the digit string "12" is at positions 370-371 of the decimal expansion of e and the remaining digit strings of length 2 appear at least once before that position.
a(3) = 8091, since the first appearance of the digit string "548" is at positions 8089-8091 of the decimal expansion of e and the remaining digit strings of length 3 appear at least once before that position.
a(4) = 102127, since the first appearance of the digit string "1769" is at positions 102124-102127 of the decimal expansion of e and the remaining digit strings of length 4 appear at least once before that position.
MATHEMATICA
dok = 300000; an = {};
For[li = 1, li <= 3, li++,
p = ToString[N[E, dok]];
cyf = {}; par = 0;
For[i = 3, i <= dok, i++,
If[par == 0,
a = StringTake[p, {i, i + li - 1}];
If[MemberQ[cyf, a] == False, cyf = Append[cyf, a];
If[Length[cyf] == 10^li, an = Append[an, i + li - 3]; par = 1]],
Break[]]
]];
Print[an]
CROSSREFS
Sequence in context: A014901 A290581 A000564 * A178352 A266736 A019580
KEYWORD
base,nonn,more
AUTHOR
Bartlomiej Pawlik, Sep 07 2023
EXTENSIONS
a(6)-a(8) from Michael S. Branicky, Oct 04 2023
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 June 4 01:34 EDT 2024. Contains 373089 sequences. (Running on oeis4.)