The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A147782 Primes p such that 7^p - 2 is prime. 1
2, 7, 31, 859 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
m=7 in the PARI script. 13 is the next base prime for which this condition holds. In fact, the base prime q in q^p-2 is prime must be of the form 6n+1.
This follows from the fact that if q = 6n-1, the binomial q^p = (6n-1)^p = 6h-1 for some h and q^p-2 = 6h-1-2 is divisible by 3 and thus not prime.
a(5) > 90263. - J.W.L. (Jan) Eerland, Dec 11 2022
LINKS
FORMULA
A000040 INTERSECT A090669. - R. J. Mathar, Jan 22 2009
MATHEMATICA
Select[Prime[Range[150]], PrimeQ[7^#-2]&] (* Harvey P. Dale, Feb 20 2013 *)
PROG
(PARI) g(n, m)=forprime(p=2, n, y=m^p-2; if(ispseudoprime(y), print1(p", ")))
CROSSREFS
Sequence in context: A309164 A102163 A102164 * A102165 A102160 A215434
KEYWORD
nonn,hard,more
AUTHOR
Cino Hilliard, Nov 12 2008
EXTENSIONS
Offset corrected by Mohammed Yaseen, Jul 20 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 31 20:44 EDT 2024. Contains 373003 sequences. (Running on oeis4.)