Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A147791
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A147791 Primes p such that p^q-2 is prime for some prime q. +0
1
2, 3, 5, 7, 13, 19, 29, 31, 37, 43, 47, 61, 67, 71, 89, 103, 107, 109, 127, 131, 139, 151, 163, 173, 181, 191, 199, 211, 223, 229, 233, 239, 241, 257, 271, 277, 283, 293, 313, 337, 349, 359, 367, 379, 421, 433, 439, 443, 449, 457, 467, 491, 523, 541, 547, 569 (list; graph; listen)
OFFSET

2,1

COMMENT

For p>3, p^2-1 is divisible by 6. This follows from the fact that primes p>3

are of the form 6n+1 or 6n-1 and in either case p^2-1 is divisible by 6.

EXAMPLE

2^2-2 = 2 prime so a(1)=2, 3^2-2= 7 prime a(2)=3. For q=2,3,5, 199^q-2 is not

prime. For q=7, 199^7-2 = 12358664279161397 prime so a(27)=199.

PROGRAM

(PARI) g2(n) = forprime(x=2, n, y=g(1000, x); if(y>0, print1(x", ")))

g(n, m) = p1=0; forprime(p=2, n, y=m^p-2; if(ispseudoprime(y), p1=p; break)); p1

CROSSREFS

Sequence in context: A134266 A062252 A153800 this_sequence A072467 A062326 A066076

Adjacent sequences: A147788 A147789 A147790 this_sequence A147792 A147793 A147794

KEYWORD

nonn

AUTHOR

Cino Hilliard (hillcino368(AT)hitmail.com), Nov 13 2008

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 December 4 15:11 EST 2009. Contains 170347 sequences.


AT&T Labs Research