Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A089452
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A089452 a(n) = smallest prime k such that k*(p(n)-1) + p(n) is prime, where p(n) = n-th prime. +0
1
2, 2, 2, 2, 2, 5, 3, 2, 3, 5, 2, 5, 2, 2, 2, 3, 2, 2, 2, 5, 3, 113, 3, 5, 3, 2, 29, 3, 2, 2, 3, 2, 5, 3, 3, 5, 2, 2, 5, 5, 2, 2, 2, 17, 11, 2, 7, 11, 19, 3, 3, 13, 2, 2, 2, 5, 2, 2, 11, 3, 2, 2, 5, 2, 11, 2, 2, 2, 5, 3, 3, 19, 2, 5, 5, 3, 5, 2, 19, 5, 2, 2, 3, 2, 5, 17, 2, 7, 2, 3, 2, 2, 3, 5, 3, 2, 2, 11, 2 (list; graph; listen)
OFFSET

3,1

COMMENT

Does every prime appear in this sequence? - Gabriel Cunningham (gcasey(AT)mit.edu), Mar 27 2004

EXAMPLE

a(2)=2 because 2*(p(2)-1) + p(2) = 7, which is prime. a(7)=5 because 2*(p(7)-1) + p(7) = 49 and 3*(p(7)-1) + p(7) = 65, both of which are composite, but 5*(p(7)-1) + p(7) = 97, which is prime.

PROGRAM

(PARI) diff2sqp2(n) = { forprime(q=3, n, forprime(p=3, n, y=(p-q)/(q-1); if(y==floor(y), if(isprime(y), print1(y", "); break) ) ) ) }

CROSSREFS

Adjacent sequences: A089449 A089450 A089451 this_sequence A089453 A089454 A089455

Sequence in context: A083499 A029103 A008737 this_sequence A115101 A023569 A051887

KEYWORD

easy,nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Dec 28 2003

EXTENSIONS

More terms from Gabriel Cunningham (gcasey(AT)mit.edu), Mar 27 2004

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 October 13 20:18 EDT 2008. Contains 145016 sequences.


AT&T Labs Research