Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A094787
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A094787 a(n) = smallest prime p such that p + n is a perfect power m^k, k >= 2. +0
1
3, 2, 5, 5, 3, 2, 2, 17, 7, 17, 5, 13, 3, 2, 17, 11, 19, 7, 13, 5, 11, 3, 2, 3, 2, 23, 5, 53, 3, 2, 5, 17, 3, 2, 29, 13, 107, 11, 61, 41, 23, 7, 101, 5, 19, 3, 2, 73, 79, 31, 13, 29, 11, 67, 73, 113, 7, 23, 5, 61, 3, 2, 37, 17, 79, 59, 61, 13, 31, 11, 29, 53, 71, 7, 53, 5, 23, 3, 2, 41, 19 (list; graph; listen)
OFFSET

2,1

COMMENT

Conjecture: every prime is contained in this sequence.

EXAMPLE

2+8=10, 3+8=11, 5+8=13, 7+8=15, 11+8=19, 13+8, 17+8=25. 17 is the first prime that when added to 8 gives a perfect power, viz. 25.

PROGRAM

(PARI) k(n, m) = for(j=1, m, forprime(x=2, n, if(ispower(x+j), print1(x", "); break))) ispower(n) = { local(p, r, j); r = sqrt(n); for(j=2, floor(r), p = floor(log(n)/log(j)+.5); if(j^p ==n, return(1)); ); return(0) }

CROSSREFS

Sequence in context: A120332 A095006 A124732 this_sequence A132778 A127703 A127738

Adjacent sequences: A094784 A094785 A094786 this_sequence A094788 A094789 A094790

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)gmail.com), Jun 10 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 August 19 23:53 EDT 2008. Contains 142930 sequences.


AT&T Labs Research