Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A117588
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A117588 Numbers n such that 2^n + prime(n)^2 is prime. +0
1
2, 6, 8, 14, 20, 90, 102, 154, 228, 310, 418, 554, 1070, 1224, 3144, 3996, 4464, 16194, 17096 (list; graph; listen)
OFFSET

1,1

COMMENT

a(n) is always even since for any odd number k, 2^k+prime(k)^2 == 0 (mod 3). - Robert G. Wilson v (rgwv(at)rgwv.com) Apr 03 2006

If k is odd, prime(k) is either == +/- 1 (mod 3) making prime(k)^2 == 1 (mod 3) and 2^k is - 1 (mod 3). - Robert G. Wilson v (rgwv(at)rgwv.com) Apr 03 2006

No more terms below 30000.

EXAMPLE

20 is in the sequence because the 20th prime is 71 and 2^20+71^2=1053617 is prime.

MAPLE

a:=proc(n) if isprime(2^n+ithprime(n)^2)=true then n else fi end: seq(a(n), n=1..1300); - Emeric Deutsch (deutsch(AT)duke.poly.edu), Apr 06 2006

MATHEMATICA

Do[ If[ PrimeQ[2^n + Prime[n]^2], Print[n]], {n, 20000}] (* Robert G. Wilson v *)

PROGRAM

(PARI) for(i=1, 3000, if(isprime(2^i+prime(i)^2), print1(i, ", ")))

CROSSREFS

Sequence in context: A063242 A104636 A137831 this_sequence A022112 A107019 A048133

Adjacent sequences: A117585 A117586 A117587 this_sequence A117589 A117590 A117591

KEYWORD

nonn

AUTHOR

Mohammed Bouayoun (mohammed.bouayoun(AT)sanef.com), Apr 03 2006

EXTENSIONS

a(15)-a(19) from Robert G. Wilson v (rgwv(at)rgwv.com) and Giovanni Resta (g.resta(AT)iit.cnr.it), Apr 03 2006

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 21 10:15 EST 2009. Contains 171081 sequences.


AT&T Labs Research