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!)
A368621 a(n) is the n-digit denominator of the fraction h/k with h and k coprime positive integers at which abs(h/k-e) is minimal. 5
1, 32, 323, 1001, 18089, 208524, 3400196, 10391023, 312129649 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
a(3) = 323 corresponds to the denominator of A368617.
LINKS
EXAMPLE
n fraction approximated value
- ------------------- ------------------
1 3/1 3
2 87/32 2.71875
3 878/323 2.7182662538699...
4 2721/1001 2.7182817182817...
5 49171/18089 2.7182818287356...
6 566827/208524 2.7182818284705...
7 9242691/3400196 2.7182818284593...
8 28245729/10391023 2.7182818284590...
...
MATHEMATICA
a[1]=1; a[n_]:=Module[{minim=Infinity}, For[i = 10^(n - 1), i <= 10^n - 1, i++, For[j = Floor[i/E], j <= Ceiling[i/E], j++, If[(dist = Abs[i/j - E]) < minim && GCD[i, j] == 1, minim = dist; kmin = j]]]; kmin]; Array[a, 9]
CROSSREFS
Cf. A001113, A368617, A368620 (numerator), A368659.
Sequence in context: A083468 A125395 A126553 * A221661 A221064 A224161
KEYWORD
nonn,base,frac,more
AUTHOR
Stefano Spezia, Jan 01 2024
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 13 16:16 EDT 2024. Contains 372522 sequences. (Running on oeis4.)