Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A037028
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A037028 Prime closest to e^n. +0
4
2, 3, 7, 19, 53, 149, 401, 1097, 2971, 8101, 22027, 59879, 162751, 442399, 1202603, 3269011, 8886109, 24154957, 65659969, 178482289, 485165237, 1318815713, 3584912833, 9744803443, 26489122147, 72004899319 (list; graph; listen)
OFFSET

0,1

LINKS

Charles Greathouse, Table of n, a(n) for n = 0..500

MATHEMATICA

NextPrime[ n_Integer ] := Module[ {k = n + 1}, While[ ! PrimeQ[ k ], k++ ]; Return[ k ] ]; PrevPrime[ n_Integer ] := Module[ {k = n - 1}, While[ ! PrimeQ[ k ], k-- ]; Return[ k ] ]; Do[ a = Round[ N[ E^n ] ]; b = NextPrime[ Round[ N[ E^n ] ] - 1 ]; c = PrevPrime[ Round[ N[ E^n ] ] + 1 ]; If[ b - N[ E^n ] > N[ E^n ] - c, Print[ c ], Print[ b ] ], {n, 0, 25} ]

CROSSREFS

Adjacent sequences: A037025 A037026 A037027 this_sequence A037029 A037030 A037031

Sequence in context: A091410 A122724 A033844 this_sequence A052919 A005807 A060276

KEYWORD

nonn

AUTHOR

G. L. Honaker, Jr. (honak3r(AT)bvunet.net)

EXTENSIONS

Corrected and extended by Robert G. Wilson v (rgwv(AT)rgwv.com), Sep 16 2000

page 1

Search completed in 0.002 seconds

Lookup | Welcome | Find friends | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Transforms | Puzzles | Hot | Classics
More pages | Superseeker | Maintained by N. J. A. Sloane (njas@research.att.com)

Last modified May 16 23:01 EDT 2008. Contains 139884 sequences.


AT&T Labs Research