Logo

Greetings from The On-Line Encyclopedia of Integer Sequences!

Hints

Search: id:A161866
Displaying 1-1 of 1 results found. page 1
     Format: long | short | internal | text      Sort: relevance | references | number      Highlight: on | off
A161866 Numbers n such that n^2+n+7 and n^2+n-7 are both prime. +0
1
3, 5, 9, 12, 24, 29, 32, 39, 44, 50, 57, 59, 65, 102, 135, 137, 144, 170, 180, 207, 260, 267, 297, 302, 305, 344, 347, 360, 365, 369, 389, 404, 429, 464, 474, 495, 540, 555, 570, 612, 620, 659, 662, 689, 767, 774, 792, 824, 837, 872, 885, 900, 950, 954, 989 (list; graph; listen)
OFFSET

1,1

EXAMPLE

a(1)=3 as 12+-7 are primes. a(2)=5 as 30+-7 are primes.

MATHEMATICA

q=7; lst7={}; Do[p=n^2+n; If[PrimeQ[p-q]&&PrimeQ[p+q], AppendTo[lst7, n]], {n, 0, 7!}]; lst7

CROSSREFS

Cf. A088485, A161863, A161864, A153417.

Sequence in context: A058599 A059093 A084593 this_sequence A102968 A089593 A086748

Adjacent sequences: A161863 A161864 A161865 this_sequence A161867 A161868 A161869

KEYWORD

nonn,easy

AUTHOR

Vladimir Orlovsky (4vladimir(AT)gmail.com), Jun 20 2009

EXTENSIONS

Definition rephrased by R. J. Mathar (mathar(AT)strw.leidenuniv.nl), Jun 23 2009

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 November 27 22:38 EST 2009. Contains 167602 sequences.


AT&T Labs Research