Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A166597
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A166597 Let p = largest prime <= n, with p(0)=p(1)=0, and let q = smallest prime > n; then a(n) = q-p. +0
2
2, 2, 1, 2, 2, 2, 2, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 2, 2, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 2, 2, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 6, 2, 2, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 2, 2, 6, 6, 6, 6, 6, 6, 4, 4, 4, 4, 6, 6, 6, 6, 6, 6, 8, 8, 8, 8, 8, 8, 8, 8, 4, 4, 4, 4, 2, 2, 4, 4 (list; graph; listen)
OFFSET

0,1

COMMENT

Note the large prime gap of 72 between 31397 and 31469. This is the prime gap with the largest merit (cf. A111870), 72/log(31397)=6.95352 for primes less than 100000. Also 72/(log(31397))^2=0.67154 (cf. conjectures of Cramer-Granville, Shanks and Wolf) is largest for primes less than 100000. [From Daniel Forgues (squid(AT)zensearch.com), Oct 23 2009]

LINKS

Daniel Forgues, Table of n, a(n) for n=0..100000

Eric Weisstein's World of Mathematics, Prime Gaps. [From Daniel Forgues (squid(AT)zensearch.com), Oct 23 2009]

Eric Weisstein's World of Mathematics, Cramer-Granville Conjecture. [From Daniel Forgues (squid(AT)zensearch.com), Oct 23 2009]

Eric Weisstein's World of Mathematics, Shanks Conjecture (and Wolf Conjecture.) [From Daniel Forgues (squid(AT)zensearch.com), Oct 23 2009]

EXAMPLE

a(0)=2 since the least prime greater than 0 is 2 (gap of 2 from 0 to 2.)

a(9)=4 since the least prime greater than 9 is 11 (gap of 4 from 7 to 11.)

a(11)=2 since the least prime greater than 11 is 13 (gap of 2 from 11 to 13.)

CROSSREFS

Cf. A151800, A166594.

Cf. A111870 [From Daniel Forgues (squid(AT)zensearch.com), Oct 23 2009]

Sequence in context: A029420 A029405 A029350 this_sequence A000003 A029395 A029282

Adjacent sequences: A166594 A166595 A166596 this_sequence A166598 A166599 A166600

KEYWORD

nonn

AUTHOR

Daniel Forgues (squid(AT)zensearch.com), Oct 17 2009

EXTENSIONS

Comment, links and cross-reference added by [From Daniel Forgues (squid(AT)zensearch.com), Oct 23 2009]

Definition rephrased by N. J. A. Sloane, Oct 25 2009

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 November 27 14:50 EST 2009. Contains 167570 sequences.


AT&T Labs Research