Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A098036
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A098036 First occurrence of primes p such that p = (prime(k) + prime(k+n))/2 for some positive integer k and n=2, 3, ... +0
1
5, 7, 11, 59, 11, 13, 41, 17, 23, 43, 23, 29, 53, 31, 67, 53, 37, 59, 41, 43, 97, 53, 103, 53, 79, 59, 83, 149, 67, 167, 71, 127, 89, 113, 83, 89, 101, 149, 311, 97, 101, 109, 101, 107, 113, 127, 137, 131, 157, 137, 127, 149, 137, 163, 137, 281, 193, 149, 229, 191, 157 (list; graph; listen)
OFFSET

2,1

COMMENT

No primes exist for n=1, as (prime(k) + prime(k+1))/2 is between prime(k) and prime(k+1) and so cannot be prime. See the Weisstein link.

LINKS

Eric Weisstein's World of Mathematics, Interprime Numbers

EXAMPLE

For n=2, (prime(2) + prime(2+2))/2 = (3+7)/2 = 5, so a(2)=5.

For n=4, (prime(2) + prime(2+4))/2 = (3+13)/2 = 8, which is not prime, but (prime(3) + prime(3+4))/2 = (5+17)/2 = 11, so a(4)=11.

PROGRAM

(PARI) a(n) = {k=2; while(!isprime(p=(prime(k)+prime(k+n))/2), k++); p}

CROSSREFS

Sequence in context: A106819 A045968 A066367 this_sequence A127269 A071781 A091509

Adjacent sequences: A098033 A098034 A098035 this_sequence A098037 A098038 A098039

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Sep 10 2004

EXTENSIONS

Edited by Michael Porter (michael_b_porter(AT)yahoo.com), Oct 07 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 25 20:09 EST 2009. Contains 167514 sequences.


AT&T Labs Research