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!)
A108259 Consider primes p and q such that p = 3^k + 2 and q = 3^(k+1) + 2 for some k; sequence gives values of p. 0
3, 5, 11, 29, 4782971 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,1
LINKS
EXAMPLE
3^1 + 2 = 5, 3^2 + 2 = 11.
MATHEMATICA
3^#+2&/@Select[Range[0, 20], AllTrue[{3^#+2, 3^(#+1)+2}, PrimeQ]&] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Nov 01 2015 *)
PROG
(PARI) g(m, n, b) = { for(x=0, n, y=m+b^x+b%2; z=m+b^(x+1)+b%2; if(isprime(y)&isprime(z), print1(p", ") ) ) }
CROSSREFS
Sequence in context: A146243 A262936 A214089 * A093933 A165572 A246901
KEYWORD
nonn
AUTHOR
Cino Hilliard, Jun 29 2005
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 April 24 08:59 EDT 2024. Contains 371935 sequences. (Running on oeis4.)